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
Remove unbounded read and write-chain race from crash finalize
The crash handler awaited loadState (a plain readFile) to recover
task/startedAt/model before writing, the same unbounded-I/O hazard
primeCrashReporting exists to avoid for git. active-run.ts now carries
those fields directly, updated by runTUI wherever it already tracks
them, so the handler needs no read.
Bypassing writeChains for the crash write also reopened the exact
race CL-5567 closed: an in-flight progress snapshot for the same
session could still land after the crash write and resurrect
status: running. saveState now checks a synchronous isCrashed() flag
right before each queued write fires, so anything still waiting in
the chain when the crash handler marks the process crashed steps
aside instead of racing it.
0 commit comments