GeezerVison is showing github.com — fix(web): Esc in voice alias input cancels it without closing Settings by only21mil · Pull Request #42027 · pingdotgg/t3code
Conversation
In Settings → Voice, pressing Esc in a dictionary word's alias input cancelled the alias and also closed the whole Settings dialog, because the keydown bubbled up to the dialog's Esc handling.
The alias input now stops Esc from bubbling and moves focus to the Settings surface before the input unmounts. Without that focus move, the dialog hands focus to the Close button, whose "Close (Esc)" tooltip takes the next Esc. With it, Esc cancels the alias draft, and a second Esc closes Settings. The license search in Settings works the same way.
Before / after
Setup: Linux, Chromium (T3 Code Browser panel), light theme, 1280×800 viewport, fresh isolated vp run dev --no-seed data.
Steps: Settings → Voice → Your dictionary → add Kubernetes → Alias → type cooper → Esc → Esc
Before (84a0c05) |
After (4f7dfc5) |
 |
 |
Alias draft cooper typed for Kubernetes |
Alias draft cooper typed for Kubernetes |
 |
 |
| One Esc closed all of Settings |
One Esc cancelled the alias and Settings stayed open |
|
 |
|
A second Esc closed Settings |
Testing
An AI agent ran each check below.
- A new browser test in
VoiceSettingsPanel.browser.test.tsx renders the panel inside the real Settings modal, opens an alias draft, and presses Esc. It fails on main. It also fails with either stopPropagation() or the focus move removed. It passes 3/3 with the fix, and the whole file passes 20/20.
vp run check:changed passed.
- The before/after captures above, in the web app's Browser panel against an isolated dev server, pressing a real Esc key.
Not shown
- Desktop and mobile: the desktop app uses the same web Settings component. Mobile has its own voice settings screen, which this change does not touch.
- IME: Esc during an IME composition still returns early, as before.
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.
coderabbitai
Bot
commented
Nov 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
Escape now clears an unsaved voice alias draft without closing Settings. A browser test verifies the draft is cleared, the saved dictionary remains unchanged, and a second Escape closes Settings.
Changes: Voice alias Escape handling
| Layer / File(s) |
Summary |
Alias draft Escape behavior apps/web/src/components/settings/VoiceSettingsPanel.tsx, apps/web/src/components/settings/VoiceSettingsPanel.browser.test.tsx |
The Escape handler stops event propagation, focuses the nearest app modal when present, and clears the draft. The browser test checks that the first Escape keeps Settings open and the saved dictionary unchanged, while the second closes Settings. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested labels: bugfix
Suggested reviewers: utkarshusername, macroscopeapp, maria-rcks
Merge Risk: Minimal · up to ab7ff
-
Merge Risk: ⚪ Minimal · up to ab7ff
Pressing Esc in the voice alias field now cancels the draft without closing Settings, and a second Esc closes it. The change is narrow and covered by a browser test, so merge risk is low.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: Esc in the voice alias input now cancels the draft without closing Settings. It follows the conventional commit form and fits the changeset, which stops Esc propagatio… |
| Description check |
 |
The description covers the problem (Esc closes all of Settings from the alias input), the change (stop propagation and move focus before unmount), scope (a bug fix linked to the Settings Voice behavio… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title names the main change: Esc in the voice alias input now cancels the draft without closing Settings. It follows the conventional commit form and fits the changeset, which stops Esc propagation and moves focus in VoiceSettingsPanel.tsx. It is specific and in plain language.
Full details: Description check
-
Explanation
The description covers the problem (Esc closes all of Settings from the alias input), the change (stop propagation and move focus before unmount), scope (a bug fix linked to the Settings Voice behavior, with the license search noted), and verification (a new browser test that fails on main, before/after screenshots, check:changed run, and a note on what was not checked). It does not link an issue or state why no issue exists. Its Verification section says the author ran tests and captures. The template asks for a Scope section that links the bug or explains why no issue is needed, so that part is missing. The Problem and Change sections are short but present. Overall the description is mostly complete.
Resolution
Optionally, link the issue that shows the bug, or explain why a small fix needs no issue. Also confirm whether a maintainer requested this PR.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 110ed77 and 4f7dfc5.
Files selected for processing: 2
-
apps/web/src/components/settings/VoiceSettingsPanel.browser.test.tsx
apps/web/src/components/settings/VoiceSettingsPanel.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Evidence
Steps: Open Settings → Voice; add Kubernetes to Your dictionary with Enter; open Alias; type cooper; press Escape once, then press Escape again if Settings remains open. Environment for all captures: Chromium web client, 1280×800, dark theme, fresh synthetic state on each commit.
Proven: the scenario fails on base and passes on head. Base closes Settings on the first Escape. Head cancels the alias draft, keeps Settings open, and closes Settings on the second Escape.
Scenario source
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|