Skip to content

feat(cli): show the serve profile in tole sessions and tole doctor (#740) - #887

Merged
ajianaz merged 2 commits into
developfrom
feat/740-sessions-profile-doctor
Nov 17, 2026
Merged

ajianaz merged 2 commits into
developfrom
feat/740-sessions-profile-doctor

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What

tole sessions shows the serve profile each session recorded, and tole doctor lists the serve profiles of the user config by name. This finishes #740.

Why

#885 added the per-session profile to tole serve and GET /sessions. The CLI side was left: seeing which profile a session runs under, and which profiles a daemon can offer.

Changes

  • tole sessions: a profile column, only when some listed session recorded one. It reads the fact/profile register through the existing serve_support::profiles::recorded() and the new Recorded::label(). A malformed recorded name shows as ?, never as written. Without any profile the output is unchanged. sessions has 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: CHANGELOG, docs/epics.md ([PLAN] serve: per-session profile on POST /sessions (+resume) — enabler personal fleet #740 fully done), README, docs/mobile-control.md.
  • Not in this PR: tole sessions --all and --tree do 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

  • New real-binary tests (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.
  • Each rule was mutated and the matching test failed each time (invalid name hidden, column always shown, wrong placeholder in the cell, doctor call removed, allow list leaked).
  • An independent review reported NO BLOCKER; its two test notes (a vacuous - 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.
  • scripts/review-local.sh: not run (no LLM key here).

Closes #740

)

tole sessions adds a profile column when a listed session recorded one
(a malformed recorded name shows as ?). tole doctor lists the user
config's profiles by name, room and allow count; nothing is printed
without profiles.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 4bcb161 into develop Nov 17, 2026
23 checks passed
@ajianaz
ajianaz deleted the feat/740-sessions-profile-doctor branch November 20, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PLAN] serve: per-session profile on POST /sessions (+resume) — enabler personal fleet

2 participants