Repository navigation
improve(ui): restore PR and worker colors on session rows - #189526
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 restores state colors to pull request badges and shows healthy worker badges while preserving the two-badge limit. Example: A sidebar session has an open pull request and an active worker.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored presentation adjustment remains absent from main, has clear visual evidence, and introduces no actionable defect. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI converts session placement and pull request facts into ranked badges, then renders their icons and applies theme colors. flowchart LR
A[Gateway session facts] --> B[Sidebar presentation]
B --> C[Badge resolver]
C --> D[Two badge selection]
D --> E[Session row renderer]
F[Theme tokens] --> E
Technical reviewBest possible solution: Use the existing badge resolver and theme tokens to restore recognizable PR and worker signals without adding another presentation path. Do we have a high-confidence way to reproduce the issue? Current main explicitly hides healthy placements and mutes PR badges; the inspected before screenshots independently show both behaviors. Is this the best way to solve the issue? The change is focused: it updates the existing visibility filter, badge ranking, and CSS cascade while retaining urgent signals, child suppression, and the two-badge cap. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cb06c051a505. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +15, Tests +20. Total +35 across 4 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 October 31, 2026, 12:15 PM ET / 16:15 UTC. |
|
Merged via squash.
|
…189696) * test(ui): align disk badges and Review loading checks Update the disk-pressure scenario for healthy worker badges restored in #189526. Keep Environment summary reads separate from the deferred Review patch request introduced in #189571, and assert the rendered patch after opening its file. * test(ui): keep Review request assertions type-safe * fix(test): allow offline placement recovery reload * fix(test): retain automation row contract after reload
…penclaw#189696) * test(ui): align disk badges and Review loading checks Update the disk-pressure scenario for healthy worker badges restored in openclaw#189526. Keep Environment summary reads separate from the deferred Review patch request introduced in openclaw#189571, and assert the rendered patch after opening its file. * test(ui): keep Review request assertions type-safe * fix(test): allow offline placement recovery reload * fix(test): retain automation row contract after reload
…189696) * test(ui): align disk badges and Review loading checks Update the disk-pressure scenario for healthy worker badges restored in #189526. Keep Environment summary reads separate from the deferred Review patch request introduced in #189571, and assert the rendered patch after opening its file. * test(ui): keep Review request assertions type-safe * fix(test): allow offline placement recovery reload * fix(test): retain automation row contract after reload (cherry picked from commit 01ac91c) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Session rows in the sidebar stopped coloring pull request icons, so open, merged and closed look alike at a glance. Rows also stopped showing that a session runs on a worker unless the worker had a problem.
User Impact
PR state reads from color again in the sidebar, and sessions running on a worker are marked again.
Why This Change Was Made
--ok, merged--pr-merged, closed--danger. Draft stays muted.--accentinstead of the earlier green and accent mix. Failed still uses--danger; low disk and workspace conflicts keep their existing colors..session-row-badgeleft the muted rule because it inherits that color from its group.Evidence
Real components rendered from data at the mock Gateway layer, in Chromium. Nothing was inserted into or hidden in the rendered page.
placementin thesession-designfixture'ssessions.listdata, not committed.controlUi.sessionPullRequests.subscriberesponse, not committed. Its handler was also changed locally to answerpassiveSessionKeys, which the sidebar uses and the fixture ignored.Before and after, Absolutely
After, CRT and Beacon
Computed icon color
rgb(34, 197, 94)rgb(22, 101, 52)rgb(34, 197, 94)rgb(22, 101, 52)rgb(94, 232, 138)rgb(12, 80, 36)rgb(167, 139, 250)rgb(124, 58, 237)rgb(167, 139, 250)rgb(124, 58, 237)rgb(167, 139, 250)rgb(124, 58, 237)rgb(248, 113, 113)rgb(185, 28, 28)rgb(248, 113, 113)rgb(185, 28, 28)rgb(255, 171, 171)rgb(140, 15, 15)rgb(217, 119, 87)rgb(204, 125, 93)rgb(232, 232, 232)rgb(31, 31, 31)rgb(255, 194, 51)rgb(110, 74, 0)rgb(248, 113, 113)rgb(185, 28, 28)rgb(248, 113, 113)rgb(185, 28, 28)rgb(255, 171, 171)rgb(140, 15, 15)Draft resolves to the muted color in every theme. Colors at 390 px match desktop in Absolutely.
Checks
Run on the final code:
session-row-badges,app-sidebar-session-pr-indicators,app-sidebar-session-row-render,app-sidebar-session-navigation-logicsrc/components/app-sidebar*testsapp-sidebar.stress.browser, same 5 fail on the base commit)cloud-session-placement-identity,session-management.trailing-state,chat-flow.sidebar-presentationtsgo:ui,lint:ui:styles, oxfmt, oxlintui:check-performance:baseFull suites were not run.
Known gaps
rgb(248, 113, 113)) and a healthy one (rgb(217, 119, 87)) are close in hue and share the same globe icon.app-sidebar.stress.browser.test.tsfails 5 of 8 tests both with and without this change.