Skip to content

feat(desktop): show compaction progress and outcomes - #48152

Merged
Hona merged 4 commits into
v2from
compaction-lifecycle
Sep 9, 2026
Merged

feat(desktop): show compaction progress and outcomes#48152
Hona merged 4 commits into
v2from
compaction-lifecycle

Conversation

@usrnk1

@usrnk1 usrnk1 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

No linked issue.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Compaction was showing “Session compacted” as soon as it started, even while the composer was still busy.

  • Show “Session compaction started” and a shimmering “Compacting” tool row while running.
  • Show the completed, failed, cancelled, or interrupted outcome below the summary, with token usage on the divider.
  • Handle Stop during automatic compaction as an interruption, without an error card.

How did you verify your code works?

  • Three production Playwright regression tests pass, covering streaming, completion, failure, manual cancellation, and automatic interruption. Includes a narrow viewport and continued execution after compaction.
  • Package/E2E typechecks and all 35 pre-push typecheck tasks pass.
  • Production timeline benchmark passes before/after, with no remounts or scroll drift (single-run completion: 13.0s → 12.9s).

Screenshots / recordings

Before — compaction is still running

Before: completed wording while compaction is running

After — running

After: started divider and compacting activity

Completed and interrupted states

Completed — execution can continue afterward

Completed compaction with summary

Interrupted

Interrupted compaction outcome

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@Hona
Hona enabled auto-merge (squash) September 9, 2026 22:09
@Hona
Hona disabled auto-merge September 9, 2026 22:09
@Hona
Hona merged commit 571c3c4 into v2 Sep 9, 2026
10 checks passed
@Hona
Hona deleted the compaction-lifecycle branch September 9, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants