summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/shellCommandProcessor.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/hooks/shellCommandProcessor.ts')
-rw-r--r--packages/cli/src/ui/hooks/shellCommandProcessor.ts8
1 files 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);