Repository navigation
fix(ui): show session attention on Home - #123759
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 1:59 PM ET / 17:59 UTC. ClawSweeper reviewWhat this changesThe PR makes the Control UI Home sidebar row display canonical attention for questions, approvals, agent-declared blockers, and unread failed runs. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open. Current main bypasses canonical session attention in Home, while this focused PR routes Home through that owner and covers the hydration gap. Likely related people: steipete (high confidence). Priority: P2 Review scores
Verification
How this fits togetherThe Control UI sidebar renders gateway session state into navigation rows. Home represents the selected agent’s main session and now resolves its attention before rendering its leading icon and accessible label. flowchart LR
A[Gateway session events] --> B[Session attention controller]
C[Main session row] --> D[Home attention resolver]
B --> D
D --> E[Home sidebar row]
E --> F[Accessible attention icon]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +52, Tests +181. Total +233 across 7 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land this narrow consumer-side projection once exact-head checks are green, keeping SessionAttentionController as the sole attention-precedence owner. Do we have a high-confidence way to reproduce the issue? Yes—current main visibly has the approval-only Home branch while the established controller owns the omitted states. This read-only review did not rerun the browser harness, so the status is source_reproducible. Is this the best way to solve the issue? Yes. The proposed adapter preserves the existing controller’s precedence and handles keyed question/approval facts when the main row is temporarily unavailable. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 727a4a621a2e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
e964ff8 to
35c7014
Compare
|
Land-ready at
Production remains +40/-40 (net 0); tests/support +239/-6. No public API, config, protocol, persistence, security, release, or changelog change. |
|
Merged via squash.
|
* fix(ui): show main-session attention on Home * refactor(ui): keep Home attention boundary private
Closes #123758
What Problem This Solves
Fixes an issue where users monitoring the main session from the Control UI Home row could miss a pending question, approval request, agent-declared attention state, or failed run because Home did not use the canonical session-attention projection.
Why This Change Was Made
Home now consumes the existing session attention controller through the narrow
resolveHomeSessionAttentionhost callback. Keyed pending question and approval facts remain visible during temporary main-row hydration gaps, while agent-declared and error attention stays row-backed through the unchanged canonical resolver. The duplicate Home approval inference and its obsolete styling are removed; the controller remains private and no public API, protocol, config, or state store changes.Production LOC: +40/-40 (net 0) | Tests/support: +239/-6
User Impact
The always-visible Home row now shows the same actionable attention as session rows. Quiet sessions remain quiet, and pending questions, approvals, agent attention, and failed runs receive the existing accessible icon and tooltip treatment.
Evidence
Before: the question is visible, but Home retains the ordinary icon.
After, quiet control:
After, pending question:
After, failed run:
Exact-head Chromium recording:
home-attention-flow-35c7014.webm
Validated at
35c70143bae2a79b533578e2939398c7cb33b815:OPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts— 255 tests passed.OPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree OPENCLAW_CAPTURE_UI_PROOF=1 OPENCLAW_HOME_ATTENTION_PROOF_VARIANT=land-final-35c7014 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/home-attention.e2e.test.ts— one Chromium E2E passed across quiet, agent, question, and failed-run states.git diff --check origin/main..HEAD— clean.tbx_01m00nxmbz4kdrft1tj2cr98vy, Actions run 31825280312, exit 0.origin/main— no accepted/actionable findings.AI-assisted; the complete diff and behavior were independently reviewed and verified.