Repository navigation
fix(test): expect model picker search autofocus - #163089
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. Reviewed October 1, 2026, 7:34 PM ET / 23:34 UTC. ClawSweeper reviewWhat this changesThe composer browser test now expects opening the model picker to focus its search field while preserving the other accessory-focus checks. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, correct test repair that remains absent from current main. No actionable patch defects were found. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI model picker routes keyboard input into model search when opened. This full-app browser test checks that focus routing alongside passive composer accessories and the attachment menu. flowchart TD
A[Browser test opens Chat] --> B[Composer accessories]
B --> C[Open model picker]
C --> D[Popup opens and transfers focus]
D --> E[Model search receives keyboard input]
E --> F[Browser assertion checks focus]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -1. Total -1 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the intentional search autofocus and align the existing full-app focus assertion with that contract. Do we have a high-confidence way to reproduce the issue? Yes, from source: opening the picker deliberately transfers focus to search, contradicting current main's negative assertion. The author reports reproducing that failure; this review did not execute it. Is this the best way to solve the issue? Yes. Waiting for the intended search focus removes a transient-focus assumption and preserves the distinct full-app accessory checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e1d4dcc81a5c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
## What Problem This Solves Fixes GitHub reference icons wrapping onto a line of their own in narrow chat columns. ## User Impact The icon stays beside the first line of the reference. Short references remain unbroken, while long repository-qualified references can wrap inside the available width. No migration or operator action is required. ## Why This Change Was Made Reuse the existing positioned GitHub icon and reserve its space with logical padding. Removing the item-specific in-flow overrides reduces production CSS by three lines and preserves left-to-right and right-to-left layout. ## Evidence The regression reproduced in both themes before the fix. All seven focused browser cases pass afterward, including the existing 200–900px width sweep; the fixture now loads production typography. The focused wrapper took 6.993 seconds with one worker. Changed checks and independent Codex P2 review passed. Synthetic Chromium captures also cover the loaded production font and long labels in both text directions. The current composition incorporates the separately landed composer-focus expectation repair (#163089). All seven GitHub-reference browser cases passed in 6.091 seconds and the full-app composer focus case passed in 17.574 seconds. Changed checks and independent P2 review passed on the exact corrected tree. The original full-suite failure and cancelled coverage remain recorded. | Theme | Before | After | | --- | --- | --- | | Light |  |  | | Dark |  |  | The maintainer explicitly waived further test execution and approved landing the reviewed correction. Existing passing evidence and failed/cancelled runs remain as recorded; no current-head CI success is claimed. Independent code review, security review, and exact-head merge admission remain required.
…3047) ## What Problem This Solves Fixes GitHub reference icons wrapping onto a line of their own in narrow chat columns. ## User Impact The icon stays beside the first line of the reference. Short references remain unbroken, while long repository-qualified references can wrap inside the available width. No migration or operator action is required. ## Why This Change Was Made Reuse the existing positioned GitHub icon and reserve its space with logical padding. Removing the item-specific in-flow overrides reduces production CSS by three lines and preserves left-to-right and right-to-left layout. ## Evidence The regression reproduced in both themes before the fix. All seven focused browser cases pass afterward, including the existing 200–900px width sweep; the fixture now loads production typography. The focused wrapper took 6.993 seconds with one worker. Changed checks and independent Codex P2 review passed. Synthetic Chromium captures also cover the loaded production font and long labels in both text directions. The current composition incorporates the separately landed composer-focus expectation repair (openclaw#163089). All seven GitHub-reference browser cases passed in 6.091 seconds and the full-app composer focus case passed in 17.574 seconds. Changed checks and independent P2 review passed on the exact corrected tree. The original full-suite failure and cancelled coverage remain recorded. | Theme | Before | After | | --- | --- | --- | | Light |  |  | | Dark |  |  | The maintainer explicitly waived further test execution and approved landing the reviewed correction. Existing passing evidence and failed/cancelled runs remain as recorded; no current-head CI success is claimed. Independent code review, security review, and exact-head merge admission remain required.
What Problem This Solves
The composer accessory E2E test still rejects model-search focus after #162832 intentionally added autofocus, causing UI CI failures.
User Impact
No production behavior changes. The test now checks that opening the model picker focuses its search field, while retaining the passive-accessory and attachment-focus checks.
Why This Change Was Made
Replace assertions about transient trigger focus with the existing polling assertion for the intended search focus. Test budgets are unchanged; the patch removes one test line overall and adds no helper or production seam.
Evidence
The original failing merge and shard selection reproduced the same sole failure (181/182 cases passing). With this correction, the same 47-file selection passed 182/182; the six model-picker browser cases also passed. Replays used macOS/Node 24 with the original shard selection and worker count; they do not claim identical Linux scheduling.
The separate current-main candidate passed the full-app focus case in 21.924 seconds with one worker. Selected checks, current-main lint/format checks, and independent Codex P2 review passed. The original failure remains recorded in CI run 36936274509; no production or schema changes are included.