Skip to content

feat(desktop): open existing sessions from deep links - #45103

Open
filantus wants to merge 1 commit into
anomalyco:devfrom
filantus:session-deep-link
Open

feat(desktop): open existing sessions from deep links#45103
filantus wants to merge 1 commit into
anomalyco:devfrom
filantus:session-deep-link

Conversation

@filantus

Copy link
Copy Markdown

Issue for this PR

Closes #44167

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds opencode://open-session?server=...&session=... links for existing Desktop sessions. Copy Link now emits this public URL on Desktop, and the app resolves the configured server plus canonical session lineage before navigating.

Desktop forwards protocol URLs from both initial startup arguments and second-instance delivery. Deep-link handling is serialized so launches are processed in delivery order, while a single argument batch uses its last supported URL.

This complements #44137: that PR creates a new session from an external URL, while this one opens an existing Desktop session.

How did you verify your code works?

  • bun test src/pages/layout/helpers.test.ts from packages/app (33 passed)
  • bun test src/main/deep-links.test.ts from packages/desktop (2 passed)
  • bun turbo typecheck via the pre-push hook (30 tasks passed)
  • Launched the unpacked Windows app with an opencode://open-session URL and confirmed it opened the target session

Screenshots / recordings

Not applicable; this changes link generation and protocol routing without changing the visual UI.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a deep link to open a specific Desktop session

1 participant