Repository navigation
fix(cli): checksum --json exit code, unmerged config keys, UTF-8 panics, doc JSON - #1334
Merged
Merged
Conversation
…config, UTF-8-safe truncation, valid doc JSON - verify-checksums --json now returns an error (exit 1) on mismatch - merge [lifecycle], [aging].max_access_count, update_check and doctor_footer from config files - replace byte slicing in doc/edges output with char-boundary-safe char_prefix (no panics on non-ASCII) - doc move/update --json built with serde_json (valid JSON for quotes/backslashes) Refs #1331 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Oct 7, 2026
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
verify-checksums --jsonreturns an error (exit 1) on a checksum mismatch; previously it printedmatch:falseand exited 0.merge_from_filenow merges[lifecycle](all keys),[aging] max_access_count, and the top-levelupdate_check/doctor_footerswitches; they were silently ignored when set in a config file.output::char_prefix; all byte slices of user text indoclisting/search output andedgesoutput use it, so non-ASCII titles/slugs/ids no longer panic.doc move --jsonanddoc update --jsonare built withserde_json::json!instead offormat!, so quotes/backslashes in slug/title/parent produce valid JSON.Why
Validated findings from the Cora scan of v0.19.1 — see #1331. The checksum exit code is security-relevant for scripts; the config keys were advertised but dead; the slicing panics were reachable with any multibyte text.
Testing
cargo clippy --workspace --all-targetsclean;cargo test -p uteke-clipasses (87 + 3).char_prefixon ASCII and multibyte input.uteke --json verify-checksumsend to end: matching file → exit 0, wrong hash → exit 1.doc move/update --jsonoutput paths (mechanicalserde_json::json!swaps).Refs #1331
🤖 Generated with Claude Code