Feature Request: Desktop app deep links (opencode://session/<id>)
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>oropencode -copens the TUI to a specific session - Web console: The
/sharecommand 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.
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.
+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.
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.