Carry a turn's prompt under the session lock

Commit

peyton-alt5d ago

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

Track Subagent Work Across Worktrees

Claude CodeOpus 5.5[1m]
View session
Checkpoint 1