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): preserve leading U+FEFF in Git index paths by Lucenx9 · Pull Request #37126 · pingdotgg/t3code

Conversation

@Lucenx9

@Lucenx9 Lucenx9 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Problem

A tracked filename beginning with U+FEFF loses that character when T3 reads Git's binary index. The checkout cache then stats a different path and rejects the checkout. Found by comparing parseIndex with git ls-files -z in a temporary repository while auditing the cache introduced in #32927.

Change

Preserve a leading U+FEFF in the index decoder: these bytes are filename data, not a text-stream byte-order marker. Extend the existing real-Git copied-checkout fixture with that filename.

Git index pathname:  \uFEFFconfig.ts
Before decoding:     config.ts       → missing stat → cache rejected
After decoding:      \uFEFFconfig.ts → exact stat   → index accepted

Here \uFEFF denotes the actual Unicode character in the filename.

Scope

Small fix for an obvious filename-decoding bug; no separate issue. One production line and the existing test fixture change, two files total. Targeted searches for the parser, index BOM/FEFF and checkout-cache BOM found no competing fix. #19371 fixes Git patch paths; #32927 introduces this separate binary-index reader.

Verification

  • The extended makes Git trust copied files without reading them test fails on base: expected \uFEFFconfig.ts, received config.ts. After the fix all 4/4 module tests pass, including copied-file trust without another clean-filter read and the existing rejection cases.

  • Native Git + real filesystem replay, before/after (U+FEFF is escaped for visibility):

    Before:

    {"indexVersion":2,"nativePath":"\\uFEFFconfig.ts","parsedPath":"config.ts","restatAccepted":false}

    After:

    {"indexVersion":2,"nativePath":"\\uFEFFconfig.ts","parsedPath":"\\uFEFFconfig.ts","restatAccepted":true}
  • fast-check: 80 index-path cases against native Git, covering v2/v3, Unicode and nested names. The generated cases replace names and checksums in a real Git index; Git independently reads each one.

  • Jazzer.js: baseline seed reproduces the bug, then 1,000 bounded valid-index cases pass after the fix. Stryker: 3/3 mutants killed on the decoder line; an initial external harness configuration failure was corrected before this result.

  • Scoped Fallow audit passes with inherited findings only; its judgment validates against the live graph. CodeScene checks both files: quality gates pass, no findings.

  • vp run check:changed --concurrency 1: passed after aligning stale local dependencies to the frozen lockfile (Cursor SDK 1.2.0 → required 1.3.1). Format, lint, both Knip passes, GraphQL, affected typechecks and selected tests pass. Normal commit hooks (format, lint and Knip): passed.

Verification ran on Linux with Node 24.15.0. The cache consumer is macOS-specific; this proves the index/filename/stat behavior, not a native APFS cache run or a speedup. No client UI changed.

Reviewed with sol-loop: 1 round with GPT-6.1 Sol on high. Sol verdict: approved.

Authored with GPT-6.1 Sol using Codex in T3 Code.

Sorry, something went wrong.

Uh oh!

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

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@Lucenx9
fix(server): preserve leading U+FEFF in Git index paths
698ebc5
Copilot AI balanced review requested due to automatic review settings November 15, 2026 09:21
Copilot AI reviewed Nov 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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.

Sorry, something went wrong.

Uh oh!

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

All reactions
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T09:24:32.344264Z 698ebc5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 15, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 698ebc5

Macroscope's review found this PR approvable — Preserves leading U+FEFF characters in Git index filenames so checkout-cache lookups use the actual paths. Existing validation and fallback safeguards remain unchanged, keeping the behavioral impact narrow.

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.

macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 15, 2026
View reviewed changes
@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The shared UTF-8 decoder now uses ignoreBOM: true. The Git index test fixture includes a tracked BOM-prefixed filename and expects that path in the parsed index.

Changes: Git index path decoding

Layer / File(s) Summary
Decode and test BOM-prefixed paths
apps/server/src/vcs/gitIndexStat.ts, apps/server/src/vcs/gitIndexStat.test.ts
The shared decoder uses ignoreBOM: true. The test fixture, mtime reset, and expected parsed paths include \uFEFFconfig.ts.

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

Change: Bug fix

Suggested reviewers: t3dotgg

Merge Risk: Minimal · up to 698eb

This fixes Git index path decoding so filenames starting with U+FEFF match the real path, which prevents the checkout cache from rejecting a valid checkout. The change is small and has test coverage. No merge-blocking risk is identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: a leading U+FEFF is preserved in Git index paths. The raw summary confirms the decoder change (ignoreBOM: true in gitIndexStat.ts) and the test fixture update. The title fo…
Description check Passed The description follows the template: it has Problem, Change, Scope, and Verification sections, and it gives the bug, the one-line decoder fix, the reason no issue is linked, and detailed verification…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: a leading U+FEFF is preserved in Git index paths. The raw summary confirms the decoder change (ignoreBOM: true in gitIndexStat.ts) and the test fixture update. The title follows the conventional commit format and is specific, so it passes.

Full details: Description check

Explanation

The description follows the template: it has Problem, Change, Scope, and Verification sections, and it gives the bug, the one-line decoder fix, the reason no issue is linked, and detailed verification with observed results. It notes what was not checked (native APFS cache run, macOS consumer). It also lists the author's model and harness, as the template asks. Minor point: the Scope section cites PR #32927 and #19371 but does not link a bug issue, and the author explains why none is needed. The description is complete enough to pass.

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: c8a1b5f
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 41d5494b-0a55-40e8-a92b-0a65c7d601c7
Commits

Reviewing files that changed from the base of the PR and between c8a1b5f and 698ebc5.

Files selected for processing: 2

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

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@Lucenx9 Lucenx9 closed this Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@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:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

2 participants

@Lucenx9
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.