Skip to content

Keyboard shortcuts not forwarding to IDE from opencode terminal #27006

Closed as not planned

Description

@Noitidart

Description

Several regressions when using opencode inside IDE integrated terminals (Cursor, Windsurf):

  1. 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.

  2. 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

  1. Open a project in Cursor or Windsurf
  2. Open the integrated terminal and run opencode
  3. 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

Activity

  1. github-actions commented on May 12, 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

  2. 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
  3. Noitidart commented on May 15, 2026

    @Noitidart
    Author

    I just opened a PR to fix this for Cursor, Windsurf, and VS Code - #27665 pleae review

  4. Noitidart commented on May 22, 2026

    @Noitidart
    Author

    @simonklee can I please get a review - I rebased it - #27665 (comment)

  5. BerkeAras commented on Jun 16, 2026

    @BerkeAras

    +1

  6. Noitidart commented on Jun 25, 2026

    @Noitidart
    Author

    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)

  7. github-actions commented on Aug 25, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions