Skip to content

[Bug] failed to create worktree #3595

Closed

Description

@erikdemarco

Language

  • This report is written in English

What's wrong? Maybe some steps to reproduce.

I just installed newly openchamber.AppImage on linuxmint, when i want to create worktree i got message:
failed to create worktree
Unable to query remote origin

Where does it happen?

Not sure

Version

1.23.2

Screenshots / recordings (optional)

No response

Logs (optional)

Activity

  1. openchamber-bot commented on Sep 15, 2026

    @openchamber-bot
    Contributor

    For the maintainer: not-ours — this is a git network/auth failure, not an OpenChamber code bug.

    The error "Unable to query remote origin" is generated at service.js:4282/4299 when the validation step runs git ls-remote --heads origin refs/heads/<branch> to confirm the remote branch exists before creating the worktree. If that git command fails (network down, no SSH keys, expired token, wrong remote URL), OpenChamber surfaces this message.

    The code path is intentional: withWorktreeRemoteStartRef in worktreeCreate.ts:130 automatically resolves the start ref to a remote tracking branch when the user is on a branch with an upstream that is not ahead — so this error can appear even for a "simple" worktree creation from the current branch.

    What the reporter can try:

    1. Run git ls-remote origin from the terminal in their project directory — if that fails, the remote is unreachable from their machine.
    2. Check network access, SSH keys, or credential helper (e.g. git credential fill).
    3. Verify the remote URL is correct: git remote get-url origin.

    No OpenChamber code change needed — the underlying git ls-remote failure is real and correctly surfaced.

  2. erikdemarco commented on Sep 16, 2026

    @erikdemarco
    Author

    testing the suggestion gives this result:

    git ls-remote origin
    97898fe0e2f54cc6156b6b3270c927xxx        HEAD
    97898fe0e2f54cc6156b6b3270c927xxx        refs/heads/main
    
    
    git remote get-url origin
    https://github.com/xxx/test.git
    
  3. yulia-ivashko commented on Oct 9, 2026

    @yulia-ivashko
    Contributor

    This was fixed by #3457 and ships in v2.1.1: creating a worktree no longer asks the remote first, it checks local branches only. If it still fails there, comment and I'll reopen it.

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

    bugSomething isn't workingneeds-infoNeeds more info from reporter to reproduce

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions