fix(app): do not promote archive as primary for regular Git checkouts

This commit is contained in:
Mohamed Boudra
2026-07-11 18:58:24 +02:00
parent a017ddfc29
commit 120842264e
2 changed files with 28 additions and 2 deletions
+8 -1
View File
@@ -346,7 +346,14 @@ function getPrimaryActionId(input: BuildGitActionsInput): GitActionId | null {
if (input.githubFeaturesEnabled && input.hasPullRequest && input.pullRequestUrl) {
return "pr";
}
return "archive-workspace";
// Only Paseo-owned worktrees get Archive as a fallback primary action.
// Regular Git checkouts should not show the destructive archive CTA by default.
if (input.isPaseoOwnedWorktree) {
return "archive-workspace";
}
return null;
}
function getPullRequestActionIds(filter: {