Repository navigation
refactor(desktop): thread links ride upstream's desktop web link transport - #305
Merged
Merged
Conversation
# Conflicts: # apps/web/src/components/desktop/DesktopThreadLinkCoordinator.tsx
…unch link" This reverts commit bf4b186.
…atalog never loads
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fork desktop thread links (
t3code://app/<environmentId>/<threadId>) had their own transport: an inbox inmain.ts, a queue, an IPC channel, a preload bridge and a second renderer-ready handshake. Upstream'sDesktopWebLinks/DesktopWebLinkCoordinatoralready delivert3code://threads/…links, so the fork transport was duplicated.T10: thread links ride upstream's transport
DesktopClerk.openAppLinkrewrites the documentedapp/alias to upstream'sthreads/link (appThreadLinkAsThreadsLink). The existing same-scheme check still applies, andpairlinks stay scheme-agnostic. Clerk registers itsopen-urllistener synchronously, in the same turn as its scheme registration, and buffers until configure. This covers the macOS cold start that the fork inbox existed for.DesktopThreadLinkReceivernow comes fromDesktopClerk.openThreadLink, which accepts this build'sapp/links only.DesktopWebLinks(fork lines): when no window exists after a renderer has listened once (macOS after the last window closes), a link opens a window again. This does not happen during startup.DesktopWebLinkCoordinator.openAppPathresolves every thread link throughresolveLinkedThreadbefore opening it in the active split pane. That coversprimary, the catalog and the live thread list, archived threads, and the short error.primaryis rewritten to the resolved environment in the route.DesktopThreadLinksservice,threadLinksIPC method, channels, preload bridge, theDesktopThreadLinkcontract andDesktopThreadLinkCoordinator.threads/and hosted thread links now get the same existence checks (README updated).main(desktop, shared, web, contracts): +52134/−5013 → +51717/−5019. Branch: +232/−655.Tests: parser tests ported to
DesktopThreadLinks.test.ts. Clerk tests now cover the alias (cold-startopen-url, own scheme, preview receiver, before configure). ADesktopWebLinkscase covers reopening a window. Tests that only covered removed plumbing are deleted.Skipped: voice-usage A5 (relaunch filter); it is out of scope for this batch.
Implemented by Claude Opus 5.5 in Claude Code (T3 Code); reviewed by Astra and Opus.