Repository navigation
feat(cli): show the serve profile in tole sessions and tole doctor (#740) - #887
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
tole sessionsshows the serve profile each session recorded, andtole doctorlists the serve profiles of the user config by name. This finishes #740.Why
#885 added the per-session profile to
tole serveandGET /sessions. The CLI side was left: seeing which profile a session runs under, and which profiles a daemon can offer.Changes
tole sessions: aprofilecolumn, only when some listed session recorded one. It reads thefact/profileregister through the existingserve_support::profiles::recorded()and the newRecorded::label(). A malformed recorded name shows as?, never as written. Without any profile the output is unchanged.sessionshas no--json, so there is no other shape to extend.tole doctor:serve profiles: name (room <room>, <n> allow), ..., from the user config only. It carries names, rooms and counts, never persona text, allow patterns, models or secrets. Nothing is printed when no profile is defined or the user config is absent or broken.docs/epics.md([PLAN] serve: per-session profile on POST /sessions (+resume) — enabler personal fleet #740 fully done), README,docs/mobile-control.md.tole sessions --alland--treedo not show the profile. The doctor line shows the room and allow count instead of a free-text descriptor, because profiles have no description field and adding one is a config change.Testing
tests/sessions_profile_e2e.rs): the no-profile listing is pinned byte for byte (header and row); with profiles, the profile cell is checked by column position (name,?for a tampered name with escape and newline,-) and the tampered text is never echoed; doctor is silent without profiles, prints the exact line with profiles, and carries no persona or allow text. New unit test for the doctor line.-assertion, and the no-profile test not pinned byte for byte) were fixed.cargo fmt --all,cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspace,cargo check -p tole-core --no-default-features --tests,cargo check -p tole-cli --no-default-features: all clean.cora review --staged --no-llm: no issues found.Closes #740