Repository navigation
fix(uteke): accept category:title room ids in uteke_recall and uteke_document - #719
Merged
Merged
Conversation
🔍 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_recallanduteke_documentnow accept uteke 0.24category:titleroom ids (for exampleproject:qa-check) as well as today's ids.Why
Both tools only allowed
[a-zA-Z0-9-_], so any room id with a colon was refused before uteke was spawned and tole could not create or use a new-style room.Changes
validate_room_idincrates/tole-core/src/uteke.rs, used by both call sites. It accepts the legacy charset unchanged (no leading hyphen, non-empty) and uteke'scategory:titlegrammar, mirrored from uteke'sroom_naming.rs:^[a-z][a-z0-9-]*:[a-z0-9][a-z0-9._-]*$, exactly one colon, at most 64 bytes.-x,--json,-a:b), a second colon, uppercase in the new form, a leading or trailing colon and over-long colon ids are refused. Legacy ids keep today's behaviour (no new length cap).room recall/room add-document; a colon id always starts with a letter, so it cannot become a flag.docs/architecture.mdand a CHANGELOG entry under 0.11.0 / Fixed. The built-inrepo-*,profile-*andagent-*rooms keep their names; migration is a follow-up (uteke room aliases keep old ids working).Testing
cargo fmt,cargo clippy --workspace --all-targets --all-features -- -D warnings,cargo test --workspaceandcargo test -p tole-core --no-default-featurespass.Closes #716