fix(server): link thread PRs without an open client #10101
main fromrefs/pull/10101/head·merged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubShowing 50 changed files with 5 additions and 69 deletions (loading 47).
🟡 Medium home/HomeScreen.tsx:842
On servers without threadPullRequestLinking, branch-associated PRs no longer appear in either Home list. Removing projectCwd eliminates the local vcs.status({cwd}) fallback, while useThreadPr returns null when linkedPullRequest and branchPullRequest are absent; retain that fallback or gate the removal on the capability.
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @apps/mobile/src/features/home/HomeScreen.tsx around line 842:
On servers without `threadPullRequestLinking`, branch-associated PRs no longer appear in either Home list. Removing `projectCwd` eliminates the local `vcs.status({cwd})` fallback, while `useThreadPr` returns `null` when `linkedPullRequest` and `branchPullRequest` are absent; retain that fallback or gate the removal on the capability.
Note
🤖 GPT-6 Astra responding on behalf of Theo
This migration intentionally requires an updated server for automatic branch links. Keeping the vcs.status fallback would leave PR association logic on the client, which is the problem this PR fixes. Existing saved manual links still display. The user guide and PR description now state the server requirement.