get_cli_sessions() and get_cli_session_messages() were using HERMES_HOME (the profile the server was launched under) to find state.db. This meant a server launched under the webui profile would read webui's state.db (full of cron runs) instead of the user's actual CLI sessions. Fix: use get_active_hermes_home() which tracks whichever profile the user has selected in the UI. This means: - default profile active -> reads ~/.hermes/state.db (interactive CLI) - camanji profile active -> reads ~/.hermes/profiles/camanji/state.db Falls back to HERMES_HOME env var if profiles module unavailable. Co-authored-by: Nathan Esquenazi <nesquena@gmail.com>
12 KiB
12 KiB