Skip to content

Feature Request: Desktop app deep links (opencode://session/<id>) #6232

@dpshade

Description

@dpshade

Summary

The OpenCode desktop app does not currently support deep links to open directly to a session.

Current State

The desktop app's Tauri configuration does not include a deep-link plugin configuration. The config only contains:

  • Basic app identifiers and build settings
  • Bundle configuration (icons, installers)
  • External binary sidecar for the CLI

There's no URL scheme (like opencode://session/<id>) registered.

Use Case

Being able to deep link directly to a session would enable:

  • Clicking links in external tools (Slack, email, notes) to jump straight to a specific OpenCode session
  • Better integration with workflow automation
  • Sharing session references with teammates that open in the native app

Current Workarounds

  • CLI: opencode --session <id> or opencode -c opens the TUI to a specific session
  • Web console: The /share command creates shareable web URLs (opncd.ai/s/<share-id>), but these are read-only views

Proposed Solution

Register a URL scheme handler via Tauri's deep-link plugin:

opencode://session/<session-id>

The architecture (Tauri + client/server model) should support adding deep links relatively easily since the app already communicates with the local HTTP server.

Additional Context

This would bring the desktop app closer to feature parity with how other dev tools handle session/context linking.

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions