Skip to content

VS Code extension creates refs/codex checkpoint refs that break SourceTree branch listing and fetch #28847

Open

Description

@wthee00

What version of the IDE extension are you using?

26.609.30741

What subscription do you have?

chat gpt plus

Which IDE are you using?

VS code

What platform is your computer?

Microsoft Windows NT 10.0.26220.0 x64

What issue are you seeing?

When starting a Codex chat in VS Code extension, Codex creates refs like:

refs/codex/turn-diffs/checkpoints/...

These refs point to tree objects, not commits.

After that, SourceTree stops showing local branches and sometimes fetch fails with:

fatal: bad object refs/codex/...
error: did not send all necessary objects

Running this fixes SourceTree immediately:

git for-each-ref --format='delete %(refname)' refs/codex | git update-ref --stdin

What steps can reproduce the bug?

  1. Open repo in VS Code with Codex extension.
  2. Start a Codex chat.
  3. Codex creates refs/codex/turn-diffs/checkpoints/... pointing to tree objects.
  4. Open same repo in SourceTree.
  5. Local branches disappear or fetch fails.

What is the expected behavior?

After starting a Codex chat, my repository should still work normally in SourceTree.

Local branches should still be visible, and fetch should work without errors.

Additional information

No response

Activity

  1. added
    extension
    on Jun 18, 2026
  2. added
    bug
    windows-os
    session
    on Jun 18, 2026
  3. github-actions commented on Jun 18, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

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

    bugextensionsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions