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): arrowing through a draft no longer opens composer suggestions by akj · Pull Request #36142 · pingdotgg/t3code Conversation
|
| Step | Before | After |
|---|---|---|
Type /mod |
List opens | List opens |
Type ab, then ArrowLeft ×3 onto /mod |
List reopens, aria-activedescendant set |
List stays closed |
Then ArrowDown and type ! |
/mod! ab: ArrowDown went to the list |
/mod ab! |
Type /mod ab, ArrowLeft ×3, Shift+Enter |
/mod is replaced by the highlighted command |
New line after /mod |
After only. The before run did not get this far, because the Shift+Enter step selected /model and derailed the rest of the run:
see #12 x, then ArrowLeft ×2 onto #12: the list stays closed./model, then ArrowLeft: the list stays open. Home closes it, and End does not reopen it.A separate run on this branch covered the mouse: clicking into the middle of a typed /model leaves the list closed, and typing a letter there opens it.
Screenshots. The composer after typing /model ab and pressing ArrowLeft three times. Web dev build, headless Chromium, 1280×800, light theme, cropped to the composer.
Before: the two changed files as on main (4aec277f79b) |
After: d027ac4c49d |
|---|---|
![]() |
![]() |
Screen reader. Checked by hand with NVDA in a Chromium-based browser, on the web dev build of d027ac4. All passed:
/model ab and pressing Left three times, no list is announced. Down then ! gives /model ab!.#12 in see #12 and more, Shift+Enter adds a new line.$ mid-sentence opens the skills list, and Escape closes it.vp run check:changed passes.
Not checked:
main. It was run on this branch only.Reviewed with sol-loop: 1 round with gpt-6.1-sol on xhigh. Sol verdict: approved
Created with Claude Fable 5.2 in T3 Code.
🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… moves Moving the caret onto `/command`, `$skill`, `@file` or `pingdotgg#12` opened the suggestion list, which then took the arrow keys, Enter and Tab from the text. Arrowing through a draft could swap a word for a suggestion. Suggestions now open only on an edit. A caret move keeps the open list on its own word or closes it. Co-Authored-By: Claude Fable 5.2 <[email protected]>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Composer suggestions now distinguish editing from caret navigation, preventing an unopened suggestion list from taking navigation keys. The change is limited to suggestion interactions, with reported browser verification covering the affected behavior. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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 names the main change: composer suggestions no longer open when the caret is moved through a draft. It matches the raw summary, which says caret moves no longer open suggestions, and the lin… | |
| Description check | The description follows the template. It has Problem, Change, Scope, and Verification sections. Problem states the bug and a reproduction on main. Change explains the edit-versus-caret rule and its be… | |
| Linked Issues check | Issue #36487 requires that a caret move onto an existing /command, @file, #12 or $skill not open the suggestion list, and that editing the word still opens it. At head be091fa, useComposerTriggerStat… |
|
| Out of Scope Changes check | The whole-PR diff from the merge base a35fd81 touches the composer trigger path. ChatComposer.tsx adds a triggerChange classification and passes it at the two setComposerTrigger call sites. useCo… |
Explanation
The title names the main change: composer suggestions no longer open when the caret is moved through a draft. It matches the raw summary, which says caret moves no longer open suggestions, and the linked issue, which asks that caret moves onto triggers not open lists. The title follows the conventional commit form the template asks for.
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. Problem states the bug and a reproduction on main. Change explains the edit-versus-caret rule and its behavior. Scope links issue #36487 and lists exclusions. Verification gives unit test counts, a before/after table, screenshots, a screen reader pass, and unchecked items. The template's agent-model line is present. The description is detailed, and some of it is tied to a specific commit and rebase, which the author flags.
Explanation
Issue #36487 requires that a caret move onto an existing /command, @file, #12 or $skill not open the suggestion list, and that editing the word still opens it. At head be091fa, useComposerTriggerState.ts implements this. nextComposerTriggerState opens a candidate only when change is "edit". For "caret", it returns the candidate only if it matches the already-open trigger by kind and rangeStart, so a caret move onto a closed word does not open it. ChatComposer.tsx sets triggerChange to "caret" when nextPrompt equals promptRef.current, and passes it to setComposerTrigger in both the pending-answer path and the regular path. Escape handling stays in the dismissed state. The unit tests in useComposerTriggerState.test.ts cover caret moves onto #, #12, $skill, /plan and @src, and Escape dismissal. The PR reports real-app Playwright runs and an NVDA check on d027ac4; the rebased head was not re-run for the step table. Those runs are reported evidence and were not re-executed here. Non-coding checks (JAWS, desktop shell, manual NVDA) are not coding requirements.
Explanation
The whole-PR diff from the merge base a35fd81 touches the composer trigger path. ChatComposer.tsx adds a triggerChange classification and passes it at the two setComposerTrigger call sites. useComposerTriggerState.ts adds the caret/edit rule and the open/dismissed state. useComposerTriggerState.test.ts adds tests for that rule. Each change supports the issue objective. The PR excludes mobile, plain-text heading, and drafts that already end in a trigger at thread open, and the code changes do not touch those paths. The raw summary reports no exported-declaration changes beyond the trigger helpers, which serve this fix. No unrelated change was found.
741d3ccd-dbdb-4a0b-b5c3-c32fa7bfd3faapps/web/src/components/chat/ChatComposer.tsxapps/web/src/components/chat/useComposerTriggerState.test.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks for this. #37122 makes the same change and is the one being kept. #37122 implements the same rule that caret movement cannot open composer suggestions. It also keeps Shift+Enter inserting a newline when suggestions are already open, which this change leaves intercepted by the menu. Your diagnosis and NVDA verification remain useful evidence for the shared bug. Keeping the more complete keyboard fix lets us resolve it in one place. Closing as a duplicate. |
Sorry, something went wrong.
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.
[Bug]: Arrowing onto a /command, @file or #12 in a composer draft opens its suggestion list, which then takes the arrow keys and Enter
There was an error while loading. Please reload this page.