Skip to content

Desktop: session-ID links fail to open sessions on another connected server #56471

Open

Description

@ldelelis

Description

Clicking a session-ID button in an assistant reply shows “This session cannot be found” when the session belongs to another connected server. A local-server session button works from the same reply.

Expected: Desktop opens the session on the connected server that owns it.

Plugins

Reproduced with all external plugins disabled on both servers, verified through /api/plugin. Only built-in plugins remained active.

OpenCode version

Desktop and local CLI: 2.0.32. Docker server: 2.0.31.

Steps to reproduce

  1. Open a conversation on server A in OpenCode Desktop.
  2. Start an isolated Docker-hosted OpenCode server B with its port published locally.
  3. Pair Desktop with B and confirm it is connected.
  4. Create an empty session on each server:
    opencode2 api post /api/session \
      --data '{"title":"Session link repro"}'
  5. Confirm B’s session exists using GET /api/session/<id> on B.
  6. In the conversation on A, have the assistant include both complete session IDs as inline code in the same reply.
  7. Click each rendered session-ID button.

Reproduced with newly created, empty sessions; no model execution or provider credentials required. A’s button opens successfully; B’s shows the error above. B’s API returns its session; A’s API returns SessionNotFoundError for that ID.

Screenshot and/or share link

No screenshot or shared conversation attached. Exact toast: “This session cannot be found”.

Operating System

macOS

Terminal

OpenCode Desktop; the failing interaction is in the conversation UI, not a terminal.

Related: #56419, #52080, #53529.

Activity

  1. opencode-agent commented on Oct 17, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed report and the clear reproduction steps!

    You're asking for session-ID buttons in assistant replies to open sessions that live on another connected server, with Desktop switching to the server that owns the session.

    This matches how Desktop currently behaves. When you click a session-ID button, Desktop looks the ID up only on the server the current conversation is attached to. If that server doesn't have the session, it shows "This session cannot be found". Desktop doesn't check your other connected servers yet. Making the button find and open sessions on those servers would be new behaviour, so I've marked this as a feature request. Maintainers will consider it.

    Related issues:

  2. prathameshgaikwad commented on Nov 1, 2026

    @prathameshgaikwad

    still open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions