Repository navigation
fix(ui): consolidate chat composer menu navigation - #118365
Conversation
|
@clawsweeper re-review The prior completed review artifact compares the frozen PR branch to newer |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 10:40 PM ET / August 3, 2026, 02:40 UTC. ClawSweeper reviewWhat this changesThis PR consolidates slash-command and skill-menu keyboard navigation in the Control UI chat composer and removes redundant local aliases to bring the production file below its linted line limit. Merge readinessNo actionable correctness or security defect was found in this behavior-preserving Control UI refactor. It should remain open because it carries the protected Priority: P3 Review scores
Verification
How this fits togetherThe Control UI chat composer receives keyboard input and turns it into slash-command or skill-menu selection, then supplies the current draft and run-control callbacks to the rendered chat interface. The changed helper sits between menu key events and the state used for selection, accessibility announcements, scrolling, and submission. flowchart LR
A[Composer keyboard event] --> B[Chat composer menu handler]
B --> C{Slash or skill menu}
C --> D[Selected menu index]
D --> E[Scroll and accessibility state]
E --> F[Select command or skill]
F --> G[Rendered chat composer]
Decision needed
Why: The protected Before merge
Agent review detailsSecurityNone. PR surfaceSource -12. Total -12 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the compact indexed-navigation refactor only after the current-base merge result confirms that Do we have a high-confidence way to reproduce the issue? Yes. The issue is source-reproducible: current main retains the duplicated menu-navigation branches, while the PR’s indexed access expresses the same modulo navigation and selection behavior; the supplied hosted check context also shows the relevant lint failure was repaired on the PR head. Is this the best way to solve the issue? Yes, subject to current-base merge verification. Consolidating the equivalent index reads/writes at the composer owner is narrower and safer than weakening the max-lines rule or creating another navigation abstraction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 443821f49b63. 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
|
|
Merged via squash.
|
Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Resolves a problem where the Control UI chat-composer change already on
mainmakes the repository lint gate fail because the composer exceeds its configured 700-line production-file limit.Why This Change Was Made
The chat-composer owner now uses one shared indexed navigation path for both slash-command and skill menus, combines equivalent Up/Down handling, and removes redundant aliases for the already-authoritative rendered draft and submitted-progress state. The refactor preserves the recently landed mobile Send/Stop focus behavior, keyboard selection, screen-reader announcements, draft ownership, and run status while removing 12 production lines instead of weakening or suppressing the lint rule.
User Impact
No user-visible behavior change is intended. Operators retain existing chat-menu keyboard navigation, accessible active-option announcements, draft handling, and reliable desktop/mobile Send and Stop controls; maintainers regain a passing lint gate for the existing Control UI source.
Evidence
af58761a4d5cd333a4de0ef48e2a71b88c0746f8; exact parent/base:f2af4e97b356570dd0cadf66127b1449a0f8c085.ui/src/pages/chat/components/chat-composer.tsonly; Git reports 10 added / 22 removed, production delta -12, with no test, config, dependency, protocol, authentication, or storage changes.check-lintjob.oxlint710-line RED, then restored the exact reviewed candidate blob and verified the real 698-line GREEN against the independently authenticated unchanged 700-line rule.gpt-5.6-sol, high-reasoning, P3 autoreview: clean, confidence 0.98; the genuine checksum-verified TruffleHog 3.96.0 scan was also clean.maincommitd93d07ac02adbf12e097f6bcba6387448f2d27b7extractedpreserveComposerFocusOnPrimaryActioninto its canonical DOM owner. The exact conflict-free merge tree0d9258432cde40fc77f299221aef8c78275c4958preserves that shared helper and adds this PR's indexed menu simplification; the combined composer contains 688 counted lines and does not restore a local duplicate pointer handler. The apparent helper-copy finding compares the branch's older base snapshot rather than its actual merged result.maincommitd01f03b91c37ed658483293a5c5ed8aff6f6eced, the exact conflict-free merge tree isbd045806458e47742887e4568a69c3be964d3621. Its sole changed path is the reviewed composer (+10/−22 production lines); the canonicalchat-composer-dom.tsowner remains byte-identical (ca17b5443766b0c9fafbd3d9f6d3b348416686a7), and the merged source retains both its shared focus-helper import/call and the new indexed menu navigation. Exact-head hosted UI, lint, browser, and final CI checks are green.{"status":"PASS","head":"af58761a4d5cd333a4de0ef48e2a71b88c0746f8","distinctRootCauses":1,"parentCountedLines":710,"candidateCountedLines":698,"configuredMaxLines":700,"productionLocDelta":-12,"actualChromiumPointerScenarios":4,"uiSuite":"PASS","changedGate":"PASS","productionBuild":"PASS"}Maintainer Landing Decision
Protected maintainer next step resolved: authenticated repository administrator
@steipeteexplicitly delegated autonomous maintainer review and landing of individually verified low-risk refactors. This behavior-preserving one-file repair has four independent exact-head approvals, a clean genuine fifth Sol review, authentic frozen-main RED, real Chromium/UI proof, and a complete passing remote gate/build; repository-native landing still requires green exact-head hosted checks and resolved ClawSweeper guidance.