From 41f33b65c09ecb7a59fab13ea8bdb0eaf6840f06 Mon Sep 17 00:00:00 2001 From: hugocasa Date: Thu, 9 Jul 2026 21:02:00 +0200 Subject: [PATCH] fix(git-sync): fork PRs are opt-in on new connections too Only auto-pull and fork sync default on for new app-backed connections; opening pull requests stays a deliberate per-repo decision. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01PP5gBSPfo1YtkL1sWVAjJm --- .../lib/components/git_sync/GitSyncRepositoryCard.svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/components/git_sync/GitSyncRepositoryCard.svelte b/frontend/src/lib/components/git_sync/GitSyncRepositoryCard.svelte index bc10a86e43..0ba1c92a69 100644 --- a/frontend/src/lib/components/git_sync/GitSyncRepositoryCard.svelte +++ b/frontend/src/lib/components/git_sync/GitSyncRepositoryCard.svelte @@ -149,9 +149,9 @@ isGithubApp = value?.is_github_app === true // A newly added connection defaults to pulling from Git only when // the repository is app-backed (instant webhook delivery). Polling - // is opt-in for token repositories. Fork/dev workspaces never get - // the parent-only defaults (the backend rejects them), and both - // features are EE-only. + // is opt-in for token repositories, PR opening is a deliberate + // opt-in everywhere, and fork/dev workspaces never get the + // parent-only defaults (the backend rejects them). EE-only. if ( repo.isUnsavedConnection && isGithubApp && @@ -160,7 +160,6 @@ repo.auto_pull === undefined ) { repo.auto_pull = { enabled: true, mode: 'auto', sync_forks: true } - repo.fork_open_prs = repo.fork_open_prs ?? true } // Webhook with polling fallback is the only delivery for app repos. if (isGithubApp && repo.auto_pull?.mode === 'polling') {