Skip to content

[Bug]: Mobile branch picker accepts a stale current branch without checking out #37120

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

apps/mobile

Steps to reproduce

  1. In a disposable Git repository, create feature/a and check it out.
  2. Open a new task in the mobile app using Current checkout. Open the branch picker while feature/a is marked CURRENT.
  3. In a separate terminal, check out main in that repository while leaving the picker open.
  4. Tap the cached feature/a row.
  5. Check git branch --show-current in the repository.

Expected behavior

The selection rechecks Git and checks out feature/a before saving it as the new task branch.

Actual behavior

The picker accepts the selection and the draft says feature/a, but Git remains on main. The mobile helper returns Success without a fresh read because the cached row still has current: true.

Impact

Minor bug or occasional failure

Version or commit

pingdotgg/main at e101cae. The affected helper is unchanged on 50a2f5b.

Environment

Mobile branch picker, local/current-checkout mode. Public helper reproduced against real disposable Git repositories. Fresh independent Claude Opus 5.5 verifier confirmed on the same main commit.

Logs or stack traces

The helper returned Success, but the Git assertion failed: expected feature/a, received main. The same fixture with current=false succeeds.

Workaround

Refresh or reopen the branch list after an external checkout before selecting the branch.

Found by the Composer Improvements and Fixes hunt (GPT 6.1 Sol), independently confirmed by Claude Opus 5.5. No downstream agent execution claim.

Activity

  1. added
    vouch:trusted
    on Nov 15, 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