Repository navigation
Replies: 1 comment
|
Umbrella tracking issue for the coordinated PRs: #2356. Child PRs should link back there; this thread stays the longer three-way rationale. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Why this discussion exists
This is the evidence base for a coordinated set of session-attention PRs I intend to dogfood and merge over the next week or two (
dogfoodedlabel, 48h UTC opt-out — Discussion #2083). The short proposal that the PRs link back to lives on the umbrella issue (filed alongside this). This thread is the longer three-way rationale: what upstreammain, IanMStevenson's #2296 tip, and my live multi-session install each draw for the same session states.I run HAPI with a fleet of over 1,000 sessions, of which at least ~30 are active at any one time. The comparisons below are from that load, not from a toy list.
Session row state rendering — three-way comparison
Date: 2026-11-09 (inventory verified 2026-11-10)
Role: Rationale for upstream work on session attention for multi-session fleets.
PRs in that set should link here (or to the umbrella issue that cites this).
Why: What states a session can be in, and what three trees draw for them — upstream
main, IanMStevenson's #2296 tip, and the local fork that has been running the attentionwork at fleet scale (1,000+ sessions, ≥~30 resident at a time).
Sources read directly:
main:web/src/components/SessionRowSummary.tsx(post832c5922f, 2026-11-01)IanMStevenson/hapi@f67e13905308same fileff7e86490same fileAxes a session varies on
s.active. A runner has the session loaded in memory. Not the same as "doing work".s.thinking(foreground),backgroundTaskCount > 0.pendingRequestsCount,attention.kind(permission / input / background / unread).metadata.lifecycleState === 'archived'.Session list status mode
sessionListStatusMode: 'standard' | 'detailed', defaultstandard— Settings → Display →"Session list status" (
web/src/hooks/useSessionListStatusMode.ts). This setting is onmain. It feedsshowDetailedStatus, which gates some list chrome (not the activity dot):mainand the local fork(local fork marker slot uses
(showDetailedStatus && attention==='background') || (s.active && bgCount>0))Upstream's presence dot and Ian's badge are not mode-gated; both render in
standard.What each codebase draws
mainactive && thinkingworking)active && !thinking && bgCount>0background)active && !thinking && !bgCountwaiting)!activestopped)opacity-50+ muted titlelifecycleState==='archived'!activestopped(per his comment)!activeattachedJob.status==='running'sessionIsUnreadattention.kind)Findings
Different surfaces. Upstream and Ian put presence on the agent icon as a corner dot. The
local fork put activity in a marker slot beside the title and used row opacity for
non-residency. Same concepts, three places in the DOM.
Ian's new marks vs current
mainare two, not four:waiting→ hollow ring, wheremaindraws a solid green dot.stopped→ power mark, wheremaindraws nothing.His
workingandbackgroundmatchmain's existing dot states.Nobody separates archived from non-resident. Ian's comment: "power mark = stopped or
archived". Upstream does not model
lifecycleStatein this file; dimming on the local forkfollows
!s.active.Blocked-with-reason is on the local fork and is the body of the PRs proposed here. It is
not on
maintoday.Row fade marks non-residency. A faded row means no runner has the session in memory.
Job chrome is a separate signal. Wake-on-complete (landed with feat: show progress bar on session for hours-long jobs #1424) brings the session
back when outliving work finishes, so the session need not stay resident for the wait.
After
832c5922f832c5922f(2026-11-01) removed the row-level fade and moved activity to the icon dot. Thatactivity signal stays. What this set adds on the same surface:
Attached-job list chrome is already on
main(#1424, merged 2026-11-10).Waiting is not unread
waiting=s.active && !thinking && !bgCount— resident, nothing running.unread=sessionIsUnread(...)— activity the operator has not seen.A session can be waiting and already read, or waiting and unread. When an agent finishes a turn,
both are often true at once. Unread already has its own affordance in all three trees (semibold
title; local fork also accents the time). Ian's
waitingring therefore marks a state unreadalready covers for the interesting case, and also fires when the session is idle and already
read.
Direction
waitingring; unread already covers the useful half of that overlap.main's working/background dot colours as the activity axis beside the fade.832c5922fremoved a row-level non-residency signal that existed before (bc543dc49). Restorea row-level fade; do not import a badge taxonomy.
sessionListStatusMode: detailed.What this is for
When an agent finishes, the list should show what it concluded and what it needs next. Status
summaries feed that; blocked chrome surfaces it.
Part 2 — landing the rest under this umbrella
I have been dogfooding this attention-management surface on a live multi-session install
(1,000+ sessions, ≥~30 resident at a time). Pieces already on
mainare listed first. OpenPRs are next. Issues that still need a PR are last.
Intent: over the next week or two I intend to dogfood and merge the remainder of this set —
open PRs first, then the PRs not yet lodged — under this same umbrella, using the published
dogfoodedpractice (48h UTC opt-out, then merge intent;Discussion #2083). If any item should not
proceed, remove the
dogfoodedlabel on that PR.Already on
mainmain(#1375 / #1376)main832c5922fdoneharness silencePRs already placed (dogfood → merge under this umbrella)
dogfoodedresource_exhaustedetc.) → surface + notifyAGENT_NOTIFY_SUMMARYwhen Emit status summaries is onPRs yet to be lodged
Open issues (or dogfooded local work) that still need an upstream PR. Same umbrella; same
dogfood → merge intent over the next week or two.
832c5922fSeams
main(and feat(cli): Cursor emits AGENT_NOTIFY_SUMMARY when status-summary toggle is on #2354 covers Cursor); list persistence and default-on are still open.compose on purpose.
sessionListStatusMode: detailed.badge polish.
Order
Screenshots (dark mode, live install)
Attached-job meters:
Blocked section + per-row chip:
Feedback welcome here. Opt-out of any individual PR by removing its
dogfoodedlabel (and ideally noting why in this thread or on that PR).All reactions