fix: add api_content to _CONVERSATION_ROW_COLUMNS for get_resume_conversations

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 <qlskssk@gmail.com>
This commit is contained in:
kshitijk4poor 2026-07-19 08:20:52 +05:30 committed by kshitij
parent 39efad89a8
commit c7035ef252

View file

@ -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(