Skip to content

fix(test): expect model picker search autofocus - #163089

Merged
steipete merged 1 commit into
mainfrom
codex/composer-focus-expectation
Oct 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/composer-focus-expectation

Conversation

@steipete

@steipete steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

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.

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 1, 2026 23:29
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 7:34 PM ET / 23:34 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 881745d4e80becaacb9ceef49461da3701b325fc

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, maintainable expectation repair with relevant reported validation and no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: This trusted-author PR changes only the browser assertion for the existing picker focus handoff. Reported full-app and sibling-browser replays are supplemental validation; no production or stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This trusted-author PR changes only the browser assertion for the existing picker focus handoff. Reported full-app and sibling-browser replays are supplemental validation; no production or stored-data contract changes.
Evidence reviewed 8 items Pinned introduced change: The introduced delta replaces transient trigger-focus and negative search-focus assertions with a positive polling assertion. Passive-accessory, attachment, and Escape interactions remain intact.
Intentional production contract: The merged autofocus change schedules search focus after popup opening, provided the picker remains connected and open and focus has not moved. Its browser tests cover draft preservation, keyboard reopening, cancellation, and catalog rerenders. Matching provenance is #162832.
Correction still needed on main: Fetched main retains the assertions that search is unfocused after opening. The merged production fix therefore does not supersede this test correction; no release containing this correction was established.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -1. Total -1 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 7 8 -1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 7 8 -1

Review metrics

None.

Technical review

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

Labels

Label changes:

  • add P3: This repairs a browser-test expectation without changing production behavior or user state.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This trusted-author PR changes only the browser assertion for the existing picker focus handoff. Reported full-app and sibling-browser replays are supplemental validation; no production or stored-data contract changes.

Label justifications:

  • P3: This repairs a browser-test expectation without changing production behavior or user state.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This trusted-author PR changes only the browser assertion for the existing picker focus handoff. Reported full-app and sibling-browser replays are supplemental validation; no production or stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The introduced delta replaces transient trigger-focus and negative search-focus assertions with a positive polling assertion. Passive-accessory, attachment, and Escape interactions remain intact. (ui/src/e2e/chat-composer-accessory-focus.e2e.test.ts:122, 881745d4e80b)
  • Intentional production contract: The merged autofocus change schedules search focus after popup opening, provided the picker remains connected and open and focus has not moved. Its browser tests cover draft preservation, keyboard reopening, cancellation, and catalog rerenders. Matching provenance is fix(ui): typing after opening the model picker edits the chat draft #162832. (ui/src/pages/chat/components/chat-model-picker.ts:222, b3c5176abc24)
  • Correction still needed on main: Fetched main retains the assertions that search is unfocused after opening. The merged production fix therefore does not supersede this test correction; no release containing this correction was established. (ui/src/e2e/chat-composer-accessory-focus.e2e.test.ts:122, e1d4dcc81a5c)
  • Verified merge result: The test merge has the pinned base followed by the exact PR head as raw parents. Its test-file delta matches the introduced assertion correction. (ui/src/e2e/chat-composer-accessory-focus.e2e.test.ts:122, dcb1be0025a7)
  • Reported validation: The captured PR body reports the original shard selection failing only this case, then passing 182/182 after correction, six passing model-picker browser cases, and a separate current-main full-app case taking 21.924 seconds. These are author-reported results; this read-only review executed no tests. (881745d4e80b)
  • Trusted-author status: Live GitHub permission inspection confirms steipete has repository admin access, resolving the differing author-association values in the supplied context. External-contributor proof and automatic cleanup rules do not apply.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • eleqtrizit: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@steipete
steipete merged commit 3e08951 into main Oct 1, 2026
128 checks passed
@steipete
steipete deleted the codex/composer-focus-expectation branch October 1, 2026 23:45
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
steipete added a commit that referenced this pull request Oct 2, 2026
## 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 | ![Before, light](https://github.com/user-attachments/assets/23a31a40-d0ba-4c87-b1d7-8c168f7883f6) | ![After, light](https://github.com/user-attachments/assets/d647ee86-fd11-4eb4-ac3d-e41b6f51b5f2) |
| Dark | ![Before, dark](https://github.com/user-attachments/assets/b5459098-b5a1-406e-a3d5-f7f06c6f687b) | ![After, dark](https://github.com/user-attachments/assets/26765826-83cc-4138-8e6c-4dfaa1ecb9f3) |

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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…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 | ![Before, light](https://github.com/user-attachments/assets/23a31a40-d0ba-4c87-b1d7-8c168f7883f6) | ![After, light](https://github.com/user-attachments/assets/d647ee86-fd11-4eb4-ac3d-e41b6f51b5f2) |
| Dark | ![Before, dark](https://github.com/user-attachments/assets/b5459098-b5a1-406e-a3d5-f7f06c6f687b) | ![After, dark](https://github.com/user-attachments/assets/26765826-83cc-4138-8e6c-4dfaa1ecb9f3) |

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.
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

1 participant