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
/editor command (ctrl+x e) does not work in opencode attach mode #30582
The /editor command (ctrl+x e) does not open $EDITOR when using opencode attach to connect to a remote opencode serve instance. It works correctly when running opencode directly (single-process mode, including over SSH with a TTY).
Setup:
Remote: opencode serve --port 4096 running on a Linux server
When pressing ctrl+x e, the TUI briefly flickers (suggesting it receives and attempts to handle the command) but no editor opens. The TUI renders and functions normally otherwise (sessions, prompts, model responses all work).
Note: /editor works fine when running opencode directly on the same remote machine over SSH (ssh -t <remote> opencode), confirming the issue is specific to the attach client/server split.
Expected: The attach client should spawn $EDITOR locally (on the client machine) using the /tui/control/next → /tui/control/response mechanism, since the TUI is running on the local machine and has access to a TTY.
Context: The opencode attach architecture runs the TUI client locally while the server runs remotely. The server cannot spawn an editor process (no TTY attached), but the local client can and should handle this via the existing control request API.
Plugins
None
OpenCode version
1.15.13
Steps to reproduce
Start opencode serve --port 4096 on a remote machine
Forward port: ssh -L 4096:127.0.0.1:4096 <remote>
Run opencode attach http://localhost:4096 locally
Press ctrl+x e (or type /editor)
TUI briefly flickers but no editor opens
Compare: ssh -t <remote> 'cd /project && opencode' then ctrl+x e — editor opens correctly
Activity
github-actions commentedon Jun 3, 2026
For keybind-related issues, please also check our pinned keybinds documentation: #4997