Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Removing worktree breaks thread when checking out branch elsewhere #8263

Closedaboqasem(GitHub profile, opens in a new tab) opened this issue 0 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Related to https://github.com/pingdotgg/t3code/pull/7839

Area

apps/server

Steps to reproduce

  1. Main project: cd ~/path/to/project
  2. git worktree add ~/path/to/project-worktrees/feature/some-feature feature/some-feature
  3. Thread in Worktree
  4. git worktree remove ~/path/to/project-worktrees/feature/some-feature
  5. git checkout feature/some-feature
  6. Send message in thread

Expected behavior

  1. Switch to the main project or a worktree that has the branch or otherwise to the main project?

Actual behavior

  1. VCS process failed in GitVcsDriver.initRepository: git (/Users/user/path/to/project-worktrees/feature/some-feature) exited with 128 - Process exited with a non-zero status.

Impact

Major degradation or frequent failure

Version or commit

0.0.35-nightly.20260826.1194

Environment

No response

Logs or stack traces

Screenshots, recordings, or supporting files

Image

Workaround

  1. git switch off of feature/some-feature
  2. Send message in thread
  3. T3Code recreates the worktree
  4. Within T3Code: switch to a branch that's checked out elsewhere to leave the worktree
  5. Remove the worktree
  6. git switch feature/some-feature
  1. aboqasem(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. aboqasem(GitHub profile, opens in a new tab) changed the title

  3. juliusmarminge closed this

Sign in to join this conversation.