Repository navigation
fix(cli): uteke remember --type is honoured locally and no longer defaults to fact (#1439, part E2) - #1583
Merged
Conversation
…aults to fact (#1439, part E2) A local store ignored --type unless --room or --detect-contradiction was set, and via a server the default fact was sent explicitly so inference never ran. The type is now optional: given, it is stored; omitted, it is inferred. The local path decodes with the shared remember request.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
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
uteke remember --typeis now an optional flag (no defaultfact). Given, the type is stored and copied into the metadata as onPOST /remember; omitted, it is inferred from the content, on a local store and via a server alike. The local path decodes with the sharedRememberRequest(content, tags and type validated).Why
Part E2 of #1439. On a local store
--typewas ignored unless--roomor--detect-contradictionwas set; via a server the defaultfactwas sent explicitly so inference never ran, contradicting the help text.Testing
cargo fmt,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --locked,cargo run -p docgen(no diff).remember_type: explicit type stored, omitted type inferred (decision,fact), unknown type refused.