hermes - 💡(How to fix) Fix webui: session saved to wrong profile when switching agents [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#16582Fetched 2026-04-28 06:52:23
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×4commented ×1mentioned ×1subscribed ×1

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

Root Cause

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
RAW_BUFFERClick to expand / collapse

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

extent analysis

TL;DR

The issue can be resolved by ensuring the session file path is updated correctly when switching agents in the Hermes webui.

Guidance

  • Verify that the profile directory is being updated correctly in the session file when switching agents.
  • Check the code that handles agent switching to ensure it updates the session file path accordingly.
  • Investigate if there's a caching issue that's causing the session file to be written to the wrong profile directory.
  • Review the Hermes webui code to see if there's a specific function or method responsible for handling session file paths.

Example

No code snippet is provided as the issue doesn't contain specific code references.

Notes

The issue seems to be related to the Hermes webui's handling of agent switching and session file paths. Without access to the code, it's difficult to provide a more specific solution.

Recommendation

Apply a workaround by manually updating the session file path when switching agents, until a permanent fix is implemented. This is because the issue seems to be related to the webui's handling of agent switching, and a workaround can help mitigate the problem until a fix is available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING