Repository navigation
fix(web): Esc in ACP Registry search clears it without closing Add provider - #42158
juliusmarminge merged 3 commits into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…search-escape-clear Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…arch Hold Escape during IME composition inside the search so it cannot close Add provider, ignore modified or already-handled Escape, and prevent the native clear, as the Voice model search on main does. Drop test assertions on input attributes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EvidenceReal web app, Chromium, 1280×800, light theme, fresh isolated data on each commit. Open Settings → Providers → Add provider → Show more, enter
Head also passed dispatched repeat and composition-marked Escape checks, and closed on a separate Escape with an empty search. Not shown:
|
#42158 landed the same Escape handling on main. Keep main's version and test, with this branch's addition: Escape clears the submitted query at once instead of through the typing debounce. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>


In Settings → Providers → Add provider → Show more, the "Or choose from ACP Registry" search had no Escape handling. With a query typed, Escape closed the whole Add provider dialog instead of clearing the search. The field also used
type="search", which Chromium clears natively on Escape even while an IME is composing.Fix
The same pattern as #41764, #41856 and #42076:
type="text"withrole="searchbox", so the browser no longer clears the field on its own, andenterKeyHint="search", so phone keyboards still show a Search key.Repro (Linux, Chromium,
vp run dev --no-seed)clineinto the ACP Registry search.After the fix, a second Escape closes Add provider and leaves Settings open. Desktop runs the same web component; mobile has no ACP Registry search.
Verification
An AI agent ran each check below.
AcpRegistrySearchStep.browser.test.tsx, with the step inside a realDialog: the field istype="text"with a Search key hint, an IME Escape (both theisComposingand the SafarikeyCode 229shape) keepsgemini, a real Escape clears it without closing and keeps focus, a held auto-repeat Escape does not close, and a second Escape closes. It fails on main and passes here in 3 of 3 runs (vp test run ... --maxWorkers=1). Removing any one guard (isComposing,keyCode 229,repeat,stopPropagation) makes it fail.vp run check:changedpasses.Generated with Claude Opus 5.5 in T3 Code Nightly