Fix Unicode daemon session roots on Windows - #1876
Conversation
|
Thanks for opening this — it has been seen, and it is queued. This note is automated, but it is not a brush-off: it exists so you know where your PR stands instead of having to guess from silence. Current review status: working through a backlog. What that means for this PR, concretely:
Things that will genuinely speed it up whenever review does happen:
If this fixes a bug, a reproduction we can run is worth more than a description of the symptom. Thanks for contributing, and sorry in advance for the wait. |
|
Reviewed and cleared. The fix is right and it belongs to a bug class this repo already knows. Windows canonicalization hands back UTF-8, and passing that to a narrow Covering Latin, Cyrillic, CJK and Greek against an ASCII baseline is the right breadth — one non-ASCII case can pass by luck of the code page. Two things, one yours and one notYours: the commit has no sign-off. I checked with git's trailer parser rather than a text search, because a blank line before a trailer can hide it from git while Not yours: What failed is a cluster of preconditions in unrelated cases — I have seen that exact cluster today on an unrelated Swift extraction PR as well, so it is a property of that lane rather than of either change. It is ours to sort out, not yours, and I am recording it as such. Also please rebase — Sign-off plus a rebase and this is ready. Thanks for finding it at the right layer rather than special-casing the path. |
Signed-off-by: Ertan <ertan.kucukoglu@gmail.com>
31066f8 to
9d4ac2b
Compare
|
Merged as This is the same class as #1787 and #1816: Windows Unicode repository paths breaking because a narrow CRT call sits where a UTF-8-aware one belongs. Session-context roots were one more place it reached, and the daemon is a particularly bad one to lose them in, because the failure appears as "your project is not indexed" rather than as a path error. Before merging I confirmed the 22-commit gap to That is your second merge today, after #1836. |
Summary
On Windows, canonicalization returns UTF-8 paths, but daemon validation passed them to narrow
stat(). Non-ASCII working directories were therefore rejected before MCP initialization.Tests
scripts/test.sh --suites daemon_application SANITIZE=— 50 passed