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 — feat(desktop): open a session via opencode:// deep link by BlueBlock · Pull Request #54153 · anomalyco/opencode

Conversation

@BlueBlock

@BlueBlock BlueBlock commented Oct 9, 2026

Copy link
Copy Markdown

Motivation

External companion tools (session managers, IDE integrations) need a supported way to open a specific session in the desktop client. Today the only option is the TUI CLI.

The plumbing already exists: protocol registration, second-instance forwarding, the renderer opencode:deep-link event, and the /server/:serverKey/session/:id route. This adds the missing session consumer and parser.

Schema

opencode://session/<sessionID>

The id must be one path segment, at most 256 characters, with no control characters, credentials, query, hash, extra segments, ., or ... Invalid links are ignored. opencode://open-project, opencode://new-session, and opencode://console/authorized are unchanged.

Windows cold start copies opencode:// arguments from process.argv into the existing initial deep-link queue. A second instance and macOS open-url keep the current path.

Tests

Parser unit tests in packages/app/src/pages/layout/helpers.test.ts cover a valid id, an encoded space, the 256-character limit, and rejections for traversal, extra segments, query, hash, userinfo, over-long ids, control characters, encoded slashes, and unrelated hosts. bun test src/pages/layout/helpers.test.ts passed (29 tests).

A Windows launch of the v2.0.26 desktop with the same parser behavior passed cold start, a running-instance handoff to a real local session, and the invalid-link cases. macOS open-url was not run. This branch is current dev and was not packaged again.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Dan Bullock
feat(desktop): open a session via opencode:// deep link
16f7db6
Teach the desktop client to navigate to opencode://session/<id> from a cold start and from a second instance. Invalid session links are ignored, and the existing project and console links are unchanged.
@BlueBlock
BlueBlock requested review from Brendonovich and Hona as code owners October 9, 2026 14:24
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 72 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opencode-agent opencode-agent Bot closed this Oct 9, 2026
@opencode-agent

opencode-agent Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for the clear write-up and the parser tests, @BlueBlock!

v1 (the dev branch) only takes critical fixes, and a new opencode://session/<id> deep link is a feature, so it can't go in here.

The v2 desktop app has its own deep-link handling (packages/desktop/src/renderer/startup/deep-links.ts and packages/desktop/src/main/lifecycle/ on the v2 branch). If you'd still like to add session deep links, you could open a pull request against v2. It's a separate implementation, so the change would need to be redone there rather than ported directly.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BlueBlock BlueBlock mentioned this pull request Oct 9, 2026
feat(desktop): open a session via opencode:// deep link #54187
Closed
3 of 6 tasks
@opencode-agent opencode-agent Bot mentioned this pull request Oct 21, 2026
Constant ECONNRESET error #57875
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Hona Hona Awaiting requested review from Hona
@Brendonovich Brendonovich Awaiting requested review from Brendonovich

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

needs:compliance This means the issue will auto-close after 2 hours.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@BlueBlock
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.