From a756489f861ad58cddf67f9bfb84251d82d09169 Mon Sep 17 00:00:00 2001 From: Olcan Date: Mon, 19 May 2025 15:21:31 -0700 Subject: [PATCH] switch from console.warn to info item (#440) --- packages/cli/src/ui/hooks/shellCommandProcessor.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/ui/hooks/shellCommandProcessor.ts b/packages/cli/src/ui/hooks/shellCommandProcessor.ts index d52623b8..f1d9af32 100644 --- a/packages/cli/src/ui/hooks/shellCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/shellCommandProcessor.ts @@ -89,8 +89,12 @@ export const useShellCommandProcessor = ( if (fs.existsSync(pwdFilePath)) { const pwd = fs.readFileSync(pwdFilePath, 'utf8').trim(); if (pwd !== targetDir) { - console.warn( - `shell mode is stateless; \`cd ${pwd}\` will not apply to next command`, + addItemToHistory( + { + type: 'info', + text: `WARNING: shell mode is stateless; \`cd ${pwd}\` will not apply to next command`, + }, + userMessageTimestamp, ); } fs.unlinkSync(pwdFilePath);