The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(agent): user copy for the session_row_missing persistence cause
kshitijk4poor2d70f583da2c
diff --git a/agent/turn_explainers.py b/agent/turn_explainers.pyindex c07b28a5ef0..360fc1f68bc 100644--- a/agent/turn_explainers.py+++ b/agent/turn_explainers.py@@ -107,6 +107,12 @@ _PERSISTENCE_CAUSE_EXPLANATIONS: Dict[str, str] = {"for the other process to finish, then send your message ""again."),+ "session_row_missing": (+ "this session was deleted from storage while the chat was still open, "+ "and Hermes could not recreate it, so this message was not saved. "+ "Send your message again; if it keeps failing, run "+ "`hermes {profile_arg}doctor`."+ ),"locked": ("the turn was stopped because session storage was busy ""(another Hermes process was writing to the state "diff --git a/hermes_state_user_copy.py b/hermes_state_user_copy.pyindex 2fecd87939a..c2314bcc9cd 100644--- a/hermes_state_user_copy.py+++ b/hermes_state_user_copy.py@@ -45,6 +45,11 @@ _STORAGE_FAILURES: dict[str, tuple[str, str, str]] = {"the session database file is damaged",_DOCTOR + " Recovery: `hermes {profile_arg}sessions recover --source <state.db> --inspect-only`.",),+ "session_row_missing": (+ "storage_session_missing",+ "this session's database row was deleted while the chat was still open and could not be recreated",+ "Try again; if it persists, run `hermes {profile_arg}doctor`.",+ ),"fts_index": ("storage_index_corrupt","the session search index is damaged (the messages themselves are intact)",