diff --git a/backend/agentpress/thread_manager.py b/backend/agentpress/thread_manager.py index 6dc07765..61bb1edf 100644 --- a/backend/agentpress/thread_manager.py +++ b/backend/agentpress/thread_manager.py @@ -120,7 +120,7 @@ class ThreadManager: try: # result = await client.rpc('get_llm_formatted_messages', {'p_thread_id': thread_id}).execute() - result = await client.table('messages').select('*').eq('thread_id', thread_id).eq('is_llm_message', True).order('created_at').execute() + result = await client.table('messages').select('message_id, content').eq('thread_id', thread_id).eq('is_llm_message', True).order('created_at').execute() # Parse the returned data which might be stringified JSON if not result.data: