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
SSE events not emitted when using opencode attach --dir #11522
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
This issue appears to be related to other opencode attach --dir problems with remote servers. Please check these related issues to ensure they're not duplicates or related:
Activity
github-actions commentedon Jan 31, 2026
This issue appears to be related to other
opencode attach --dirproblems with remote servers. Please check these related issues to ensure they're not duplicates or related:opencode attach --dirdoes not use project commands #11046:opencode attach --dirdoes not use project commandsThe root cause might be shared across these issues, so it could be helpful to review them together.
github-actions commentedon Apr 2, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.