@devries-cameron20 / t3code Mirror · read-only / commits / e4df6fcf8e
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 11:00 UTC

Scope default-branch PR confirmation to full stack

Co-authored-by: codex <codex@users.noreply.github.com>

Julius Marminge committed Mar 2, 2026 at 19:49 UTC e4df6fcf8e90127764005858878dad7a55ebc8c4
3 files changed +5 -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 direct push on default branch", () => {
740 + it("requires confirmation for push actions on default branch", () => {
741 assert.isFalse(requiresDefaultBranchConfirmation("commit", true));
742 assert.isTrue(requiresDefaultBranchConfirmation("commit_push", true));
743 - assert.isFalse(requiresDefaultBranchConfirmation("commit_push_pr", true));
743 + assert.isTrue(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";
285 + return action === "commit_push" || action === "commit_push_pr";
286 }
287
288 export function resolveDefaultBranchActionDialogCopy(input: {
apps/web/src/components/GitActionsControl.tsx
+2
@@ -347,6 +347,7 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
347 action: "commit_push",
348 forcePushOnlyProgress: true,
349 onConfirmed: closeResultToast,
350 + featureBranch,
351 });
352 },
353 },
@@ -372,6 +373,7 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
373 void runGitActionWithToast({
374 action: "commit_push_pr",
375 forcePushOnlyProgress: true,
376 + featureBranch,
377 });
378 },
379 },