Skip to content

tui: bypass local SSE event streaming in worker#19183

Merged
thdxr merged 2 commits intodevfrom
snapshot-memory
Mar 26, 2026
Merged

tui: bypass local SSE event streaming in worker#19183
thdxr merged 2 commits intodevfrom
snapshot-memory

Conversation

@thdxr
Copy link
Copy Markdown
Member

@thdxr thdxr commented Mar 25, 2026

No description provided.

Copy link
Copy Markdown

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Replace SDK event subscription with direct Bus.subscribeAll call.
This avoids the local HTTP roundtrip and SSE parsing overhead since
the worker runs in the same process as the server.

- Subscribe directly to Bus events instead of using SDK
- Wrap subscription in WorkspaceContext to match server behavior
- Handle reconnections when instance is disposed
- Properly handle abort signals for cleanup
@thdxr thdxr force-pushed the snapshot-memory branch from 3938af4 to 9fee5bf Compare March 25, 2026 23:47
@thdxr thdxr added the beta label Mar 26, 2026
@thdxr thdxr enabled auto-merge (squash) March 26, 2026 14:39
@thdxr thdxr merged commit 83ed1c4 into dev Mar 26, 2026
22 checks passed
@thdxr thdxr deleted the snapshot-memory branch March 26, 2026 14:41
Andres77872 pushed a commit to Andres77872/opencode that referenced this pull request Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant