GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Allow API clients and agents to open existing sessions as Desktop tabs · Issue #53529 · anomalyco/opencode

[FEATURE]: Allow API clients and agents to open existing sessions as Desktop tabs #53529

New issue
Copy link
New issue
Copy link
Open
Open
[FEATURE]: Allow API clients and agents to open existing sessions as Desktop tabs#53529
Copy link
Assignees
Brendonovich

Description

@cveld
cveld
opened on Oct 6, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

OpenCode's API can create, move, and prompt sessions, but it cannot ask the Desktop client to expose an existing session as a visible tab. Desktop tab state is client-local, so automated workflows can prepare sessions but still require the user to find and Ctrl+click each one on Home.

Please add a supported mechanism—such as a Desktop API action, deep link, or UI intent—to open one or more existing sessions as Desktop tabs.

Suggested semantics:

{
  "sessions": [
    { "sessionID": "ses_...", "background": true }
  ]
}
  • background: true: add the tab while keeping the current tab active.
  • background: false: add and activate the tab.
  • Accept multiple sessions in one request.
  • Reuse/focus an already-open tab instead of creating a duplicate.
  • Opening a tab must not prompt, resume, or otherwise execute the session.
  • The Desktop client should validate that the session belongs to its configured server and is accessible.

Use case: an agent inventories multiple worktrees, creates or organizes one session per work item, and prepares them as visible Desktop tabs for the user to review and continue interactively. Creating server-side session records alone does not complete this workflow.

Related:

  • Add a deep link to open a specific Desktop session #44167 proposes deep links for opening an existing Desktop session and may provide the narrow technical foundation.
  • [FEATURE]: Generic UI Intent Channel for cross-client plugin-driven UX #6330 discusses a generic cross-client UI-intent channel, which could potentially carry an open-session intent.
  • feat(desktop): reopen closed tabs and background tab open #35010 added manual background opening with Ctrl+click, which is the desired behavior but is not programmatically accessible.
Reacted by David Lee and Ivan

Activity

  1. github-actions
    assigned
    Brendonovich
    on Oct 6, 2026
  2. github-actions commented on Oct 6, 2026

    @github-actions
    github-actionsBot
    on Oct 6, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • #44167: Requests a deep link to open a specific existing session in OpenCode Desktop, overlapping with opening existing sessions as Desktop tabs.

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  3. leetdavid commented on Oct 8, 2026

    @leetdavid
    leetdavid
    on Oct 8, 2026
    More actions

    Adding one concrete use case here:

    I use Linear and Opencode for my work, and Linear supports a custom script to create session. Nothing will open it in Desktop currently, so I need to open it by hand.

    What already exists:

    • The main process accepts opencode:// URLs and forwards them to the focused window.
    • The renderer bootstrap stores them in window.__OPENCODE__.deepLinks and dispatches an opencode:deep-link event.
    • The bundled UI has the session route /server/:serverKey/session/:id, where serverKey is the base64url of the server URL.

    Nothing in the bundled UI listens for opencode:deep-link or reads window.__OPENCODE__. So opencode:// links have no effect on sessions (the one special case is opencode://console/authorized). This comes from searching the app bundle.

    If a consumer for opencode:deep-link gets added, it could cover the tab-opening action here as well as #44167

  4. opencodejr commented on Oct 27, 2026

    @opencodejr
    opencodejrBot
    on Oct 27, 2026
    Contributor
    More actions

    Thanks for the detailed request! In short: you'd like a supported way for API clients or agents to open one or more existing sessions as Desktop tabs. Each tab would open either in the background or as the active tab, reuse a tab that is already open, and never prompt or run the session. Maintainers will consider it.

    Right now Desktop tab state lives only in the client, and Desktop's deep-link handling doesn't cover opening sessions, so there's no way to do this from outside today. It also can't be done as a plugin, because plugins run on the server and can't tell a connected Desktop client which tabs to show.

    Related issues:

    • Add a deep link to open a specific Desktop session #44167: deep link to open a specific Desktop session. This is the narrowest piece of what you're asking for.
    • [FEATURE]: Generic UI Intent Channel for cross-client plugin-driven UX #6330: a generic UI intent channel, which could carry an open-session intent.
    • feat(desktop): reopen closed tabs and background tab open #35010: manual background opening with Ctrl+click, the behaviour you want to trigger from code.
  5. ryanmeador commented on Nov 1, 2026

    @ryanmeador
    ryanmeador
    on Nov 1, 2026
    More actions

    I’d welcome this for both Desktop and web clients. The team plugin provides one example: an agent creates independent sessions, optionally in separate worktrees, and the user then has to find and open them manually.

    The GUI SDK now provides ctx.tabs.open, so a GUI companion could implement this for a plugin. A first-class API would still be useful for scripts, API clients, and server plugins that shouldn’t need to ship GUI code just to request a session tab.

    Ideally, OpenCode would handle window targeting, duplicate tabs, and background versus foreground opening consistently. Opening should remain a client-controlled UI action—not prompt, resume, or otherwise execute the session.

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

Metadata

Metadata

Assignees

  • @Brendonovich
    Brendonovich

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.