Skip to content

fix(ui): show session attention on Home - #123759

Merged
steipete merged 2 commits into
mainfrom
fix/autoqa25-home-attention
Aug 14, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/autoqa25-home-attention

Conversation

@steipete

@steipete steipete commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

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 resolveHomeSessionAttention host 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.

Before: Home missing question attention

After, quiet control:

After: quiet Home remains quiet

After, pending question:

After: Home shows question attention

After, failed run:

After: Home shows failed-run attention

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.
  • Targeted oxfmt and git diff --check origin/main..HEAD — clean.
  • Changed gate — Blacksmith Testbox tbx_01m00nxmbz4kdrft1tj2cr98vy, Actions run 31825280312, exit 0.
  • Fresh Codex autoreview against origin/main — no accepted/actionable findings.
  • Exact-head CI — run 31826126511 green. One unrelated tooling assertion missed a filesystem timestamp by 0.0066 ms and passed its single-job rerun (job 94856038713); no source change was needed.

AI-assisted; the complete diff and behavior were independently reviewed and verified.

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 14, 2026 16:58
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 1:59 PM ET / 17:59 UTC.

ClawSweeper review

What this changes

The PR makes the Control UI Home sidebar row display canonical attention for questions, approvals, agent-declared blockers, and unread failed runs.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep 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
Reviewed head: 35c70143bae2a79b533578e2939398c7cb33b815

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-boundary repair with strong visible after-fix evidence and no actionable correctness finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (recording): The PR includes direct before/after Home-row media, an exact-head Chromium recording, and a focused E2E result showing the improved behavior.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (recording): The PR includes direct before/after Home-row media, an exact-head Chromium recording, and a focused E2E result showing the improved behavior.
Evidence reviewed 6 items Current-main omission: Home independently reads only pending approval state and otherwise renders the ordinary home glyph, so question, agent, and failed-run attention cannot reach Home.
Canonical attention owner: The controller gives keyed questions and approvals precedence, then agent-declared attention, then unread failed/timeout attention; the PR reuses this projection rather than adding another policy path.
Sibling rendering contract: Regular session rows already receive controller-resolved attention and render it through the shared icon and subtitle presentation helpers.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Resolve merge risk (P1) - Exact-head GitHub checks are queued, so merging should wait for their successful completion despite the supplied targeted proof.
Agent review details

Security

None.

PR surface

Source +52, Tests +181. Total +233 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 6 98 46 +52
Tests 1 181 0 +181
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 279 46 +233

Review metrics

Metric Value Why it matters
Production versus test LOC production +40/-40 (net 0); tests/support +239/-6 The bug fix absorbs the behavior into the existing attention owner without net production growth while adding focused regression and browser coverage.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #123758
Summary: This PR is the concrete candidate fix for the canonical Home-row attention report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land this narrow consumer-side projection once exact-head checks are green, keeping SessionAttentionController as the sole attention-precedence owner.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P2: The PR repairs a bounded Control UI visibility defect that can hide a blocked or failed main session.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (recording): The PR includes direct before/after Home-row media, an exact-head Chromium recording, and a focused E2E result showing the improved behavior.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR includes direct before/after Home-row media, an exact-head Chromium recording, and a focused E2E result showing the improved behavior.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The PR includes direct before/after Home-row media, an exact-head Chromium recording, and a focused E2E result showing the improved behavior.

Evidence

What I checked:

Likely related people:

  • steipete: Current main blames the Home renderer and its approval-only behavior to this author’s extracted Control UI renderer commit; the same person is also carrying this focused repair. (role: introduced current Home attention surface and recent area contributor; confidence: high; commits: 45d5b5ef519b; files: ui/src/components/app-sidebar-render.ts, ui/src/components/session-attention-controller.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-14T17:23:10.119Z sha e964ff8 :: needs maintainer review before merge. :: none
  • reviewed August 14, 2026, 1:32 PM ET / 17:32 UTC sha unknown :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the fix/autoqa25-home-attention branch from e964ff8 to 35c7014 Compare August 14, 2026 17:53
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 14, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready at 35c70143bae2a79b533578e2939398c7cb33b815.

  • Focused sidebar suite: OPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts — 255/255 passed.
  • Chromium UI E2E: 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 — quiet, agent, question, and failed-run states passed; exact-head screenshots/video are in the PR body.
  • Targeted oxfmt and git diff --check origin/main..HEAD — clean.
  • Changed gate: Blacksmith Testbox tbx_01m00nxmbz4kdrft1tj2cr98vy, run 31825280312, exit 0.
  • Fresh Codex autoreview — no accepted/actionable findings.
  • Native review artifacts — validated READY FOR /prepare-pr, zero findings.
  • Exact-head CI: run 31826126511, green. An unrelated tooling mtime assertion missed by 0.0066 ms and passed its single-job rerun (job 94856038713); no source change was needed.
  • ClawSweeper: no code findings; its only rank-up move was green exact-head CI, now satisfied.

Production remains +40/-40 (net 0); tests/support +239/-6. No public API, config, protocol, persistence, security, release, or changelog change.

@steipete
steipete merged commit da7a2b4 into main Aug 14, 2026
298 of 302 checks passed
@steipete
steipete deleted the fix/autoqa25-home-attention branch August 14, 2026 18:27
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 15, 2026
* fix(ui): show main-session attention on Home

* refactor(ui): keep Home attention boundary private
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Home hides actionable session attention

1 participant