From e0e5fa5084adae78174f0f0a6d8b4c1538bd6c03 Mon Sep 17 00:00:00 2001 From: pomelo-nwu Date: Tue, 28 Oct 2025 09:14:00 +0800 Subject: [PATCH] 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. --- packages/cli/src/ui/commands/chatCommand.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/ui/commands/chatCommand.ts b/packages/cli/src/ui/commands/chatCommand.ts index 888c0d15..4f3efb79 100644 --- a/packages/cli/src/ui/commands/chatCommand.ts +++ b/packages/cli/src/ui/commands/chatCommand.ts @@ -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',