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
core: a teardown killed while writing stopped.json blocks later log pruning #315
retainSessionLogs in packages/core/src/session-retention.ts writes stopped.json with DirHandle.writeFileAtomic, whose temp is .stopped.json.tmp-<pid>-<n>. If teardown is killed between the temp open and the rename, the temp stays in the session directory. A later successful teardown writes stopped.json, but pruneDirectory sees the temp as unknown data and skips that retained session forever. #313 handles the same class for lease staging files only.
Remove orphan stopped.json temps when session logs are retained
Keep refusing to prune directories with other unknown files
Test: a retained session with an orphan stopped.json temp is pruned
Activity