Skip to content

feat(deep-links): open sessions by id across servers - #1999

Merged
Hona merged 3 commits into
devfrom
upstream-f/up-368-deep-links-session-by-id
Dec 1, 2026
Merged

Hona merged 3 commits into
devfrom
upstream-f/up-368-deep-links-session-by-id

Conversation

@Hona

@Hona Hona commented Dec 1, 2026

Copy link
Copy Markdown
Member

Ports official anomalyco/opencode#64180 (refactor(desktop): simplify deep links and open sessions by id, commit 43a85e81ee).

Upstream Hunk Mapping

  • packages/app/src/shell/deep-links/machine.ts (FolderDeepLink, SessionDeepLink, DeepLink, parseSessionLink, session bypass of confirmation, queued waiting while server not ready) -> apps/desktop/src/workspace/system/deep_links/{mod,parse}.rs (DeepLink::Folder, DeepLink::Session, DeepLinkEffect::OpenSession, session_link, DeepLinks::step).
  • packages/app/src/shell/deep-links/deep-links.tsx (ready gated on tab restore hydration, openSession probing own server first then listed servers in order via /api/session/{id}) -> apps/desktop/src/workspace/system/deep_links/mod.rs (ready_servers, SessionLookups / LookupState explicit state machine, open_session, spawn_session_probe, poll_session_lookups).
  • packages/desktop/src/shared/deep-links.ts & packages/desktop/src/main/deep-links/index.ts (consoleReturnWindow, simplified pending delivery) -> already matched by parse.rs::console_return and Rune's direct App::on_open_url + DeepLinks machine.
  • Extracted dialog.rs and parse.rs under apps/desktop/src/workspace/system/deep_links/ to stay well under the 800-line file ceiling.
  • Test files (*.test.ts): N/A (repo has no automated test code).

Verification

  • Local scripts/guardrails.ps1: 11/11 passed.
  • Visual proof scenes: --scene deep-link-session, --scene deep-link-confirm, and --scene deep-link-confirm-prompt.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 10:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Hona
Hona merged commit 2560b09 into dev Dec 1, 2026
8 checks passed
@Hona
Hona deleted the upstream-f/up-368-deep-links-session-by-id branch December 1, 2026 11:28
Hona added a commit that referenced this pull request Dec 1, 2026
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.

2 participants