Repository navigation
improve(ui): show running state with the accent across pages - #190383
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR uses the theme accent for running states across Control UI pages and preserves status dots in forced-colors mode. Example: Open the details for session agent:main:main while it is running.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides focused UI consistency improvements that current main does not include, with no introduced correctness or security defect found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI page renderers consume existing session and automation state and present labels, dots, and spinners using shared status components and theme tokens. flowchart LR
A[Gateway session and automation state] --> B[Existing UI state owners]
B --> C[Activity and Current Work]
B --> D[Sessions and Dashboards]
B --> E[Automations]
C --> F[Shared status components and theme CSS]
D --> F
E --> F
Technical reviewBest possible solution: Use existing accent tokens and shared status components for running work while preserving distinct queued, completed, failure, presence, and unread meanings. Do we have a high-confidence way to reproduce the issue? The ordinary-color inconsistency is directly visible in the supplied before images and supported by current-main status mappings; no target code was executed during this read-only review. Is this the best way to solve the issue? The change is appropriately small: it updates presentation at existing owners, reuses SettingsStatus, removes the replaced dashboard styling, and adds no state or parallel implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7c26e8cccd19. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -2, Tests +26. Total +24 across 10 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 9:19 AM ET / 14:19 UTC. |
…w#190383) Use a shared running-state token across Activity, Sessions, Dashboards and Automations. Keep queued, completed and failed states distinct, preserve accessible labels, and retain forced-colors coverage. Maintainer-authorized landing with the performance-budget exception and without waiting for remaining checks.
What Problem This Solves
"A run is in progress" looks different from page to page. Activity paints the same fact green in its header and terracotta on the avatar. Automations uses the theme's secondary accent. Dashboards and the Sessions details panel use green, which Sessions also uses for Done. Current Work and Live activity use the warning color. The sidebar, session rings and spinners already use the accent.
User Impact
A running session or automation now reads the same on Activity, Automations, Dashboards and Sessions: the theme accent, keeping each surface's label or spinner. Green stays for healthy, enabled or finished states, amber for waiting or queued, and red for failures. Labels, sizes and layout elsewhere do not change. Dashboards' "Live" moves to the shared status component, so its text is the same quiet weight as other status labels.
In forced-colors mode, the status dots on these surfaces are now painted instead of disappearing. The Activity run dot also gets an accessible name, using the existing "Live" string.
Why This Change Was Made
Every surface was judged against what its state means, and only instances of "a run is in progress" changed. Left alone on purpose:
Chat panel running states are in a separate PR. Running uses one token,
--status-running, which is the theme's accent. Three themes can't use it: Beacon's accent is the same amber as waiting, CRT's is neutral white and matches plain text, and Dash light's is close to its waiting rust. Those use the theme's blue. Every other theme follows its own accent. Every changed surface keeps a non-color signal: a label or a spinner, and on the Activity avatar, a pulse and a position separate from presence.Evidence
Mock data at 1440px and 390px, in Absolutely dark and light, CRT and Beacon. Automations' running rows come from
runningAtMsset in the mock's cron data, since the mock has no running job by default.Automations, Absolutely dark
Live activity, Absolutely light
Dashboards, Absolutely light
Sessions details, Absolutely light
Automations, CRT
Activity, Beacon
Activity, 390px
Dashboards, After in Safari
Checks: oxfmt and stylelint on touched files,
pnpm tsgo:ui, andui:check-performance:base(no failure reported). Page tests for Activity, Dashboards, Sessions and Cron and the forced-colors browser test, which gains a case for these dots, pass except for two failures that also fail on main on this machine:view.invalidation.browser.test.tsx(undo shortcut) andcron-page.delivery-conversations.test.ts.