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
Keyboard shortcuts not forwarding to IDE from opencode terminal #27006
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)
changed the title [-]Keyboard shortcuts not forwarding to IDE from opencode terminal, highlight-to-copy and Cmd+C broken[/-][+]Keyboard shortcuts not forwarding to IDE from opencode terminal[/+]on May 15, 2026
This issue still exists and makes it very hard to use. I'm using a fork of opencode in order to use the vs code extension cmd+shift+k with it in integrated terminal of vs code (cursor etc)
Activity
github-actions commentedon May 12, 2026
This issue might be a duplicate of existing issues. Please check:
For keybind-related issues, please also check our pinned keybinds documentation: #4997
[-]Keyboard shortcuts not forwarding to IDE from opencode terminal, highlight-to-copy and Cmd+C broken[/-][+]Keyboard shortcuts not forwarding to IDE from opencode terminal[/+]Noitidart commentedon May 15, 2026
I just opened a PR to fix this for Cursor, Windsurf, and VS Code - #27665 pleae review
Noitidart commentedon May 22, 2026
@simonklee can I please get a review - I rebased it - #27665 (comment)
BerkeAras commentedon Jun 16, 2026
+1
Noitidart commentedon Jun 25, 2026
Hi team @simonklee (@ShpetimA and @rekram1-node - adding because you helped me in past with VS Code extension issues #10993 (comment) ).
This issue still exists and makes it very hard to use. I'm using a fork of opencode in order to use the vs code extension cmd+shift+k with it in integrated terminal of vs code (cursor etc)
github-actions commentedon Aug 25, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.