Repository navigation
Closed
Labels
vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
Not sure
Steps to reproduce
- In a GitHub repository that the iOS app's connected environment already has as a project, and whose connection can change source control, create a feature branch from the default branch, commit one change on it, push the branch with its upstream set, and leave that checkout clean on the feature branch with no pull request open for it.
- Start the iOS app built from main and open that environment.
- Start a new thread, choose that project, set the workspace control to Current checkout, and set Branch to the feature branch.
- On the New thread screen, before sending a message, tap Git controls in the header.
- Wait until the menu's first row shows the feature branch name with the subtitle Clean.
Expected behavior
That row is an enabled Create PR action.
Actual behavior
The next row is a disabled Commit entry. Its subtitle says the branch is up to date and no action is needed.
Impact
Minor bug or occasional failure. Mobile users meet this whenever their feature branch is fully pushed but still needs a pull request.
Version or commit
main at 49c3ab8632. The cause is at packages/client-runtime/src/state/gitActions.ts:246.
Environment
iPhone 18 Pro, iOS 27.0.
Logs or stack traces
AssertionError: expectedAutomated repro
Fails in 2 of 2 runs on main: apply the patch with git apply, then run the command.
diff --git a/packages/client-runtime/src/state/gitActions.test.ts b/packages/client-runtime/src/state/gitActions.test.ts
index 3fa8458061..7418ed0df1 100644
--- a/packages/client-runtime/src/state/gitActions.test.ts
+++ b/packages/client-runtime/src/state/gitActions.test.ts
@@ -78,6 +78,16 @@ describe("git action copy", () => {
).toBe("No local commits to include in an MR.");
});
+ it("offers creating a PR after the feature branch has been fully pushed", () => {
+ const pushed = status({ aheadCount: 0, behindCount: 0, aheadOfDefaultCount: 1 });
+ expect(resolveQuickAction(pushed, false)).toMatchObject({
+ disabled: false,
+ kind: "run_action",
+ action: "create_pr",
+ });
+ expect(resolveQuickAction({ ...pushed, isDefaultRef: true }, false, true).disabled).toBe(true);
+ });
+
it("names the host's change request in the default-branch dialog", () => {
const input = { action: "commit_push_pr", branchName: "main", includesCommit: true } as const;
expect(cd packages/client-runtime && pnpm exec vp test run src/state/gitActions.test.tsWorkaround
No response
Metadata
Metadata
Assignees
Labels
vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.


Activity