Skip to content

fix(tui): fade the resumed-session notice instead of pinning it - #28

Merged
jkyberneees merged 1 commit into
mainfrom
fix/resume-note-fade
Aug 9, 2026
Merged

fix(tui): fade the resumed-session notice instead of pinning it#28
jkyberneees merged 1 commit into
mainfrom
fix/resume-note-fade

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Summary

Fixes the resumed session <id> notice never disappearing after resuming a session via the ^R panel.

Two root causes, one symptom:

  • The notice was posted with addNote (sticky — only evicted by six newer notices) instead of as a transient trace. It now fades after the 3s noticeTTL like skill/memory/subagent notes.
  • Latent companion bug: transient notes posted outside handleEvent (ctrl+t, ctrl+e, cancel acks, the resume path) never armed the noticeExpireMsg sweep — the tick was only scheduled inside handleEvent — so those notes also lingered on an idle screen until an unrelated render. New transientNoteCmd helper posts the note and returns the sweep cmd; batched at all five non-event call sites.

The server log · <path> notice stays sticky deliberately — it's a durable pointer to the log file, not a transient trace.

Test plan

  • make fmt / make vet clean
  • make lint — 0 issues
  • make test — full -race suite green
  • New TestResumedSessionNoteFades: resume notice is transient, sweep cmd is armed, note pruned after TTL
  • TestCancelRunGuards updated to the new contract (idle cancel returns the notice sweep, posts the transient note)

The "resumed session <id>" notice was posted as a sticky note, so it
stayed on screen until six newer notices pushed it out. Make it
transient like the other info traces.

Same symptom, second cause: transient notes posted outside handleEvent
(ctrl+t, ctrl+e, cancel acks, session resume) never armed the
noticeExpireMsg sweep, so they only faded when an unrelated render
happened. Add transientNoteCmd, which posts the note and returns the
sweep cmd, and batch it at every non-event call site.
@jkyberneees
jkyberneees merged commit bd9bd83 into main Aug 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant