恢复Direct失败态临时回复清理

失败事件到达时清空界面中的临时回复。

保留ref中的partial供中断持久化流程使用。
This commit is contained in:
2026-09-02 19:24:02 +08:00
parent 75875a0fad
commit b1a9a296e8
+2
View File
@@ -1188,6 +1188,8 @@ export function App({
: Date.now();
if (payload.status === 'failed') {
activeDirectCodexTurnRef.current = null;
setDirectCodexTransientReply('');
setDirectCodexTransientReplyUpdatedAt(null);
setDirectCodexProgress('处理失败,正在同步错误');
setDirectCodexProgressUpdatedAt(updatedAt);
return;