Skip to content

#27006 — Keyboard shortcuts not forwarding to IDE from TeamCode terminal #887

@ElioNeto

Description

@ElioNeto

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    DORDefinition of Ready — issue meets readiness criteriabugSomething isn't workingmedium

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions