The best way to control Claude Code, Codex and more from any computer or phone
Limit default-branch confirmation to direct push
- Stop showing default-branch confirmation for `commit_push_pr` - Keep confirmation only for direct `commit_push` actions - Update logic test to match the new behavior
Julius Marminge committed
Mar 2, 2026 at 19:29 UTC
30e05538b797ea4d1df34d21332ea471142874b7
2 files changed
+3
-3
apps/web/src/components/GitActionsControl.logic.test.ts
+2
-2
@@ -737,10 +737,10 @@ describe("when: branch has no upstream configured", () => {
737
});
738
739
describe("requiresDefaultBranchConfirmation", () => {
740
- it("requires confirmation only for push actions on default branch", () => {
740
+ it("requires confirmation only for direct push on default branch", () => {
741
assert.isFalse(requiresDefaultBranchConfirmation("commit", true));
742
assert.isTrue(requiresDefaultBranchConfirmation("commit_push", true));
743
- assert.isTrue(requiresDefaultBranchConfirmation("commit_push_pr", true));
743
+ assert.isFalse(requiresDefaultBranchConfirmation("commit_push_pr", true));
744
assert.isFalse(requiresDefaultBranchConfirmation("commit_push", false));
745
});
746
});
apps/web/src/components/GitActionsControl.logic.ts
+1
-1
@@ -282,7 +282,7 @@ export function requiresDefaultBranchConfirmation(
282
isDefaultBranch: boolean,
283
): boolean {
284
if (!isDefaultBranch) return false;
285
- return action === "commit_push" || action === "commit_push_pr";
285
+ return action === "commit_push";
286
}
287
288
export function resolveDefaultBranchActionDialogCopy(input: {