Carry a turn's prompt under the session lock
Commit

Condensation clears prompt.txt under that lock, possibly in the worktree the prompt is being carried out of; an unlocked read-write-trim could write the cleared prompts back.
Co-Authored-By: Claude Opus 5.5 (1M context) noreply@anthropic.com Entire-Checkpoint: 01M3WHF3J227XW2Z93NWDBDHKT
Checkpoints
Checkpoint 1