Repository navigation
fix(site): preserve agent send shortcuts in narrow viewports - #29613
Merged
Merged
Conversation
kylecarbs
approved these changes
Sep 20, 2026
kylecarbs
approved these changes
Sep 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Enter and Cmd/Ctrl+Enter inserted newlines instead of sending when the Coder Agents window was narrower than 640px. This broke desktop split views even with the Cmd/Ctrl+Enter preference enabled.
Use pointer capability instead of window width for touch keyboard behavior. Narrow desktop windows respect the send preference, Cmd/Ctrl+Enter works at every width, and Shift+Enter still inserts a newline.
Fixes #28438. Refs CODAGT-1006.
Tested on web (macOS/Chrome):
Screen.Recording.2026-09-19.at.7.30.59.PM.mov
Tested on iOS:
ScreenRecording_09-19-2026.19-32-32_1.MP4
Implementation and verification notes
The change is limited to the shared composer Enter handler, its existing tests, and the mobile composer story. Plain Enter inserts a newline when the primary pointer is coarse, including on larger touch devices. Cmd/Ctrl+Enter bypasses that check. Pointer capability is a proxy for touch input, not a physical-keyboard detector.
Regression tests reproduced the bug before the fix. All 87 targeted unit tests and 99 composer stories pass, along with frontend formatting, lint, typechecking, and the full make pre-commit checks. Browser checks confirmed submit callbacks at 390px and 1280px with both send preferences and touch emulation. A dev-instance chat also completed through dogfood AI Gateway.
The related queue-button work in #29507 is not a dependency.
Generated by Coder Agents on behalf of @bpmct.