Description
Several regressions when using opencode inside IDE integrated terminals (Cursor, Windsurf):
-
Keyboard shortcuts are no longer forwarding from the opencode terminal to the IDE. For example, Cmd+Option+K no longer inserts the current file path or highlighted text — it only works if focus is on the editor first. Shortcuts like Ctrl+Shift+G (git sidebar) and Cmd+Shift+E (file bar) also don't forward.
-
The workaround from the original ticket — renaming the integrated terminal tab to "opencode" so it receives the Cmd+Option+K autofill — is still required. This should work out of the box without manual renaming. But this is only for while focus is already in IDE, not while in integrated terminal, which is what the new regressions are in version 1.14.48 of opencode.
This was previously reported in #10993 and may be related to #5920.
Plugins
Official OpenCode Extension
OpenCode version
1.14.48
Steps to reproduce
- Open a project in Cursor or Windsurf
- Open the integrated terminal and run
opencode
- While focused on the opencode terminal, press Cmd+Option+K — nothing happens (should insert file path/highlighted text)
Screenshot and/or share link
No response
Operating System
macOS
Terminal
Cursor Integrated Terminal, Windsurf Integrated Terminal
Description
Several regressions when using opencode inside IDE integrated terminals (Cursor, Windsurf):
Keyboard shortcuts are no longer forwarding from the opencode terminal to the IDE. For example, Cmd+Option+K no longer inserts the current file path or highlighted text — it only works if focus is on the editor first. Shortcuts like Ctrl+Shift+G (git sidebar) and Cmd+Shift+E (file bar) also don't forward.
The workaround from the original ticket — renaming the integrated terminal tab to "opencode" so it receives the Cmd+Option+K autofill — is still required. This should work out of the box without manual renaming. But this is only for while focus is already in IDE, not while in integrated terminal, which is what the new regressions are in version 1.14.48 of opencode.
This was previously reported in #10993 and may be related to #5920.
Plugins
Official OpenCode Extension
OpenCode version
1.14.48
Steps to reproduce
opencodeScreenshot and/or share link
No response
Operating System
macOS
Terminal
Cursor Integrated Terminal, Windsurf Integrated Terminal