Skip to content

[Bug]: Mobile cannot create a PR from a fully pushed feature branch #38181

Closed

Description

@StiensWout

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

  1. 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.
  2. Start the iOS app built from main and open that environment.
  3. Start a new thread, choose that project, set the workspace control to Current checkout, and set Branch to the feature branch.
  4. On the New thread screen, before sending a message, tap Git controls in the header.
  5. 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.

New thread on the pushed feature branch

Git controls menu

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: expected
Automated 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.ts

Workaround

No response

Activity

  1. added
    vouch:trusted
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions