Let the latest final text block decide the transcript match

Commit

gtrrz-victor13h ago

finalMessageWritten matched if any end_turn text block was a suffix of the final text, so an earlier block could stand after a later, different one was written. Now the last text block of each end_turn entry sets the result, so a later non-matching block clears an earlier match.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Entire-Checkpoint: 01M48CQ6DM5B9V6FC89XARAHQF

Checkpoints

Handle Claude Code StopFailure Events

Claude CodeOpus 5.5
View session
Checkpoint 1