GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): blank ignore lines no longer omit checkpoint files by voltcrash · Pull Request #32373 · pingdotgg/t3code

Conversation

@voltcrash

@voltcrash voltcrash commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Problem

Closes #32360. A blank CRLF or spaces-only ignore line can make git check-ignore --no-index . report an allowed workspace as ignored. Checkpoint capture then omits nonignored untracked files, and restoring that incomplete checkpoint can delete files that existed before the turn.

Change

Read the capture probe's verbose NUL-delimited matching pattern and disregard empty or negated matches. Git still determines pattern precedence and genuine parent-directory ignores, including the tracked/staged-only handling from #14892. Restore and the general ignore classifier are unchanged.

Scope and approval

This qualifies for the small, focused obvious-bug exception: it corrects one false classification in capture, with real-Git regressions for the resulting file loss. It adds no settings, restore policy, or checkpoint redesign.

Verification

Linux, Git 2.56.0. All fixtures were disposable; no real user repository or live T3 data was restored.

  • Added eight real-Git capture/restore regression rows in GitVcsDriver.test.ts. All eight failed before the fix because notes.md was missing from the checkpoint tree. They cover root and nested workspaces, ancestor and workspace .gitignore, .git/info/exclude, global excludes, spaces-only lines, and negation precedence.
  • Extended existing parent-ignored project tests to retain genuine exclusions, committed-only/staged-only/mixed captures, allowed siblings, and byte-for-byte index preservation with blank ignore lines present.
  • vp test run apps/server/src/vcs/GitVcsDriver.test.ts: 82/82 passed.
  • vp run check:changed upstream/main: passed format, lint, both knip steps, GraphQL, affected-package typechecks, and 84/84 tests across two files.

Standalone runtime transcript using the actual Git driver in a disposable isolated worktree, with a committed CRLF .gitignore, pre-existing untracked notes.md, a staged-only file with further working edits, and a turn-created new.txt:

before fix:
  before checkpoint: .gitignore, staged.txt, tracked.txt
  after checkpoint:  .gitignore, staged.txt, tracked.txt
  restore returned: true; pre-existing notes: DELETED

after fix:
  before checkpoint: .gitignore, notes.md, staged.txt, tracked.txt
  after checkpoint:  .gitignore, new.txt, notes.md, staged.txt, tracked.txt
  restore returned: true; pre-existing notes: "before turn\n"

both runs:
  capture preserved user index: true
  turn-created new.txt exists after restore: false
  ignored.txt: "private\n"; staged.txt: "working\n"

Windows was not available for this pass. The triggering CRLF bytes were written directly on Linux. Existing incomplete checkpoints are not repaired by this change.

Reviewed with review-loop: 1 round with GPT-6.1 Sol on xhigh. Reviewer verdict: approved; no findings.

Created with GPT-6.1 Sol (xhigh) in the Codex harness through T3 Code.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@voltcrash
fix(server): blank ignore lines no longer omit checkpoint files
ec602a3
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 7, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 7, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at ec602a3

Macroscope's review found this PR approvable — Checkpoint capture now distinguishes blank or negated ignore patterns from genuine workspace exclusions, preventing files from being omitted unnecessarily. Existing Git ignore rules and scratch-index staging remain in place.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Checkpoint capture now determines whether a workspace is ignored from verbose Git output. Tests cover blank and whitespace-only ignore patterns across several ignore sources, including capture and restore behavior.

Changes: Checkpoint ignore detection

Layer / File(s) Summary
Workspace ignore probe and regression coverage
apps/server/src/vcs/GitVcsDriver.ts, apps/server/src/vcs/GitVcsDriver.test.ts
Capture checks the verbose, NUL-delimited git check-ignore result and treats the workspace as ignored only when the matched pattern is nonempty and not negated. Tests cover blank-pattern cases, ignored projects, captured files, index preservation, and restore behavior.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to ec602

No actionable merge-blocking issue was identified; merge after normal validation.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title clearly describes the checkpoint capture fix.
Description check Passed The description covers the problem, fix, scope, verification results, limitations, and agent details.
Linked Issues check Passed [#32360] Capture checks Git’s verbose match and disregards empty and negated patterns. Real-Git tests cover root and nested workspaces, ignore sources, pattern precedence, genuine parent ignores, and …
Out of Scope Changes check Passed [#32360] The capture probe and regression tests address the reported false classification and its restore consequences. The changes also test preservation of existing ignored-project behavior.
Full details: Linked Issues check

Explanation

[#32360] Capture checks Git’s verbose match and disregards empty and negated patterns. Real-Git tests cover root and nested workspaces, ignore sources, pattern precedence, genuine parent ignores, and staged files. They verify capture and restore of pre-existing files, removal of turn-created files, and index preservation.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 257e407
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 25980bff-6ee5-4b09-afe5-39179285d7b5
Commits

Reviewing files that changed from the base of the PR and between 257e407 and ec602a3.

Files selected for processing: 2

  • apps/server/src/vcs/GitVcsDriver.test.ts
  • apps/server/src/vcs/GitVcsDriver.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@voltcrash voltcrash closed this Nov 7, 2026
@voltcrash
voltcrash deleted the t3/fix-ignore-pattern-checkpoint-capture branch November 10, 2026 10:37
@coderabbitai coderabbitai Bot mentioned this pull request Nov 10, 2026
fix(server): blank .gitignore lines no longer make checkpoints drop new files #32374
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: A blank CRLF line in root .gitignore can omit untracked files from checkpoints and lose them on restore

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@voltcrash
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.