Skip to content

fix(compact): clear a compaction banner that outlived its timer #94

Merged
m62624 merged 2 commits into
mainfrom
fix/compact-indicator-post-compact-stop
Jul 7, 2026
Merged

fix(compact): clear a compaction banner that outlived its timer #94
m62624 merged 2 commits into
mainfrom
fix/compact-indicator-post-compact-stop

Conversation

@m62624

@m62624 m62624 commented Jul 7, 2026

Copy link
Copy Markdown
Owner

No description provided.

m62624 and others added 2 commits July 7, 2026 20:38
…sume

The compaction indicator could linger over the resumed model: the
`aboveEditor`/dashboard "Compacting… 95%" banner stayed up while the model
was already thinking, calling planner_status, and running tests after the
compaction had ended.

The resume hooks (agent_start / turn_start / message_start) tore the banner
down only when the closure's own `compactTimer` interval was still live. But
the banner line is module-level (mirrored into /planner-dashboard) and can
outlive that timer — a re-registration on /reload leaves a fresh interval at
null while the old banner line still shows. Gating solely on the timer then
skipped the clear and the stale banner survived every resume signal.

Consult the durable banner state too: clear when EITHER the interval is live
OR the shared banner line is still up. Summarization blocks the agent loop,
so any resume signal means the compaction is genuinely over, making the
force-clear safe. The clear is a no-op outside planner mode (the banner is
only ever set while a plan is active), so it never touches Pi's own UX.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
….10.0)

package.json drifted to 0.11.0 in #85 while the latest npm release is still
0.10.0 (package-lock.json was never bumped, so it already read 0.10.0). The
working tree should track the published version; the release bump is applied
by CI from the tag, not carried ahead in main. Reset to 0.10.0 so the two
match again.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions github-actions Bot added the fix label Jul 7, 2026
@m62624 m62624 merged commit e58c276 into main Jul 7, 2026
6 checks passed
@m62624 m62624 deleted the fix/compact-indicator-post-compact-stop branch July 7, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant