Bug Description
When calling session_search(profile="novel"), it returns sessions
from the blog-writer profile instead of the novel profile's own
sessions. Both profiles have their own state.db databases with
correct session data, but the session_search tool appears to be
resolving the wrong database path when a profile name is passed.
Environment
- OS: Windows 10
- Hermes version: 0.18.2 (appeared after auto-update to 0.18.x)
- Profiles affected: at least two (novel, blog-writer)
- Installation: Native desktop app (Electron)
Steps to Reproduce
- Have two profiles with session history
- Switch to profile A (e.g. blog-writer)
- session_search() → correctly returns A's sessions
- session_search(profile="B") → returns A's sessions instead of B's
Expected Behavior
session_search(profile="novel") should return 10 sessions from
profiles/novel/state.db.
Actual Behavior
Returns current profile's sessions, ignoring the profile parameter.
profiles/novel/state.db exists with 10 sessions / 377 messages
intact — data verified via direct SQLite queries.
Notes
- Pre-update snapshot created automatically (data safety net worked)
- state.db files not corrupted
- The profile parameter appears resolved to current profile's path
instead of the requested one
Bug Description
When calling session_search(profile="novel"), it returns sessions
from the blog-writer profile instead of the novel profile's own
sessions. Both profiles have their own state.db databases with
correct session data, but the session_search tool appears to be
resolving the wrong database path when a profile name is passed.
Environment
Steps to Reproduce
Expected Behavior
session_search(profile="novel") should return 10 sessions from
profiles/novel/state.db.
Actual Behavior
Returns current profile's sessions, ignoring the profile parameter.
profiles/novel/state.db exists with 10 sessions / 377 messages
intact — data verified via direct SQLite queries.
Notes
instead of the requested one