Skip to content

Do not overwrite unreadable run.json on rename - #734

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-7287-do-not-overwrite-unreadable-run-json
Aug 31, 2026
Merged

Do not overwrite unreadable run.json on rename#734
TheGreatAxios merged 1 commit into
mainfrom
cl-7287-do-not-overwrite-unreadable-run-json

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • renameSession throws instead of overwriting an unreadable run.json; a missing file still gets a fresh running record.
  • The default resume picker stays running and cancelled; --force includes failed and done.
  • Silence tests pin a file log sink so a console leak fails the suite.

Verification

  • bun run typecheck, bun run build, and bun run test pass
  • Focused resume, rename, and silence tests pass

Related to CL-7287
skip CL-7287

The default resume picker is still running and cancelled only; document --force for failed and done. Silence tests pin a file log sink so a console leak fails. renameSession throws instead of clobbering corrupt state, and the TUI does not persist a snapshot after that failure.

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review · Approve

renameSession refuses to clobber unreadable run.json; silence tests pin the file sink; picker docs match --force.

No findings.

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Critic · Comment

renameSession throws on unreadable run.json and leaves the bytes; TUI persist runs only on fulfill. Silence tests pin a file sink and assert stdout/stderr unused before spy restore.

No remaining findings.

@TheGreatAxios
TheGreatAxios merged commit 1bd4978 into main Aug 31, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant