Skip to content

Keyboard shortcuts not forwarding to IDE from opencode terminal #27006

@Noitidart

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions