GeezerVison is showing github.com — fix(server): blank ignore lines no longer omit checkpoint files by voltcrash · Pull Request #32373 · pingdotgg/t3code
Conversation
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.
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

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: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly describes the checkpoint capture fix. |
| Description check |
 |
The description covers the problem, fix, scope, verification results, limitations, and agent details. |
| Linked Issues check |
 |
[#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 |
 |
[#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)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Milestone
No milestone
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.
|