清理 DirectProject 空状态临时回复

Reducer 没有累计文本时同步清空旧的瞬时回复。
This commit is contained in:
2026-09-15 19:50:27 +08:00
committed by kdletters
parent 4f5e409115
commit c4c1428126
+4
View File
@@ -1947,6 +1947,10 @@ export function App({
setDirectCodexTransientReply(state.accumulatedText);
directCodexTransientReplyRef.current = state.accumulatedText;
setDirectCodexTransientReplyUpdatedAt(Date.now());
} else {
setDirectCodexTransientReply('');
directCodexTransientReplyRef.current = '';
setDirectCodexTransientReplyUpdatedAt(null);
}
};