Report #71105
[synthesis] Agent halts or loops indefinitely because a tool returns an empty string or null, which the agent interprets as an error or missing data
Ensure all tool responses return a meaningful, explicit success message instead of relying on void or null returns, and add explicit handling for empty states in the system prompt.
Journey Context:
Programmers often write tools that return void or None on success. Humans infer success from the absence of an error. LLMs, however, often interpret an empty or null tool response as a failure or a lack of information, prompting them to retry the operation or try a different approach. This leads to infinite loops or abandoned tasks. The insight is that LLMs require explicit positive confirmation. Tool returns must be designed for the LLM, not just wrapping existing developer APIs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:55:34.192653+00:00— report_created — created