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
Count checkpoint "steps" by prompts, not file-modifying turns
The session "steps" shown in the UI came from the CLI's StepCount, which
only incremented on turns that modified files and reset to 0 after each
condensation. This produced wrong and frequently-zero counts.
- Bug 1: checkpoints written before any SaveStep ran (mid-turn/commit-only
condensations) recorded 0.
- Bug 2: `entire attach` never set the count, so it always wrote 0.
- Counting change: derive the count from SessionTurnCount (every prompt,
exec-mode safe) over a per-checkpoint window, with a deferred reset so
back-to-back checkpoints report the same count instead of 0. Floored at 1.
Decouples the combined-attribution gate (previously keyed off the now-floored
checkpoints_count) onto a new SaveStepCount metadata field.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments