GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(web): Esc in provider model filter clears it without closing Settings by only21mil · Pull Request #42076 · pingdotgg/t3code Conversation
Contributor
In Settings → Providers, a provider with more than 8 models shows a Filter models field above its model list (Codex lists 11). The field had no Escape handling. With a filter typed, Escape closed the whole Settings dialog instead of clearing the filter. FixThe same pattern as the other Settings and dialog search fields (#41815, #41856):
Before / afterSetup: Linux, Chromium (T3 Code Browser panel), light theme, 1280×800 viewport, fresh isolated Steps: Settings → Providers → Codex → type TestingAn AI agent ran each check below.
ScopeThis fixes one field in one component and follows the Escape handling already merged for the other Settings search fields, so it did not need an issue first. Not shown
Generated with Claude Opus 5.5 in T3 Code Nightly
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Filter Escape behavior and browser validation apps/web/src/components/settings/ProviderModelsSection.tsx, apps/web/src/components/settings/ProviderModelsSection.browser.test.tsx |
The filter ignores Escape during IME composition and repeated Escape when empty. Otherwise, it clears the filter and stops Escape propagation. The browser test checks composition handling, filter clearing, focus retention, and Settings dismissal. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge, stienswout, maria-rcks
ed136Pressing Escape in the provider model filter now clears the text without closing Settings, and a second Escape closes it. The change is small, limited to one web component, and easy to revert, so merge risk is minimal.
Explanation
The title "fix(web): Esc in provider model filter clears it without closing Settings" states the main change. The diff adds Escape handling to the model filter in Settings → Providers so Escape clears the filter and keeps Settings open. It follows the conventional commit format and matches the changeset, so it passes.
Explanation
The description follows the repository template. It covers the problem (Escape closed Settings while a filter was typed), the change (clear the filter, swallow auto-repeat, ignore IME composition Escape), and scope (one field, follows existing Escape handling in #41815 and #41856). Verification gives specific browser test coverage, the test counts, and before/after captures of a real Esc key. The Problem section is not a separate heading, but the content is present. The description also says the author used an AI agent, and it names the model and harness at the end as the template asks. Desktop and mobile impact are noted. Overall it is mostly complete, so it passes.
c28b7491-6506-432f-b0f9-7bc782e43840apps/web/src/components/settings/ProviderModelsSection.browser.test.tsxapps/web/src/components/settings/ProviderModelsSection.tsxIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ls-filter-escape-clear
EvidenceEnvironment: real web app, headless Chromium, 1280×800, dark theme, fresh isolated databases and identical synthetic project/Replay thread setup. Codex listed 11 models; gpt-6 narrowed the list to seven. Steps: Open Settings → Providers → Codex, focus Filter models, enter gpt-6, then press Escape. Base closes Settings. Head clears the filter and retains focus with Settings open. On head, repeat:true Escape keeps Settings open; isComposing:true Escape preserves gpt-6 and focus; a normal Escape clears, and a fresh Escape on empty closes Settings. Proven: scenarios:prove exited 0, failing on base and passing on head.
Repeat and composition checks dispatch browser KeyboardEvents; native OS IME composition and physical held-key timing were not exercised. Not shown:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.