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
Keep non-default quick action on full PR flow
Co-authored-by: codex <codex@users.noreply.github.com>
Julius Marminge committed
Mar 2, 2026 at 20:08 UTC
dcd2d50768363e61fdf556e81abada8aa54996de
2 files changed
+4
-4
apps/web/src/components/GitActionsControl.logic.test.ts
+3
-3
@@ -365,7 +365,7 @@ describe("when: working tree has local changes", () => {
365
});
366
});
367
368
- it("resolveQuickAction returns commit and push when open PR exists", () => {
368
+ it("resolveQuickAction keeps full commit/push/pr flow on non-default branches even when PR exists", () => {
369
const quick = resolveQuickAction(
370
status({
371
hasWorkingTreeChanges: true,
@@ -382,8 +382,8 @@ describe("when: working tree has local changes", () => {
382
);
383
assert.deepInclude(quick, {
384
kind: "run_action",
385
- action: "commit_push",
386
- label: "Commit & push",
385
+ action: "commit_push_pr",
386
+ label: "Commit, push & create PR",
387
});
388
});
389
apps/web/src/components/GitActionsControl.logic.ts
+1
-1
@@ -204,7 +204,7 @@ export function resolveQuickAction(
204
}
205
206
if (hasChanges) {
207
- if (hasOpenPr || isDefaultBranch) {
207
+ if (isDefaultBranch) {
208
return { label: "Commit & push", disabled: false, kind: "run_action", action: "commit_push" };
209
}
210
return {