Repository navigation
feat: compact historical turns with archived per-turn stats - #445
Merged
Merged
Conversation
Historical (non-latest) turns collapse to a single line showing the request, outcome, and real archived stats when the turn completed cleanly; Ctrl+T toggles expanding the last compacted turn back to full detail. Stats are archived by turn ordinal at clean completion so a cancelled turn cannot desync later ordinals. Also: activity groups gain per-category icons and an N-retries badge once a failing group recovers, outcome merging is now recovery-aware (latest activity wins), thinking narration folds into routine activity groups, exec_command/write_stdin validation summaries group as Validating, and the pinned busy-status line gets a 150ms debounced entrance so near-instant responses never flash it.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
Historical (non-latest) turns collapse to a single line showing the request, outcome, and real archived stats when the turn completed cleanly; Ctrl+T toggles expanding the last compacted turn back to full detail. Stats are archived by turn ordinal at clean completion so a cancelled turn cannot desync later ordinals. Also: activity groups gain per-category icons and an N-retries badge once a failing group recovers, outcome merging is now recovery-aware (latest activity wins), thinking narration folds into routine activity groups, exec_command/write_stdin validation summaries group as Validating, and the pinned busy-status line gets a 150ms debounced entrance so near-instant responses never flash it. Co-authored-by: Mohit Ranka <[email protected]>
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
Historical (non-latest) turns collapse to a single line showing the request, outcome, and real archived stats when the turn completed cleanly; Ctrl+T toggles expanding the last compacted turn back to full detail. Stats are archived by turn ordinal at clean completion so a cancelled turn cannot desync later ordinals. Also: activity groups gain per-category icons and an N-retries badge once a failing group recovers, outcome merging is now recovery-aware (latest activity wins), thinking narration folds into routine activity groups, exec_command/write_stdin validation summaries group as Validating, and the pinned busy-status line gets a 150ms debounced entrance so near-instant responses never flash it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Long sessions currently scroll away under full-detail history. This change collapses every historical (non-latest) turn to one line — request, outcome glyph (warning on error, check on clean completion), and real stats when the turn completed cleanly — so the transcript stays readable through long sessions while full detail remains one keystroke away.
Ctrl+Ttoggles expanding the most recently compacted turn back to full detail (TurnExpansionState, keyed byChatItem::Userindex so it survives transcript-window scrolling).secs · chars · tok/s · tools) are archived by turn ordinal at clean completion (record_turn_summary), so a cancelled or paused turn can never desync the ordinals of later turns. Compact rows show real archived stats instead of derived placeholders; turns without stats fall back to a derived summary.Also in this change
Success; outcome merging is now recovery-aware (latest activity wins, so a later success supersedes an earlier failure instead of a stale red state sticking); thinking narration during exploration folds into the group instead of fragmenting it.exec_command/write_stdinsummaries now group asValidatingthe same waybashdoes (regression test included — previously they rendered as bare tool cards).turn_started, so it doesn't flicker at step boundaries); hiding is never debounced.Tests
motion_timing.rs(debounce entrance/hide behavior),turn_stats.rs(ordinal-keyed archive + cancelled-turn desync regression), plus transcript unit tests for compact rendering, turn boundaries, recovery-aware outcome merging, and theexec_commandvalidation grouping.Fixes observed live:
exec_command-runcargo checkrendered as an ungrouped card; compiled-minute-then-compact behavior dropped highlight-cache test coverage.