Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): 切换设备/session 时清除旧审查数据避免闪现
davidd145fb8898bb
diff --git a/apps/desktop/src/renderer/features/right-sidebar/plugins/review/useReviewGitState.ts b/apps/desktop/src/renderer/features/right-sidebar/plugins/review/useReviewGitState.tsindex a293e7b3db..2d58e943de 100644--- a/apps/desktop/src/renderer/features/right-sidebar/plugins/review/useReviewGitState.ts+++ b/apps/desktop/src/renderer/features/right-sidebar/plugins/review/useReviewGitState.ts@@ -127,6 +127,9 @@ function useGitReviewLoad<T>(setDataState(cached);} else if (!sessionId && !preserveWhenDisabled) {setDataState(null);+ } else if (sessionId) {+ // cacheKey 变化且新 key 无缓存(切换设备/session)时,先清旧数据避免闪现旧审查结果+ setDataState(null);}}, [cacheKey, preserveWhenDisabled, sessionId]);