mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
switch from console.warn to info item (#440)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user