From c7035ef2520a56b62049df3f7a43bf4d19a5c201 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Sun, 19 Jul 2026 08:20:52 +0530 Subject: [PATCH] fix: add api_content to _CONVERSATION_ROW_COLUMNS for get_resume_conversations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PR added api_content to get_messages_as_conversation's inline SELECT but missed the shared _CONVERSATION_ROW_COLUMNS constant used by get_resume_conversations — _rows_to_conversation references row["api_content"] but the column wasn't in the SELECT, causing IndexError on resume-session tests. Co-authored-by: Soju06 --- hermes_state.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hermes_state.py b/hermes_state.py index c8caa9e1ef27..e45bf61e686b 100644 --- a/hermes_state.py +++ b/hermes_state.py @@ -4870,7 +4870,8 @@ class SessionDB: _CONVERSATION_ROW_COLUMNS = ( "role, content, tool_call_id, tool_calls, tool_name, effect_disposition, " "finish_reason, reasoning, reasoning_content, reasoning_details, " - "codex_reasoning_items, codex_message_items, platform_message_id, observed, timestamp" + "codex_reasoning_items, codex_message_items, platform_message_id, observed, timestamp, " + "api_content" ) def _rows_to_conversation(