The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: insights without a session store prints the localized no-data line
Tekniume76b40874186
diff --git a/hermes_cli/main_agent_cmds.py b/hermes_cli/main_agent_cmds.pyindex 04c861f8dca..000943e965d 100644--- a/hermes_cli/main_agent_cmds.py+++ b/hermes_cli/main_agent_cmds.py@@ -114,8 +114,8 @@ def cmd_insights(args):from hermes_cli.config import get_hermes_homepath = get_hermes_home() / "state.db"if not path.exists():- source = f" (source: {args.source})" if args.source else ""- print(f" No sessions found in the last {args.days} days{source}.")+ from agent.i18n import t+ print(f" {t('cli.insights.no_session_data')}")returndb = SessionDB(db_path=path, read_only=True)engine = InsightsEngine(db)diff --git a/tests/hermes_cli/test_cli_insights_command.py b/tests/hermes_cli/test_cli_insights_command.pyindex 4f7eb98fbf3..804e4f0af84 100644--- a/tests/hermes_cli/test_cli_insights_command.py+++ b/tests/hermes_cli/test_cli_insights_command.py@@ -63,7 +63,7 @@ def test_insights_skips_open_when_store_missing(capsys, existing_store):with patch("hermes_state.SessionDB") as ctor:run()ctor.assert_not_called()- assert "No sessions found in the last" in capsys.readouterr().out+ assert "No session data yet." in capsys.readouterr().outdef test_show_insights_opens_read_only(existing_store):