The Chat session list dot did not follow the plugin it mirrors (:PiSessions in pi2.nvim, lua/pi/ui/sessions.lua). Four things were wrong: - priority: attention outranked error and exited; the plugin order is exited > error > attention > done > busy > compacting > idle. - interrupted wore the attention amber, the same colour as "waiting for you"; it is a dead process, so it takes the solid exited red (dot--dead). - exited and dormant were collapsed into the hollow grey ring; a dead parent is the solid red one, the hollow ring is the dormant sub-session. - sub-sessions reused the parent matrix. They now follow child_dot_hl: a failed child is steady red while you are looking at it and blinking red while you are not, busy/compacting blink at the busy rate, and a child never shows green (the plugin forces done=false there). The current-tab marker (PiSessionsListCurrent) was missing entirely: the row the console has open now carries dot--current, steady on idle and blinking on busy, and never on top of a notification colour - same guard as refresh_current_markers. It is the browser analogue of the focused nvim tab, so no wire change is needed. Also drops the unreachable sessionDotClass() dead code, whose second mapping was the reason the divergence went unnoticed, and consolidates the three subagent dot tables into subagentDot(). Unread notifications now expire like the plugin's: done/error are unread markers, not states (on_agent_end only raises done for a tab that is not current, clear_flags wipes both on TabEnter). The store gained markSeen(), called when the routed session carries done/error, so a session you open stops being green or red. The canonical reducer and fixtures/ are untouched: this is a client-side view concern.
pi2-web
React port of the pi2 web UI prototype, built into web/dist and served statically by pi2 daemon.
Development
# Start dev server with proxy to daemon (:7676)
pnpm --dir web dev
# Typecheck
pnpm --dir web typecheck
# Run test suite
pnpm --dir web exec vitest run
# Run only changed tests or specific file
pnpm --dir web exec vitest run --changed
pnpm --dir web exec vitest run tests/chat.composer.test.tsx
# Watch mode
pnpm --dir web test
For performance tuning, concurrency settings, and DOM environment details, see docs/testing.md.