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
{{ message }}
Repository navigation
fix(task): guard saveClineMessages against abandoned tasks to prevent race in abandonSubtask #1021
Fire-and-forget saveClineMessages() calls can execute updateTaskHistory() after abandonSubtask()'s atomicUpdatePair() has already cleared parentTaskId/rootTaskId, silently reattaching the severed parent-child link.
Root cause
saveClineMessages() is called without await in several places. If those in-flight calls resolve after abandonSubtask() completes, updateTaskHistory() writes back the now-stale parent/root IDs, effectively un-abandoning the subtask relationship.
Fix
Check this.abandoned before calling updateTaskHistory() in both the explicit abort save and any in-flight fire-and-forget saves. This is already implemented on the feature/local-usage-stats branch (commit 1d1eb915e) and should be extracted into its own PR.
Impact
Silent data corruption in subtask history — a subtask that was intentionally abandoned can reappear linked to its parent after the race resolves.
Activity
Merge upstream/main into fix/abandoned-subtask-save-race-1021
fix: decouple Task Board / task lifetime from the popout editor tab
chore: keep the out-of-scope Stryker directive removals out of this fix
fix(task): guard saveClineMessages against abandoned tasks (fixes Zoo…
fix(task): guard saveClineMessages against abandoned tasks (fixes Zoo…