[PR #13290] fix(app): ensure SSE stream works for remote and local servers #14598

Closed
opened 2026-02-16 18:19:22 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13290

State: closed
Merged: No


What does this PR do?

Remote servers (e.g., behind Twingate/VPN) need platform.fetch (Tauri) to access OS-level networking routes. I updated the event stream to use the native platform fetch for remote connections while keeping browser fetch for localhost to ensure reliable local streaming.

How did you verify your code works?

Tested with a headless server on a local IP. Confirmed that streaming works for both remote/IP and localhost connections in the desktop app. UI now updates in real-time as expected (see screenshot).

Screenshot 2026-02-12 at 09 25 21

Fixes #13211

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13290 **State:** closed **Merged:** No --- ### What does this PR do? Remote servers (e.g., behind Twingate/VPN) need platform.fetch (Tauri) to access OS-level networking routes. I updated the event stream to use the native platform fetch for remote connections while keeping browser fetch for localhost to ensure reliable local streaming. ### How did you verify your code works? Tested with a headless server on a local IP. Confirmed that streaming works for both remote/IP and localhost connections in the desktop app. UI now updates in real-time as expected (see screenshot). <img width="1512" height="982" alt="Screenshot 2026-02-12 at 09 25 21" src="https://github.com/user-attachments/assets/14adee52-4965-433e-818d-c6ae23798c76" /> Fixes #13211
yindo added the pull-request label 2026-02-16 18:19:22 -05:00
yindo closed this issue 2026-02-16 18:19:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14598