[PR #13437] fix(app): remount SDK/sync tree when server URL changes #14668

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

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

State: closed
Merged: Yes


What does this PR do?

Fixes #13436

ServerKey was using a plain conditional return (if (!server.url) return null), which is not reactive in Solid. Switching servers no longer remounted GlobalSDKProvider / GlobalSyncProvider, so two servers with the same project path (e.g. 127.0.0.1:4096 and 100.88.20.152, both pointing to ~/git/opencode) shared the same in-memory session state.

Restored keyed <Show> so the subtree remounts when server URL changes.

How did you verify your code works?

Manually tested with two servers pointing to the same directory -- sessions are now isolated. bun turbo typecheck passes.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13437 **State:** closed **Merged:** Yes --- ### What does this PR do? Fixes #13436 `ServerKey` was using a plain conditional return (`if (!server.url) return null`), which is not reactive in Solid. Switching servers no longer remounted `GlobalSDKProvider` / `GlobalSyncProvider`, so two servers with the same project path (e.g. `127.0.0.1:4096` and `100.88.20.152`, both pointing to `~/git/opencode`) shared the same in-memory session state. Restored keyed `<Show>` so the subtree remounts when server URL changes. ### How did you verify your code works? Manually tested with two servers pointing to the same directory -- sessions are now isolated. `bun turbo typecheck` passes.
yindo added the pull-request label 2026-02-16 18:19:26 -05:00
yindo closed this issue 2026-02-16 18:19:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14668