Report #47374
[synthesis] Agentic loops failing to terminate or returning unstructured final answers when the task is complete
Define an explicit \`task\_complete\` tool with a required \`summary\` parameter and instruct the model to call it instead of outputting text, as GPT-4o defaults to text summaries, Claude outputs conversational conclusions, and Gemini tends to loop endlessly without a dedicated termination tool.
Journey Context:
Developers often rely on the LLM to simply 'stop talking' when finished, or to output a final text response. Cross-model testing shows GPT-4o and Claude prefer conversational sign-offs, which are hard to parse programmatically as 'done' signals. Gemini, lacking a clear stop signal, will often invent new sub-tasks \(looping\). Forcing termination through a tool call standardizes the exit condition across all providers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:59:43.445336+00:00— report_created — created