Repository navigation
fix(web): Esc in ignored file search clears it without closing Add to another machine - #43559
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…achine-search-escape
…er searches Base UI's dialog already ignores Escape during IME composition, so the input only needs the shared guard used by the theme and model searches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EvidenceSteps: Seed a synthetic repository with 250 ignored build files, tracked build/KEEP.md, and .env; pair a second server; open a new-thread draft → Run on → Add to another machine; select SSH and build/build-1.txt; search build-21; wait for filtered results; press Escape. Environment for all captures: Chromium on Linux, light theme, 1440×1000, fresh isolated dev servers and synthetic state. Source host path hidden with capture-only CSS. Proven: the scenario fails on base d78106d5cc and passes on head 29f3fabc88.
Recordings exclude pairing and play at one-third speed. Scenario driver and synthetic seed Not shown:
|
… another machine (pingdotgg#43559) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 98f2a92)
… another machine (pingdotgg#43559) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 98f2a92)
… another machine (pingdotgg#43559) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 98f2a92)
… another machine (pingdotgg#43559) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 98f2a92)
… another machine (pingdotgg#43559) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 98f2a92)
… another machine (pingdotgg#43559) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 98f2a92)
… another machine (pingdotgg#43559) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 98f2a92)
… another machine (pingdotgg#43559) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 98f2a92)
… another machine (pingdotgg#43559) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 98f2a92)
… another machine (pingdotgg#43559) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit 98f2a92)





Pressing Esc in the Search ignored files box of Add to another machine closed the whole dialog. That threw away the search, the ignored files you had checked and the clone setup, instead of just clearing what you typed. Holding Esc, or pressing it while an IME was composing, could do the same.
The search box now works like the other dialog searches (#41856, #41764, #42130, #42158, #42129). The first Esc clears a non-empty search and keeps focus there. A second Esc on the empty box closes the dialog. Held-Esc repeats can't close it, and Esc during IME composition is left to the IME. The input is
type="text"withrole="searchbox"andenterKeyHint="search", because a native search input clears itself on Escape even during composition. The existing Enter guard stays, so Enter still doesn't submit the clone.Setup
Web on Linux (Chrome), dev build with no seeded data. One test server ("Test machine") holds a sample repo with 230 git-ignored files, so the ignored-file list is cut off at 200 and the search box shows. A second paired server ("Second machine") is the clone target. Composer → Run on → Add to another machine → Second machine.
Steps
build-001.log, then typebuild-21in Search ignored files.build-21, 2 of 200 checkedPressing Esc again with the search empty closes the dialog.
Tests
AddProjectToMachineDialog.browser.test.tsxcovers IME Esc, the first Esc clearing (with focus and the checked file kept), a held-Esc repeat, and the second Esc closing. It fails on main (the dialog closes on the first Esc) and passes here. Each guard was also removed one at a time (the key-repeat check, the composition check before clearing, the clear itself, andtype="text"), and the test fails for each.vp run check:changedpasses.An AI agent ran each of these checks. Mobile is not affected: it has no Add to another machine dialog. Desktop renders this same web component.
Generated with Claude Opus 5.5 in T3 Code Nightly