fix(agent): user copy for the session_row_missing persistence cause

Without entries in _STORAGE_FAILURES and _PERSISTENCE_CAUSE_EXPLANATIONS a
failed heal fell back to the generic disk/lock advice, which sends users
chasing the wrong problem.
This commit is contained in:
kshitijk4poor
2026-09-26 18:26:13 +05:30
committed by kshitij
parent d3faaee370
commit 2d70f583da
2 changed files with 11 additions and 0 deletions

View File

@@ -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)",