Skip to content

bug(ui): Prompt textarea 'Enter' keybinding switches to newline at viewports < 640px #28438

Closed

Description

@outwebbed

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

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

  1. Open a Coder agent session in Google Chrome.
  2. Open Chrome DevTools and resize the agent window/tile below 640px width (or drag a Chrome Split View panel to < 640px).
  3. Type text into the prompt textarea and press Enter.
  4. Observe that a newline is inserted instead of submitting the message.
  5. Resize the viewport/tile to 640px or wider, type a message, and press Enter.
  6. Observe that Enter now submits the prompt as expected.

Environment

  • Host OS: CachyOS Linux
  • Coder version: v2.35.3

Additional Context

No response

Activity

  1. added theissue type on Aug 21, 2026
  2. linear-code commented on Aug 21, 2026

    @linear-code
  3. added a commit that references this issue on Sep 20, 2026
    854bd61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions