refactor(app): share deep link project opening - #44137
anduimagui wants to merge 17 commits into
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>
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
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.