Repository navigation
fix: CLI JSON safety and Windows vector race condition (#981 #982) - #984
Merged
Merged
Conversation
- Replace 5 manual format!() JSON constructions with serde_json::json!() in doc.rs (2) and mod.rs (3) — prevents corrupted output when slugs/ids contain quotes or backslashes (#981) - Replace unlock-rename-relock pattern in Windows save() with retry- based rename using exponential backoff — eliminates race window where another process could access the partially-written file (#982)
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
) - Replace 5 manual format!() JSON constructions with serde_json::json!() in doc.rs (2) and mod.rs (3) — prevents corrupted output when slugs/ids contain quotes or backslashes (#981) - Replace unlock-rename-relock pattern in Windows save() with retry- based rename using exponential backoff — eliminates race window where another process could access the partially-written file (#982) Co-authored-by: ajianaz <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Closes the last 2 remaining issues from cora re-scan: manual JSON construction and Windows cross-process race condition.
Why
Issues #981 and #982 were deferred in PR #983 as lower priority. This PR closes them out — completing all 10 issues from the cora scan audit.
Changes
#981 — CLI manual JSON construction
format!()string interpolation withserde_json::json!()for document create and delete JSON outputprintln!("{{...}}")withserde_json::json!()for pin, unpin, and importance JSON output#982 — Windows vector race condition
Testing
cargo fmt --allpasscargo clippy --workspace --all-targets— 0 warningscargo test --workspace— 476 passed, 0 failed