Skip to content

refactor(app): share deep link project opening - #43471

Open
anduimagui wants to merge 1 commit into
anomalyco:devfrom
anduimagui:deep-link-project-creation
Open

refactor(app): share deep link project opening#43471
anduimagui wants to merge 1 commit into
anomalyco:devfrom
anduimagui:deep-link-project-creation

Conversation

@anduimagui

@anduimagui anduimagui commented Aug 19, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #43472

Related to #40094. That issue also covers stale project records after a repository is moved.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

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 typecheck in packages/app
  • bun test src/pages/layout/helpers.test.ts in packages/app (27 tests pass)
  • git diff --check

Screenshots / recordings

Not applicable. This changes project recognition and navigation behavior without changing the UI.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@anduimagui
anduimagui marked this pull request as ready for review August 19, 2026 16:03
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.

Desktop deep links can open projects before they are recognized

1 participant