fix kiro fresh auto-run state reset

This commit is contained in:
QLHazyCoder
2026-05-22 07:57:36 +08:00
parent 5610262f7d
commit 25c6b8b4a7
6 changed files with 308 additions and 5 deletions
+11
View File
@@ -204,6 +204,17 @@
const baseRuntimeState = isPlainObject(state?.runtimeState)
? cloneValue(state.runtimeState)
: {};
delete baseRuntimeState.flowId;
delete baseRuntimeState.runId;
delete baseRuntimeState.activeFlowId;
delete baseRuntimeState.activeRunId;
delete baseRuntimeState.currentNodeId;
delete baseRuntimeState.nodeStatuses;
if (isPlainObject(baseRuntimeState.sharedState)) {
delete baseRuntimeState.sharedState.tabRegistry;
delete baseRuntimeState.sharedState.sourceLastUrls;
delete baseRuntimeState.sharedState.flowStartTime;
}
const baseFlowState = isPlainObject(baseRuntimeState.flowState)
? cloneValue(baseRuntimeState.flowState)
: {};