The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(state): drop the table-exists probe made dead by the early return above it
kshitijk4poor19c973402156
diff --git a/hermes_state_schema.py b/hermes_state_schema.pyindex 85e9f21d856..da3914036c1 100644--- a/hermes_state_schema.py+++ b/hermes_state_schema.py@@ -301,8 +301,7 @@ class SessionSchemaMixin:names = _FTS_BASE_TRIGGERS + (_FTS_TRIGRAM_TRIGGERS if legacy and trigram_present else ())has_messages = cursor.execute("SELECT 1 FROM messages LIMIT 1").fetchone() is not Noneself._fts_tool_prefix_migration_requires_rebuild = bool(- self._sqlite_table_exists(cursor, "messages_fts") and has_messages- and self._fts_triggers_missing(cursor, names)+ has_messages and self._fts_triggers_missing(cursor, names))cursor.execute("SAVEPOINT bounded_tool_fts")try: