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

Open
opened 2026-02-16 17:41:53 -05:00 by yindo · 2 comments
Owner

Originally created by @dpshade on GitHub (Dec 26, 2025).

Originally assigned to: @adamdotdevin on GitHub.

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.

Originally created by @dpshade on GitHub (Dec 26, 2025). Originally assigned to: @adamdotdevin on GitHub. ## 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](https://github.com/sst/opencode/blob/dev/packages/desktop/src-tauri/tauri.conf.json) 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](https://v2.tauri.app/plugin/deep-linking/): ``` 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.
yindo added the web label 2026-02-16 17:41:53 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 26, 2025):

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

  • #6009: [FEATURE]: opencode:// protocol handler to support cmds and args (requests the same generic protocol handler feature)
  • #5448: Unable to Share Session (related to session sharing and linking functionality)
  • #326: interactive /share (thematically related to making sessions accessible and shareable)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 26, 2025): This issue might be a duplicate of existing issues. Please check: - #6009: [FEATURE]: opencode:// protocol handler to support cmds and args (requests the same generic protocol handler feature) - #5448: Unable to Share Session (related to session sharing and linking functionality) - #326: interactive `/share` (thematically related to making sessions accessible and shareable) Feel free to ignore if none of these address your specific case.
Author
Owner

@AlexZan commented on GitHub (Jan 6, 2026):

+1 - Would love this for automation/scripting workflows. Being able to programmatically open a specific chat session in the desktop app would enable better tooling integration.

@AlexZan commented on GitHub (Jan 6, 2026): +1 - Would love this for automation/scripting workflows. Being able to programmatically open a specific chat session in the desktop app would enable better tooling integration.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3903