Skip to content

Decode quoted Git paths in path-only diff renames - #1379

Merged
max-sixty merged 2 commits into
mainfrom
fix/ci-36358626443
Sep 28, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/ci-36358626443

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The main nightly run failed the path-only rename browser case. Git writes the tabbed filename as a quoted C-style path, while Pierre returns its decoded path. Leaf compared those two forms directly and rejected an otherwise valid four-line rename block. The widget now decodes the source paths before comparing them with Pierre's reading; the existing browser case checks the decoded names that the user sees.

The case failed locally before the change, then passed after it and in 18 concurrent repetitions. Pre-commit checks pass. The surrounding diff selection passed 18 cases and still fails two thread workflow-status cases also present in the main run; this PR does not change that workflow. The other nightly failures remain tracked in #1283, including published-site layout work in #1307.

Refs #1283.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A quoted path that begins with a UTF-8 BOM is decoded differently here and by Pierre: Pierre retains U+FEFF, while this decoder removes it. The valid four-line rename then fails the path equality check and the whole diff is refused. The manifest decoder also retains U+FEFF, so the two Leaf paths disagree.

Git path decoding now retains an initial UTF-8 BOM, matching Pierre and the manifest decoder. Extend the path-only rename browser case to assert the preserved path and the rendered row.
@max-sixty
max-sixty merged commit ec8593e into main Sep 28, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/ci-36358626443 branch September 28, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants