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

Closed
opened 2026-02-16 18:12:08 -05:00 by yindo · 1 comment
Owner

Originally created by @aquafrigus on GitHub (Feb 14, 2026).

Originally assigned to: @adamdotdevin on GitHub.

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

Originally created by @aquafrigus on GitHub (Feb 14, 2026). Originally assigned to: @adamdotdevin on GitHub. ### 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_
yindo added the bugweb labels 2026-02-16 18:12:08 -05:00
yindo closed this issue 2026-02-16 18:12:08 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 14, 2026):


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

  • #13450: OpenCode Desktop: Shift + Tab on desktop is unfocusing the chat input (same version, same focus/tab behavior problem)
  • #10329: [BUG]: Planning mode button focus kb a11y issues (app/web) (related tab keyboard navigation issue)

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

@github-actions[bot] commented on GitHub (Feb 14, 2026): --- This issue might be a duplicate of existing issues. Please check: - #13450: OpenCode Desktop: Shift + Tab on desktop is unfocusing the chat input (same version, same focus/tab behavior problem) - #10329: [BUG]: Planning mode button focus kb a11y issues (app/web) (related tab keyboard navigation issue) For keybind-related issues, please also check our pinned keybinds documentation: #4997
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9305