opencode icon indicating copy to clipboard operation
opencode copied to clipboard

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

Open dpshde opened this issue 11 months ago • 3 comments

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.

dpshde avatar Dec 27 '25 03:12 dpshde

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] avatar Dec 27 '25 04:12 github-actions[bot]

+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 avatar Jan 06 '26 23:01 AlexZan

To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

thdxr avatar Mar 25 '26 03:03 thdxr