Skip to content

feat(deep-links): time out session lookups, resolve subagent root, and toast when not found - #2070

Merged
Hona merged 2 commits into
devfrom
upstream-f/up-380-deep-links-session-timeout-toast
Dec 1, 2026
Merged

Hona merged 2 commits into
devfrom
upstream-f/up-380-deep-links-session-timeout-toast

Conversation

@Hona

@Hona Hona commented Dec 1, 2026

Copy link
Copy Markdown
Member

Ports official anomalyco/opencode#67608 (feat(app): time out session deep-link lookups and toast when not found, commit 4afcc8e6be).

Upstream Hunk Mapping

  • packages/app/src/shell/deep-links/machine.ts:155-168 (MAX_SESSION_ID_LENGTH = 256, ^ses[A-Za-z0-9._-]+$, reject ..) -> apps/desktop/src/workspace/system/deep_links/parse.rs (session_link).
  • packages/app/src/shell/deep-links/session.ts (SESSION_LOOKUP_TIMEOUT_MS = 15_000, parallel probeInOrder preserving [own, ...others] priority and settling with best hit on timeout, resolveRootSessionID parent chain lookup) -> apps/desktop/src/workspace/system/deep_links/session.rs (SESSION_LOOKUP_TIMEOUT, run_parallel_probe, resolve_root_chain, SessionLookups explicit state machine).
  • packages/app/src/shell/deep-links/deep-links.tsx:101-148 (remember fetched session chain so subagents open under their root tab; show session.error.notFound toast when not found or timed out) -> apps/desktop/src/workspace/system/deep_links/session.rs (poll_session_lookups, open_session).
  • Test files (machine.test.ts, session.test.ts): N/A (repo has no automated test code); added --scene deep-link-session-not-found in apps/desktop/src/workspace/system/deep_links/mod.rs.

Verification

  • Local scripts/guardrails.ps1: 11/11 passed (with new files staged).
  • Visual proof scenes: --scene deep-link-session-not-found and --scene deep-link-session.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 21:32

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 14afb03 into dev Dec 1, 2026
8 checks passed
@Hona
Hona deleted the upstream-f/up-380-deep-links-session-timeout-toast branch December 1, 2026 22:27
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