mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
fix: remove hardcoded ANSI escape codes in /chat list command
The /chat list command was displaying raw ANSI escape codes instead of colored text. This was caused by the escapeAnsiCtrlCodes function in HistoryItemDisplay that escapes all ANSI control characters. Changed to plain text format for better compatibility and cleaner output.
This commit is contained in:
parent
65cf80f4ab
commit
e0e5fa5084
1 changed files with 2 additions and 2 deletions
|
|
@ -89,9 +89,9 @@ const listCommand: SlashCommand = {
|
|||
const isoString = chat.mtime.toISOString();
|
||||
const match = isoString.match(/(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2})/);
|
||||
const formattedDate = match ? `${match[1]} ${match[2]}` : 'Invalid Date';
|
||||
message += ` - \u001b[36m${paddedName}\u001b[0m \u001b[90m(saved on ${formattedDate})\u001b[0m\n`;
|
||||
message += ` - ${paddedName} (saved on ${formattedDate})\n`;
|
||||
}
|
||||
message += `\n\u001b[90mNote: Newest last, oldest first\u001b[0m`;
|
||||
message += `\nNote: Newest last, oldest first`;
|
||||
return {
|
||||
type: 'message',
|
||||
messageType: 'info',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue