You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent parent task state loss during orchestrator delegation
- Snapshot arrays with structuredClone before JsonStreamStringify to prevent lazy-read race
- Return boolean from save methods; only clear userMessageContent on success
- Make getTaskWithId non-destructive (return [] instead of deleting task on missing file)
- Add try/catch around JSON.parse in read paths
- Add retrySaveApiConversationHistory with exponential backoff
- Add comprehensive test coverage (113 tests pass)
Fixes#11172
`[readApiMessages] Parsed OLD data is not an array (got ${typeofparsedData}), returning empty. TaskId: ${taskId}, Path: ${oldPath}`,
82
+
)
83
+
return[]
84
+
}
85
+
if(parsedData.length===0){
74
86
console.error(
75
87
`[Roo-Debug] readApiMessages: Found OLD API conversation history file (claude_messages.json), but it's empty (parsed as []). TaskId: ${taskId}, Path: ${oldPath}`,
0 commit comments