Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): 推荐关闭后拒绝在途预测落地
Shinkud36ad8c324ff
diff --git a/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx b/apps/desktop/src/renderer/components/new-chat/ChatInput.tsxindex 02a62d69fb..5591ec6931 100644--- a/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx+++ b/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx@@ -1113,6 +1113,9 @@ export function ChatInput({const showStopButtonRef = useRef(showStopButton);showStopButtonRef.current = showStopButton;+ const recommendationEnabledRef = useRef(recommendationEnabled);+ recommendationEnabledRef.current = recommendationEnabled;+// ── 推荐提示词:turn 结束(showStopButton true→false)→ 调 IPC 预测 ────// messages 在流式期间每个 delta 都变,放进 deps 会让本 effect 反复重跑并把// prevShowStopRef 冲掉,从而永远检测不到那次跳变 —— 所以走 ref 读最新值。@@ -1237,6 +1240,7 @@ export function ChatInput({const cur = editorRef.current;if (result?.prompt &&+ recommendationEnabledRef.current &&cur &&!cur.isDestroyed &&composerFullyEmptyRef.current() &&