When using Hermes webui, if the default agent is "awen" and I switch to "ayan" via the dropdown, the UI correctly shows "ayan" as the active agent. However, the session file is written to the wrong profile directory.
Steps to reproduce
1. Open Hermes webui (default agent: awen)
2. Use the agent dropdown to switch to "ayan"
3. The UI correctly shows "ayan" as the active agent
4. Send a message and end the session
5. Check the session file — it has "profile": "ayan" but is stored in the awen profile directory
Expected behavior
Session should be saved to ~/.hermes/profiles/ayan/sessions/ when "ayan" is selected.
Actual behavior
Session is saved to ~/.hermes/profiles/awen/sessions/ despite showing "ayan" in the UI.
Environment
- Hermes version: 0.11.0
- WebUI accessed via browser
Description