Skip to content

feat: collapse status notices into a session-line indicator and Ctrl+b n popup - #16

Merged
jayhesselberth merged 1 commit into
mainfrom
notice-indicator
Aug 27, 2026
Merged

feat: collapse status notices into a session-line indicator and Ctrl+b n popup#16
jayhesselberth merged 1 commit into
mainfrom
notice-indicator

Conversation

@jayhesselberth

Copy link
Copy Markdown
Member

Why

The notices below the status bar had grown to two rows (quota + maintenance warnings, Claude Code hint), each holding a row of pane height for its whole life and resizing every pane whenever one appeared or cleared. This collapses all of it into a compact ⚠ N notices counter on the session line itself, so the panel is always exactly one status line tall.

What

  • Indicator: ⚠ N notices Ctrl+b n joins the right side of the session line — red while the quota warning is among the notices, yellow otherwise, absent when there is nothing to say. While the quota warning holds, the counter shimmers (a lighter band sweeping through the red text, like Claude Code's spinner verbs); the status loop ticks at 0.2 s only while animating, and everything else in it is gated on wall-clock deltas.
  • Ctrl+b n popup: shows the notices in full, same pattern as the Ctrl+b h help popup. Overrides tmux's stock next-window, which has nothing to act on with the window list hidden.
  • --status: prints the same notice text from the login node, reading the notices file (~/.cache/sinteractive/JOBID.notices, kind-tagged plain text) the session maintains and removes at teardown.
  • Detach hint removed from the status line; it already lives in the help popup, which now also lists Ctrl+b n.
  • Docs updated: man page, usage/scripting docs, bodhi-storage skill, changelog.

Testing

Verified end-to-end on Alpine with a live session: indicator absent → 1 yellow notice (hint) → 2 red notices with shimmer frames advancing (fake over-quota cache + poke) → cleared back to yellow within a tick of --check-quota's poke; popup and --status render both severities; .notices file removed at teardown. bash -n, shellcheck --severity=warning, and groff -ww all clean locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HRyadhPDaFcD7CDstL7U9t

…b n popup

The notices were status lines of their own below the session line. Each
held a row of pane height for its whole life — the quota and maintenance
warnings never clear on their own — and every appearance resized every
pane in the session. They are now a compact "⚠ N notices" counter at
the right of the session line, red while the quota warning is among them
and yellow otherwise, so the panel is always exactly one line tall. A
new Ctrl+b n popup shows the notices in full (overriding tmux's stock
next-window, which has nothing to act on with the window list hidden),
and --status prints the same text from the login node via a notices file
the session maintains in ~/.cache/sinteractive/.

While the quota warning holds, the counter shimmers — a lighter band
sweeping through the red text, like Claude Code's spinner verbs — so the
one notice that needs acting on keeps catching the eye. The status loop
ticks at 0.2s only while animating; everything else in it is gated on
wall-clock deltas, so the faster tick costs only the frame. The yellow
countdown pulse is keyed to the wall clock rather than the tick count so
its beat survives the faster tick.

The Detach hint is out of the status line entirely; it already lives in
the Ctrl+b h help popup, which now also lists Ctrl+b n.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HRyadhPDaFcD7CDstL7U9t
@jayhesselberth
jayhesselberth merged commit a1c9234 into main Aug 27, 2026
1 check passed
@jayhesselberth
jayhesselberth deleted the notice-indicator branch August 27, 2026 21:40
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