refactor(app): share deep link project opening - #44137
Conversation
Co-authored-by: OpenCode <opencode@users.noreply.github.com>
|
The following comment was made by an LLM, it may be inaccurate: Potential Duplicate FoundPR #43471 - Why it's related: PR #43471 is explicitly mentioned in the current PR's description as the predecessor that is being replaced. The description states: "This is a clean replacement for #43471 with the same changes, opened separately because #43471 received high-volume external automated AI review noise from an account that is not associated with the repo." Both PRs appear to be identical in scope—implementing |
Good extraction overall — 1. Open-project deep links may land on a different route than before. The old legacy path went through 2. 3. Silent failure policy — 4. Drive-by UI change mixed in — the sticky The legacy/new layout gating difference ( |
…#44905) Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
Co-authored-by: neriousy <34747899+neriousy@users.noreply.github.com>
Issue for this PR
Closes #43472
Related to #40094. That issue also covers stale project records after a repository is moved.
This is a clean replacement for #43471 with the same changes, opened separately because #43471 received high-volume external automated AI review noise from an account that is not associated with the repo.
Type of change
What does this PR do?
This adds
useOpenProject. The hook checks the project list and asks the server to recognize an unknown directory before it opens the project.It also adds
useDeepLinks. This hook owns the pending links, desktop event listener, route creation, and project-open sequence.Both layouts now use the same hooks. The legacy layout keeps its session handoff and worktree normalization through hook options.
How did you verify your code works?
bun typecheckinpackages/appbun test src/pages/layout/helpers.test.tsinpackages/app(27 tests pass)git diff --checkbun turbo typechecksuccessfully across 30 tasksScreenshots / recordings
Not applicable. This changes project recognition and navigation behavior without changing the UI.
Checklist
If you do not follow this template your PR will be automatically rejected.