diff --git a/api/core/agent/base_agent_runner.py b/api/core/agent/base_agent_runner.py index 69ec80e247..13c4e4c3d1 100644 --- a/api/core/agent/base_agent_runner.py +++ b/api/core/agent/base_agent_runner.py @@ -329,6 +329,7 @@ class BaseAgentRunner(AppRunner): ) if not updated_agent_thought: raise ValueError("agent thought not found") + agent_thought = updated_agent_thought if thought: agent_thought.thought = thought