The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(state): route no-more-rows retries through the shared patience helper; add contributor mappings
Tekniume008b62a7207
diff --git a/contributors/emails/[email protected] b/contributors/emails/[email protected]new file mode 100644index 00000000000..9ee44b73e6e--- /dev/null+++ b/contributors/emails/[email protected]@@ -0,0 +1 @@+Dannoudiff --git a/contributors/emails/[email protected] b/contributors/emails/[email protected]new file mode 100644index 00000000000..53ff409dd6b--- /dev/null+++ b/contributors/emails/[email protected]@@ -0,0 +1 @@+trippyogidiff --git a/hermes_state.py b/hermes_state.pyindex 22e2d052676..4f7b6453461 100644--- a/hermes_state.py+++ b/hermes_state.py@@ -2471,12 +2471,12 @@ class SessionDB(SessionSearchMixin, SessionSchemaMixin, SessionPortabilityMixin)"a large WAL checkpoint, or an older pre-update ""process; the database itself is healthy)") from exc- if _is_no_more_rows(exc) and _sleep_before_retry():+ if _is_no_more_rows(exc) and self._sleep_before_write_retry(deadline, patience_s):continue# Non-lock error or patience exhausted — propagate.raiseexcept sqlite3.DatabaseError as exc:- if _is_no_more_rows(exc) and _sleep_before_retry():+ if _is_no_more_rows(exc) and self._sleep_before_write_retry(deadline, patience_s):continue# Corrupt FTS shadow tables make every write raise the# malformed/corrupt error class through the FTS sync triggers@@ -2496,7 +2496,7 @@ class SessionDB(SessionSearchMixin, SessionSchemaMixin, SessionPortabilityMixin)# subclass) or another sqlite3.Error class outside the two# handlers above. Message-scoped: anything else propagates# untouched.- if _is_no_more_rows(exc) and _sleep_before_retry():+ if _is_no_more_rows(exc) and self._sleep_before_write_retry(deadline, patience_s):continueraise