Skip to content

Desktop/WebUI: New sessions not shown in sidebar when connected to non-localhost server on same machine #19348

@attkri

Description

@attkri

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

  1. Start opencode serve (listening on 192.168.0.101:4096)
  2. Open Desktop or WebUI, select server 192.168.0.101:4096
  3. Open project (e.g. OpCo-Know)
  4. Click Neue Sitzung (New Session)
  5. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions