feat(cli): add restart-based profile switching to /profile - #6753
feat(cli): add restart-based profile switching to /profile#6753stephenschoettler wants to merge 2 commits into
Conversation
|
Manual verification is now complete. Confirmed in the interactive Hermes CLI:
So the focused pytest coverage and a real interactive smoke test are both green. |
|
Ran the full test suite locally with Result:
The failures appear to be pre-existing / unrelated to this
The targeted tests for this PR still pass, and manual interactive verification of |
6eec433 to
81d2d45
Compare
|
Follow-up: I found the branch had picked up unrelated context-engine commits in its history. I cleaned the PR branch and force-updated it so the diff is now limited to the intended files only:
Targeted verification after cleanup:
Given the cleaned diff, the unrelated full-suite failures do not appear to come from this |
81d2d45 to
c794878
Compare
c794878 to
540a218
Compare
|
Closing this as shelved cleanup. The branch still represents restart-based interactive If we decide we still want CLI profile switching, it should be rebuilt fresh against current startup/profile semantics rather than keeping this old branch open. |
Summary
/profileslash command to support listing and switching profilesHERMES_HOMEmutation/profilebehaviors in the slash-command reference and profiles guideWhy
/profilealready existed but only exposed status, leaving a clear UX gap for people using multiple Hermes profilesExisting work checked
/profileswitchingHow to test
python -m pytest tests/hermes_cli/test_commands.py tests/hermes_cli/test_profiles.py tests/test_cli_profile_command.py -q -o addopts=''/profile/profile list/profile use <name>/profile <name>/profile <current-profile>/profile use/profile list extraDetails
/profilenow shows the active profile using profile helpers instead of inferring from path shape alone/profile listprints available profiles and marks the active one/profile use <name>and/profile <name>set the sticky profile, then restart Hermes with--profile <name>/profilelist/switch flows and note restart-on-switch behaviorPlatforms tested
Checklist
Code
feat(cli): ...,docs(cli): ...)pytest tests/ -qand all tests passpython -m pytest tests/hermes_cli/test_commands.py tests/hermes_cli/test_profiles.py tests/test_cli_profile_command.py -q -o addopts=''Documentation & Housekeeping
website/docs/reference/slash-commands.md,website/docs/user-guide/profiles.md)cli-config.yaml.exampleif needed — N/ACONTRIBUTING.mdorAGENTS.mdif needed — N/AScope notes
/profileswitching remains out of scope.