Repository navigation
fix(spend): classify synced state paths with POSIX rules on every host - #6414
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe synced state location module now uses POSIX path operations on every host. A test checks that a Darwin probe classifies a Documents path as ChangesSynced state path handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to No actionable production issue is established in this change. POSIX path classification remains limited to macOS, so the change is ready to merge subject to normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
|
Maintainer integration record (MAINTAINERS.md, dev-only)
|
Summary
Fixes the dev Cross-platform CI failure in
windows 5/9(run 36891940246 ondev8a3a7762fe). Five cases intests/lib/synced-state-location.test.tsfrom #6398 receivedundefinedwhere they expectedicloud-drive,file-provideroricloud-desktop-documents.The detector classifies macOS paths only and returns early unless the platform is
darwin. The tests injectplatform: "darwin"with POSIX fixtures, so on a Windows host the detection ran, but it built and resolved paths with the host'snode:path. That produced\\separators and drive-letter prefixes that never matched the fixture paths. The module now usesnode:path'sposiximplementation. On macOS, the only platform where detection runs,posixis the native implementation, so runtime behavior is unchanged. On Windows and Linux the function still returns before touching any path.A new case checks that every path the detector probes stays in POSIX form, with no backslash, even when the host is Windows.
Verification
devCross-platform CI run, not by this PR's checks.git diff --check,bun run scripts/privacy-scan.tsandbun run structure:checkpass.Checklist
Summary by CodeRabbit