修复附件场景下历史命令识别

使用不含附件的文本输入判断 /history 命令。

避免待发送附件把 canonical prompt 拼成长文本后绕过历史记录加载。
This commit is contained in:
2026-09-18 11:35:18 +08:00
parent 06004bfeea
commit b73a329b2c
+1 -1
View File
@@ -12303,7 +12303,7 @@ export function App({
}
return;
}
if (directCodexProductRuntime && canonicalPrompt === '/history') {
if (directCodexProductRuntime && prompt === '/history') {
const nextProjectPath = requireChatProjectForUserAction();
if (!nextProjectPath) {
return;