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
bug: SSE event stream drops all events for worktree sessions #35917
The SSE event handler in event.ts filters events by event.location?.directory === instance.directory. When a session runs inside a git worktree, the working directory differs from the main workspace (e.g., /home/user/repo-worktree-feature/ vs /home/user/repo/). The directory field in event locations reflects the actual working directory, not the instance's configured directory, so all events fail the filter and are silently dropped.
The TUI receives zero real-time updates — no tool completions, no message streaming, no permission prompts. The session appears frozen.
To reproduce
Create a worktree: git worktree add ../repo-worktree-test
Open opencode in the worktree: cd ../repo-worktree-test && opencode
Send a message
Observe: the TUI shows no streaming output, tool results, or live updates
Expected behavior
Worktree sessions should receive SSE events normally. The workspaceID filter already correctly scopes events to the current workspace — the directory filter is redundant and breaks worktree usage.
Activity
github-actions commentedon Jul 8, 2026
This issue might be related to existing worktree issues. Please check:
github-actions commentedon Sep 7, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.