test: make workspace-load symlink tests compatible with Windows#97437
test: make workspace-load symlink tests compatible with Windows#97437aniruddhaadak80 wants to merge 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 28, 2026, 3:18 AM ET / 07:18 UTC. Summary PR surface: Tests +47. Total +47 across 1 file. Reproducibility: yes. from source inspection: on Windows, the new directory capability probe uses Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land a corrected test-only change that uses a consistent symlink capability/type helper for every guarded directory link, then attach redacted Windows terminal proof showing the workspace-load test file runs or skips as intended. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: on Windows, the new directory capability probe uses Is this the best way to solve the issue? No. The narrow maintainable fix is to align the remaining Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9c95abd49d45. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +47. Total +47 across 1 file. 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
|
What Problem This Solves
Fixes an issue where several workspace-load symlink boundary tests were unconditionally skipped on Windows environments, even if the environment supports creating file and directory symlinks (like with Developer Mode enabled).
Why This Change Was Made
Replaces the hardcoded
process.platform !== "win32"skips with dynamic capability checks (canCreateDirectorySymlinksandcanCreateFileSymlinks). If file and directory symlinks are supported by the environment, the tests execute. Otherwise, they skip gracefully while keeping coverage active on capable hosts.User Impact
No user-visible product impact. This improves test portability and preserves regression coverage on capable Windows environments.
Evidence
vitest run src/skills/loading/workspace-load.test.tspasses.