Repository navigation
fix(ui): focus capability prompt - #117279
jacobtomlinson merged 4 commits into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 4:59 PM ET / 20:59 UTC. ClawSweeper reviewWhat this changesThis PR extends the agent-capabilities menu action so its “What can you do?” draft focuses and briefly highlights the matching active chat composer, including after route cleanup and short-session resolution. Merge readinessThe patch is a coherent, source-backed Control UI improvement and is still necessary because current main only pre-fills the composer; it does not focus or visually reveal it. The final head has focused browser/E2E evidence and broad passing CI, but this contributor PR carries the protected Priority: P3 Review scores
Verification
How this fits togetherThe Control UI sidebar opens an agent’s chat session and can prefill a question in its composer. The chat route resolves that session and renders the active pane, which owns the one-shot focus and attention cue. flowchart LR
A[Agent capabilities menu] --> B[Draft and focus route hint]
B --> C[Session route resolution]
C --> D[Matching active chat pane]
D --> E[Prefilled composer]
D --> F[One-shot focus]
F --> G[Brief attention cue]
Decision needed
Why: The source, focused regression coverage, exact-head browser proof, and CI context support the implementation, but the Before merge
Agent review detailsSecurityNone. PR surfaceSource +276, Tests +194. Total +470 across 14 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused-prefill flow after a maintainer confirms the final clean merge/check state; keep the focus hint route-scoped, pane-matched, and one-shot as this branch does. Do we have a high-confidence way to reproduce the issue? Yes. The supplied exact-head browser E2E scenario invokes the capabilities action, verifies the matching composer draft and focus, and covers both animated and reduced-motion cues; the check context records passing UI E2E shards for that head. Is this the best way to solve the issue? Yes. A route-scoped one-shot hint preserves the established draft-navigation flow while limiting focus and animation to this explicit menu action and the matching active pane. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c4a9f59798d2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
|
Accessibility repair pushed in e84fa64b123ecb40618428f7c51b31ac44900004. Browser proof on repository-pinned Playwright Chromium 151.0.7922.34 (mocked Gateway): sidebar-interactions.e2e.test.ts passed 6/6. The capabilities action prefills “What can you do?”, focuses the matching composer, and uses chat-composer-prefill-attention under normal motion. With reduced motion, computed animation-name is none while the static accent ring remains visible. Both states were screenshot-verified locally; generated artifacts were not committed. Additional proof: 257 focused unit tests passed; UI production/test typechecks, targeted Oxlint, configured Stylelint, formatting, git diff --check, and structured autoreview all passed. Crabbox/Testbox was unavailable because the installed binary failed its required sanity check, so repository-policy local Chromium fallback was used. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
600b5d4 to
f8e7593
Compare
f8e7593 to
a2db947
Compare
a2db947 to
fb1d8c9
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* fix(ui): focus capability prompt * fix(ui): honor reduced motion for composer cue * fix(ui): strengthen composer prefill cue * fix(ui): preserve composer focus after menu close


Summary
Testing
node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts(219 tests)node scripts/run-vitest.mjs ui/src/pages/chat/route.test.ts(17 tests)node scripts/run-vitest.mjs ui/src/pages/chat/chat-page.test.ts(30 tests)node scripts/run-vitest.mjs ui/src/pages/chat/chat-pane-lifecycle.test.ts(21 tests)pnpm tsgo:uipnpm tsgo:test:uigit diff --checkNotes
pnpm check:changedcould not delegate because the installed Crabbox binary failed its sanity check; repository-policy local fallback checks passed.Agent Transcript
Redacted codex session transcript
Exact-head behavior proof
fb1d8c96821a148c340d6cc7e30d27555e510e63taskset -c 0 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/sidebar-interactions.e2e.test.ts— 6/6 tests passed in 47.56s.