The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(cli): observational `hermes sessions` readers open the store read-only once
teknium1f2e5970e3f2f
diff --git a/hermes_cli/sessions_cmd.py b/hermes_cli/sessions_cmd.pyindex 95bf874327f..da236693acc 100644--- a/hermes_cli/sessions_cmd.py+++ b/hermes_cli/sessions_cmd.py@@ -1001,8 +1001,6 @@ def cmd_sessions(args, sessions_parser=None):observational = action in _OBSERVATIONAL_DB_ACTIONS or (action == "export" and not deleting_export)# A served-profile process has no single default home: pass the store path explicitly.path = get_hermes_home() / "state.db"- if observational and not path.exists():- return _print_empty_store(action, args)try:db = SessionDB(db_path=path, read_only=observational)except Exception as e:diff --git a/tests/hermes_cli/test_observational_sessiondb_modes.py b/tests/hermes_cli/test_observational_sessiondb_modes.pyindex c8d88215072..e870b19be6b 100644--- a/tests/hermes_cli/test_observational_sessiondb_modes.py+++ b/tests/hermes_cli/test_observational_sessiondb_modes.py@@ -16,7 +16,10 @@ def test_observational_sessions_actions_open_a_read_only_store(monkeypatch, actisessions_cmd.cmd_sessions(Namespace(sessions_action=action))- factory.assert_called_once_with(read_only=True)+ # One read-only open; the store path is passed explicitly because a served-profile+ # process has no single default home.+ assert factory.call_count == 1+ assert factory.call_args.kwargs["read_only"] is Truedef test_sessions_observational_commands_on_missing_store_stay_empty(monkeypatch, tmp_path, capsys):