Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): ignore tags during remote fetch #7619

ClosedClayMav(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/7619/headopened View on GitHub

Worktree preparation refreshes remote branches with git fetch, but that command inherits global tag-pruning configuration. If a local tag differs from its remote tag, the branch refresh fails with would clobber existing tag even though T3 Code does not need tags for the worktree.

This explicitly disables tag fetching and tag pruning for the remote refresh. A regression test enables fetch.pruneTags, moves a remote tag, and verifies the tracking branch updates without changing the local tag.

Tests:

  • vp test run apps/server/src/vcs/GitVcsDriverCore.test.ts (50 passed)
  • targeted lint and format checks for both changed files
  • pnpm --filter t3 typecheck

Built with OpenAI Codex using GPT-5.

Note

Pass --no-tags and --no-prune-tags to GitVcsDriverCore.fetchRemote

Forces the git fetch call in GitVcsDriverCore.ts to skip fetching and pruning tags, overriding any user-level fetch.prune/fetch.pruneTags config. Adds an integration test in GitVcsDriverCore.test.ts confirming remote-tracking branches update while local tags stay unchanged.

  • Behavioral Change: fetchRemote no longer updates or prunes tags; callers relying on tag updates during remote fetch must do so separately.
Macroscope summarized a61f4f8.
    1. Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: c2b1868b-364f-40e9-abfa-5001c4d5e3cd

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at a61f4f8

      Macroscope's review found this PR approvable — This is a narrowly scoped server bug fix that prevents remote tag conflicts from breaking worktree branch refreshes, while preserving the branch update behavior the caller needs. An integration test covers the prune configuration scenario and confirms local tags remain unchanged.

      Notes:

      • Diff unchanged. Approvability was decided on eligibility alone.
      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. This is urgently needed.

    5. juliusmarminge added labelsmacroscope-review

    6. Note

      Written by claude-opus-5-5 on behalf of Maria

      Hi! We are cleaning up open PRs, and this one appears to have been created with an older model (gpt-5). If this change is really important, we recommend rebuilding the PR with a newer model if possible.

    7. maria-rcks closed this

Sign in to join this conversation.