Repository navigation
fix(cli): keep doctor snapshots consistent and read-only - #1015
Conversation
Wait briefly for active mutations and collect local installation, journal and integrity findings consistently. Release before Directory requests and output, while preserving read-only state and existing recovery diagnostics.
|
Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here. So far, Strix has reviewed 392 pull requests, surfaced 113 security issues (1 critical/high) and blocked 3 risky merges across this workspace. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 39 minutes. View limit details
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. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1015 +/- ##
==========================================
+ Coverage 63.29% 63.36% +0.06%
==========================================
Files 2267 2274 +7
Lines 136179 136562 +383
==========================================
+ Hits 86196 86534 +338
- Misses 37568 37587 +19
- Partials 12415 12441 +26 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Doctor could read state, journals and owned/native integrity at different moments during a concurrent operation. Taking the ordinary mutation lock made the snapshot coherent but created/chmodded paths and rewrote lock metadata, which broke the read-only contract.
Changes
The last update also makes the failing OpenCode collision E2E diagnosable. On the previous head, the macOS native run passed initial installation and version update but did not offer the expected MCP tool after same-version refresh. Existing output did not identify the reason.
The same native invocation now uses supported debug log flags. It retains the selected C config file, redacted native diagnostics and capped fixed method/stage/405 facts for non-POST MCP requests. These are test diagnostics only. All 17 original assertions, the 90-second timeout, cwd/environment, one native invocation and existing supervision are preserved. The 128 KiB limit applies to retained output after
CombinedOutput; it is not a live process-output cap. A selected-file snapshot is not an effective native configuration observation.Current head:
d83fc3591ac4b7ba82699ab737eaf066b37d4a3f, tree56c4c1b659fe1981bfd3d376e8494182486dca5b, parentdf6e8b52b322f2e478066ce04461b67dd49be494. The diagnostic follow-up changes two E2E files, preserving all 8,119 other parent leaves.Verification
df6e8b52, all three terminal jobs passed. The macOS run includes the CLI command suites and terminal selection/review/resilience harness. The prior local CLI compile was killed before tests began; it remains unqualified.Release Impact
No release, new state engine, feature flag, relaxed assertion, lint exemption, frozen VS Code change or added workflow.