You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(server): preserve Unicode spaces in checkpoint LFS storage - #42555
Checkpoint capture can write an LFS pointer that Git LFS cannot restore when the configured cache directory begins or ends with a non-ASCII space. The publisher trims the space off the directory name and moves the object into a sibling directory.
Change
Use the same ASCII whitespace helper used for other Git command output. The existing capture and publication paths can now keep non-ASCII spaces in lfs.storage.
Scope
Small fix to checkpoint publication. The issue and PR search found no overlapping fix. This is limited to non-ASCII whitespace. This patch keeps T3's previous ASCII trimming. The native replay's trailing ASCII space and tab controls reproduce the same pre-existing mismatch before and after.
Verification
With Git LFS 3.6.1 and a disposable local repository, I set lfs.storage to object cache\u00A0 and captured a checkpoint for a new LFS-tracked file. I then sent the checkpoint's pointer to the real Git LFS smudge filter.
Check
Before
After
Object present in the directory reported by Git LFS
No
Yes
Smudge restored the original bytes
No (exit 2)
Yes (exit 0)
The leading NBSP case also passed after the fix. The default and ordinary relative paths passed before and after. I extended the existing checkpoint test to exercise both default and NBSP storage. It failed with a missing object on base. V8 coverage executed the changed statement in both cases, including the default fallback.
Dependency Cruiser found the same 55 direct resolved edges and zero findings in the scoped rule on base and fix. Fallow and CodeScene passed on a two-file snapshot. Fallow had limited dependency resolution in that snapshot. A source-derived copy of the path expression passed 200 fast-check cases and 300 bounded Jazzer.js runs. Stryker killed all four mutants. Tools and artifacts were kept outside the tracked patch. Verification ran on Linux.
The first changed-file check timed out before typecheck returned (exit 124). The serial retry passed with 162 tests, format, lint, both Knip steps, GraphQL and affected-package typecheck. The same check passed after rebasing to 31d95f8, with 162 tests. Normal commit hooks passed.
Independent review: Gemini 4 Neon (Antigravity) approved at medium effort. Opus 5.5 approved at high effort.
Reviewed with sol-loop: 1 round with GPT-6.2 Sol on high. Sol verdict: approved.
Created with GPT-6.2 Sol in Codex through T3 Code.
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Reviewing files that changed from the base of the PR and between 4bec5b8 and 1d44259.
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
No actionable comments were generated in the recent review.
Walkthrough
The Git VCS driver trims ASCII whitespace from configured Git LFS storage paths before resolving them. The test covers object placement and temporary-directory cleanup for default and configured storage paths.
Changes: Git LFS storage path
Layer / File(s)
Summary
Storage path resolution and verification apps/server/src/vcs/GitVcsDriver.ts, apps/server/src/vcs/GitVcsDriver.test.ts
The driver trims ASCII whitespace from the configured lfs.storage value before resolving it. An empty trimmed value still defaults to lfs. The test checks object placement and absence of the corresponding tmp directory for default and configured storage paths.
This change preserves non-ASCII spaces in configured Git LFS storage paths for checkpoints. It is narrow, has test coverage for the changed behavior, and shows no remaining merge-blocking risk.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: checkpoint LFS storage now keeps non-ASCII spaces, which matches the trimming fix in GitVcsDriver.ts and the test extension. It uses the conventional commit format and…
Description check
The description follows the template. It includes Problem, Change, Scope, and Verification sections, and it covers the expected behavior, the fix, the reason for the limit to non-ASCII whitespace, and…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: checkpoint LFS storage now keeps non-ASCII spaces, which matches the trimming fix in GitVcsDriver.ts and the test extension. It uses the conventional commit format and is specific, so a teammate scanning history can identify the change.
Full details: Description check
Explanation
The description follows the template. It includes Problem, Change, Scope, and Verification sections, and it covers the expected behavior, the fix, the reason for the limit to non-ASCII whitespace, and the Git LFS 3.6.1 reproduction with before and after results. It also names the model and harness, as the template asks. The Problem section gives no explicit expected-behavior statement, and the Scope section does not link an issue. Its claim that no overlapping issue exists is not backed by a link, so a maintainer cannot check it directly.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between 31d95f8 and 4bec5b8.
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; 7 remain after this review.
Created Git LFS repositories with trailing NBSP, leading NBSP, and default storage; added unstaged weights.bin; completed one Replay turn; read checkpoint ordinal/1 and piped its pointer into git lfs smudge. Checked restoration before opening the thread view. Captures show the real web app with a diagnostic overlay of actual runtime command results. Linux web, 1280×800, light theme, fresh synthetic state on each commit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:XS0-9 changed lines (additions + deletions).vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
3 participants
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.
Problem
Checkpoint capture can write an LFS pointer that Git LFS cannot restore when the configured cache directory begins or ends with a non-ASCII space. The publisher trims the space off the directory name and moves the object into a sibling directory.
Change
Use the same ASCII whitespace helper used for other Git command output. The existing capture and publication paths can now keep non-ASCII spaces in
lfs.storage.Scope
Small fix to checkpoint publication. The issue and PR search found no overlapping fix. This is limited to non-ASCII whitespace. This patch keeps T3's previous ASCII trimming. The native replay's trailing ASCII space and tab controls reproduce the same pre-existing mismatch before and after.
Verification
With Git LFS 3.6.1 and a disposable local repository, I set
lfs.storagetoobject cache\u00A0and captured a checkpoint for a new LFS-tracked file. I then sent the checkpoint's pointer to the real Git LFS smudge filter.The leading NBSP case also passed after the fix. The default and ordinary relative paths passed before and after. I extended the existing checkpoint test to exercise both default and NBSP storage. It failed with a missing object on base. V8 coverage executed the changed statement in both cases, including the default fallback.
Dependency Cruiser found the same 55 direct resolved edges and zero findings in the scoped rule on base and fix. Fallow and CodeScene passed on a two-file snapshot. Fallow had limited dependency resolution in that snapshot. A source-derived copy of the path expression passed 200 fast-check cases and 300 bounded Jazzer.js runs. Stryker killed all four mutants. Tools and artifacts were kept outside the tracked patch. Verification ran on Linux.
The first changed-file check timed out before typecheck returned (exit 124). The serial retry passed with 162 tests, format, lint, both Knip steps, GraphQL and affected-package typecheck. The same check passed after rebasing to 31d95f8, with 162 tests. Normal commit hooks passed.
Independent review: Gemini 4 Neon (Antigravity) approved at medium effort. Opus 5.5 approved at high effort.
Reviewed with sol-loop: 1 round with GPT-6.2 Sol on high. Sol verdict: approved.
Created with GPT-6.2 Sol in Codex through T3 Code.