Skip to content

[Bug]: A Git result can appear in a different project's thread #41014

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. On an Android phone emulator, open a thread on a checked-out branch that is one commit behind its upstream.
  2. Open Git controls in the thread header.
  3. Tap Pull.
  4. Once the pull starts, return to the thread list.
  5. Open an idle thread in a different Git project before the pull result disappears. If the pull finishes quickly, switch while its success banner is still visible.
  6. Look at the banner above the second thread's chat.

Expected behavior

The second thread shows its own Git activity.

Actual behavior

The second thread shows “Pulled latest on” with the branch name from the first project.

Orchard Git controls before Pull

Harbor chat after Orchard pull

Pull and switch projects

Impact

Minor bug or occasional failure. Anyone switching projects during a Git action or within five seconds of its completion can see the result in the wrong chat.

Version or commit

main at 6972026121. The cause is at apps/mobile/src/state/use-vcs-action-state.ts:156.

Environment

Pixel_9_API_37, Android 17.0, Android Emulator on Linux x64.

Logs or stack traces

Commands that reproduce it on the device
"$agent_device" "${agent_target[@]}" record start --scope device "$PWD/captures/git-result-across-projects.mp4"
"$agent_device" "${agent_target[@]}" press @e10
"$agent_device" "${agent_target[@]}" wait 'label="Git controls"' 4000
"$agent_device" "${agent_target[@]}" press 'label="Git controls"'
"$agent_device" "${agent_target[@]}" wait 'label="Pull"' 4000
"$agent_device" "${agent_target[@]}" screenshot "$PWD/captures/orchard-before-pull.png" --no-stabilize
"$agent_device" "${agent_target[@]}" press 'label="Pull"'
"$agent_device" "${agent_target[@]}" wait 'label="Navigate up"' 3000
"$agent_device" "${agent_target[@]}" press 'label="Navigate up"'
"$agent_device" "${agent_target[@]}" wait text "Harbor checklist" 3000
"$agent_device" "${agent_target[@]}" press 'text="Harbor checklist"'
"$agent_device" "${agent_target[@]}" wait 'label="Git controls"' 3000
"$agent_device" "${agent_target[@]}" screenshot "$PWD/captures/harbor-after-pull.png" --no-stabilize
"$agent_device" "${agent_target[@]}" snapshot
"$agent_device" "${agent_target[@]}" record stop

Workaround

No response

Activity

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