Skip to content

[BUG] Tab key moves focus from prompt input to "Cycle Agent" button, breaking shortcut workflow #13557

Closed

Description

@aquafrigus

Description

Description

After updating to the latest OpenCode version (v1.1.65+), pressing Tab while focused on the prompt input field now shifts focus to the "Cycle Agent" button — instead of staying in the input or moving predictably within the editor.

This breaks my custom workflow:

  • I use Tab as a shortcut to toggle between Build and Plan modes.
  • Previously, after toggling mode, I could directly press Enter to submit the prompt.
  • Now, after Tab, the focus lands on the "Cycle Agent" button, so pressing Enter opens its dropdown menu instead — forcing me to either:
    • Press Tab again to move focus back, then click the send button, or
    • Manually click the prompt input to regain focus before submitting.

This adds unnecessary steps and disrupts flow, especially during rapid iteration.

Additional Context

This is especially disruptive for users who rely on keyboard-driven workflows. The current behavior feels like an unintended side effect of recent focus management changes.

Plugins

No response

OpenCode version

1.1.65

Steps to reproduce

Steps to Reproduce

  1. Update to latest OpenCode (e.g., v1.1.65).
  2. Focus on the prompt input field.
  3. Press Tab.
  4. Observe focus jumps to the "Cycle Agent" button (not expected).
  5. Press Enter → dropdown menu opens (not prompt submission).

Expected Behavior

  • Tab should keep focus in the prompt input.
  • After mode toggle (Tab), Enter should submit the prompt without side effects.

Screenshot and/or share link

No response

Operating System

macOS

Terminal

No response

Activity

  1. github-actions commented on Feb 14, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions