fix(tools): read POSIX drive paths on Windows#111624
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 19, 2026, 11:43 PM ET / July 20, 2026, 03:43 UTC. Summary PR surface: Source +19, Tests +46. Total +65 across 3 files. Reproducibility: yes. at source level: current-main Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Copy recommended automerge instructionNext step before merge
Security Review detailsBest possible solution: Merge the single shared normalizer if the final merge result preserves the stated platform gate and path exclusions, then let GitHub close the linked bug through the PR's existing closing reference. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current-main Is this the best way to solve the issue? Yes. A platform-gated conversion at the shared file-tool path boundary is narrower and more maintainable than separate read, edit, and write conversions, provided unsupported POSIX and UNC paths stay unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 990916c6ac87. Label changesLabel justifications:
Evidence reviewedPR surface: Source +19, Tests +46. Total +65 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Closes #111620
What Problem This Solves
Fixes an issue where native Windows users could not use agent file tools with drive paths copied or emitted by Git Bash, Cygwin, or WSL because existing files were reported as missing.
Why This Change Was Made
Recognized
/c/...,/cygdrive/c/..., and/mnt/c/...drive forms are normalized once at the shared file-tool path boundary on native Windows. The conversion is platform-gated and leaves ordinary POSIX paths and UNC paths unchanged.User Impact
Windows users can pass these POSIX drive paths directly to read, edit, and write workflows without manually rewriting them as
C:\...paths.Evidence
Before, the real read tool consistently failed against an existing file:
After this change, the same
createReadToolDefinitionprobe read the existing file successfully for all three input forms.Focused validation:
Additional checks:
oxfmt --check: cleanoxlint --type-aware: cleangit diff --check: cleanpnpm deadcode:dependencies: cleanedit.test.tsreproduces unchanged on the unmodified base checkout.