Description
When using opencode attach with the --dir flag to connect to a remote server, the server does not emit session.status SSE events when messages are sent/received. Without the --dir flag, events are emitted correctly.
Plugins
No response
OpenCode version
1.1.48
Steps to reproduce
- Start OpenCode server:
opencode serve --port 4096
- In another terminal, listen to SSE events:
curl -N "http://localhost:4096/event"
- Attach WITH --dir:
opencode attach http://localhost:4096 --session <session_id> --dir /path/to/project
- Send a message in the attached terminal
- Expected: SSE stream shows session.status events (busy → idle)
- Actual: only heartbeat events are received, no session.status events
Workaround:
Attach WITHOUT the --dir flag - events are emitted correctly:
opencode attach http://localhost:4096 --session <session_id>
Screenshot and/or share link
No response
Operating System
Ubuntu (WSL2)
Terminal
zsh
Description
When using opencode attach with the --dir flag to connect to a remote server, the server does not emit session.status SSE events when messages are sent/received. Without the --dir flag, events are emitted correctly.
Plugins
No response
OpenCode version
1.1.48
Steps to reproduce
opencode serve --port 4096curl -N "http://localhost:4096/event"opencode attach http://localhost:4096 --session <session_id> --dir /path/to/projectWorkaround:
Attach WITHOUT the --dir flag - events are emitted correctly:
opencode attach http://localhost:4096 --session <session_id>Screenshot and/or share link
No response
Operating System
Ubuntu (WSL2)
Terminal
zsh