You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(ui): Prompt textarea 'Enter' keybinding switches to newline at viewports < 640px #28438
Description:
When using the Coder agent chat interface in a narrow panel or tiled view (such as Chrome Split View), pressing Enter creates a newline instead of submitting the prompt. Confirmed via Chrome DevTools that this behavior triggers specifically when the container/viewport width drops below 640px. Above 640px, pressing Enter submits the prompt as expected.
This appears to be caused by a media query, container query, or responsive breakpoint that rebinds keyboard events for mobile/touch layouts. In a desktop browser environment—where users frequently split or tile panels side-by-side—treating narrow panels like mobile screens breaks standard desktop keyboard semantics.
Environment:
Browser: Google Chrome (Split View / Tiled Layouts)
Viewport Width Trigger:< 640px
Coder Version: v2.35.3
Relevant Log Output
Expected Behavior
Enter should submit the prompt on desktop viewports regardless of panel width (with Shift + Enter reserved for newlines), or a user preference setting should be provided to toggle "Enter to Send."
Steps to Reproduce
Open a Coder agent session in Google Chrome.
Open Chrome DevTools and resize the agent window/tile below 640px width (or drag a Chrome Split View panel to < 640px).
Type text into the prompt textarea and press Enter.
Observe that a newline is inserted instead of submitting the message.
Resize the viewport/tile to 640px or wider, type a message, and press Enter.
Observe that Enter now submits the prompt as expected.
Activity
linear-code commentedon Aug 21, 2026
ENG-3261
fix(site): preserve agent send shortcuts in narrow viewports (coder#2…