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] Tab key moves focus from prompt input to "Cycle Agent" button, breaking shortcut workflow #13557
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 Tabagain 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
Update to latest OpenCode (e.g., v1.1.65).
Focus on the prompt input field.
Press Tab.
Observe focus jumps to the "Cycle Agent" button (not expected).
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.
Activity
github-actions commentedon Feb 14, 2026
This issue might be a duplicate of existing issues. Please check:
For keybind-related issues, please also check our pinned keybinds documentation: #4997