Bug
When using OpenCode Desktop or WebUI connected to a server running on 192.168.0.101:4096 (same machine, not remote), newly created sessions never appear in the left sidebar under that server context. They appear under Lokaler Server instead.
The same applies to opencode import — imported sessions only appear under the local server context, never under the selected non-localhost server.
Environment
- OpenCode v1.3.3
- Windows 11
- Server started via
opencode serve on same machine, listening on 192.168.0.101:4096
- Desktop and WebUI both affected
Reproduction
- Start
opencode serve (listening on 192.168.0.101:4096)
- Open Desktop or WebUI, select server
192.168.0.101:4096
- Open project (e.g.
OpCo-Know)
- Click
Neue Sitzung (New Session)
- Session appears under
Lokaler Server, not under 192.168.0.101:4096
Proof: API has the data, sidebar does not
Session ses_2d38a1958ffeXt6arU4hI359Qb created while 192.168.0.101:4096 was selected:
API returns the session:
GET http://192.168.0.101:4096/session/ses_2d38a1958ffeXt6arU4hI359Qb → 200 OK
API returns sessions for the project (verified via browser DevTools console):
GET /session?directory=C%3A%5CUsers%5Cattila%5CProjects%5COpCo-Know&roots=true&limit=55
→ COUNT 4
Sidebar for same project on same server: empty (0 sessions shown)
Same session under Lokaler Server: visible in sidebar
Additional evidence
localStorage.clear() + reload does not fix it
opencode import <file> also only lands in local server context
- Both server contexts run on the same machine, same user, same DB file
- The session row in DB has identical
project_id, directory, parent_id=null as other visible sessions
- This is not a display/cache issue — it persists across reloads and
localStorage.clear()
Expected
Sessions created while 192.168.0.101:4096 is selected should appear in the sidebar under that server context.
Actual
Sessions always land under Lokaler Server regardless of which server is selected. The user effectively cannot work with the non-localhost server because no sessions are ever shown there, despite the API confirming they exist.
Bug
When using OpenCode Desktop or WebUI connected to a server running on
192.168.0.101:4096(same machine, not remote), newly created sessions never appear in the left sidebar under that server context. They appear underLokaler Serverinstead.The same applies to
opencode import— imported sessions only appear under the local server context, never under the selected non-localhost server.Environment
opencode serveon same machine, listening on192.168.0.101:4096Reproduction
opencode serve(listening on192.168.0.101:4096)192.168.0.101:4096OpCo-Know)Neue Sitzung(New Session)Lokaler Server, not under192.168.0.101:4096Proof: API has the data, sidebar does not
Session
ses_2d38a1958ffeXt6arU4hI359Qbcreated while192.168.0.101:4096was selected:API returns the session:
API returns sessions for the project (verified via browser DevTools console):
Sidebar for same project on same server: empty (0 sessions shown)
Same session under
Lokaler Server: visible in sidebarAdditional evidence
localStorage.clear()+ reload does not fix itopencode import <file>also only lands in local server contextproject_id,directory,parent_id=nullas other visible sessionslocalStorage.clear()Expected
Sessions created while
192.168.0.101:4096is selected should appear in the sidebar under that server context.Actual
Sessions always land under
Lokaler Serverregardless of which server is selected. The user effectively cannot work with the non-localhost server because no sessions are ever shown there, despite the API confirming they exist.