Skip to content

webui: session saved to wrong profile when switching agents #16582

@vincentyang2026

Description

@vincentyang2026

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existsarea/configConfig system, migrations, profilescomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions