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): Escape closes a dialog over a recording before canceling dictation by juliusmarminge · Pull Request #41639 · pingdotgg/t3code Conversation
|
| Before | After | |
|---|---|---|
| Commit | 4328d9c95c | ff17ad1aaf |
| Result | ❌ First-Escape state: image expanded, recording stopped | ✅ First-Escape state: image closed, recording continues |
| Recording with image expanded | ||
| First Escape | ||
| Second Escape | ||
| Assertion failure capture | ||
| Interaction recording | Before video | After video |
Scenario source · Browser configuration · Fake microphone browser launcher
The replay provider rejects image prompts after sending, producing the same unrelated provider-error banner on both sides. The inline image and real microphone recording remain functional. Videos omit startup/pairing screens. Every final capture was visually inspected.
vp test run src/speech/useDictationShortcut.browser.test.tsx (apps/web): 12 passed; without the fix, the new test 'lets Escape close a modal opened over the recording before canceling it' fails (1 failed, 11 passed)vp run check:changed: format, lint, knip, typecheck, test and react compiler all passRun by the t3code factory in T3 Code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ling it Reproduces #41632: the dictation shortcut's capture-phase Escape handler cancels the recording even when a modal dialog without a dictation editor (the expanded image viewer) holds focus. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ctation The dictation shortcut's capture-phase Escape handler canceled the recording even when focus was inside a dialog unrelated to the recording editor, such as the expanded image viewer. Escape inside a dialog that does not host the recording editor now reaches that dialog first. Fixes #41632 Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| Check name | Status | Explanation |
|---|---|---|
| Title check | The title "fix(web): Escape closes a dialog over a recording before canceling dictation" matches the main change. The raw summary shows an edit to inOtherShortcutTarget so that Escape in a dialog with… | |
| Linked Issues check | [#41632] The reported requirement is that Escape closes an enlarged image before dictation is canceled. At the reviewed head, inOtherShortcutTarget in apps/web/src/speech/useDictationShortcut.ts now… |
|
| Out of Scope Changes check | Whole-PR diff from merge base 4328d9c to head ff17ad1 changes two files. useDictationShortcut.ts adds a dialog check and updates the related comment inside inOtherShortcutTarget. The browser t… |
|
| Description check | The description states the problem (Escape during dictation with an enlarged image dialog open cancels recording and leaves the dialog open), the change (Escape inside a dialog that does not hold the … |
Explanation
The title "fix(web): Escape closes a dialog over a recording before canceling dictation" matches the main change. The raw summary shows an edit to inOtherShortcutTarget so that Escape in a dialog without the recording editor goes to that dialog first, plus a browser test for this order. The PR objectives describe the same behavior. The title uses a conventional commit prefix and states the behavior in plain language.
Explanation
[#41632] The reported requirement is that Escape closes an enlarged image before dictation is canceled. At the reviewed head, inOtherShortcutTarget in apps/web/src/speech/useDictationShortcut.ts now returns true when the Escape target is inside a [role="dialog"] that does not contain the recording editor (own). onKeyDown then skips its cancel branch, so the event reaches the dialog. Editor and dialog checks for other dictation editors run first and keep their earlier behavior. Escape outside any dialog still cancels dictation. The added browser test 'lets Escape close a modal opened over the recording before canceling it' checks that speech.cancel is not called and that the dialog handler runs once. The PR states the test fails on main. I did not run the test. Caveats: the check applies to any dialog, not only dialogs opened after recording started, as the issue's possible fix describes. It also does not cover non-dialog popups such as menus. Neither caveat is a stated requirement of the reported case. The mod+shift+d behavior is not in scope of the linked issue's requirements as written in the PR; the issue lists it as a separate inconsistency.
Explanation
Whole-PR diff from merge base 4328d9c to head ff17ad1 changes two files. useDictationShortcut.ts adds a dialog check and updates the related comment inside inOtherShortcutTarget. The browser test file adds one test that exercises that check. Both changes relate directly to the Escape ordering requirement of #41632. No unrelated code, configuration, or mod+shift+d handling changes appear in the diff. The PR's Evidence section is still marked as being captured. This is documentation status, not a code change, and it does not affect scope.
Explanation
The description states the problem (Escape during dictation with an enlarged image dialog open cancels recording and leaves the dialog open), the change (Escape inside a dialog that does not hold the recording editor goes to that dialog first), and a linked issue (#41632). It includes reproduction steps on main, a new browser test, a before/after table with evidence, and test results. The template's Problem, Change, Scope, and Verification sections are all addressed. The Scope section links the issue that shows the bug, and the Verification section is detailed. The author also names the model and harness used, as the template asks. Minor gaps: the title is not restated in the description, and the 'Scope' section does not explicitly say why the fix is a bug fix rather than a feature, though the linked issue makes this clear.
380feecf-7634-40cc-a06e-9719043f69d4apps/web/src/speech/useDictationShortcut.browser.test.tsxapps/web/src/speech/useDictationShortcut.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
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.
Escape cancels dictation before closing an image enlarged on top of it
There was an error while loading. Please reload this page.