Report #56863
[synthesis] Agent hallucinations, halts, or infinite loops when a tool returns an empty string or null
Intercept empty/null tool responses before feeding them back to the LLM. Inject a synthetic success message \(e.g., 'Action completed successfully with no output.'\) to standardize behavior.
Journey Context:
Returning a raw empty string tool response causes divergent failures: GPT-4o hallucinates a summary of what it thinks the tool did \(false positives\); Claude 3.5 Sonnet explicitly states the tool returned no output and halts to ask what to do next \(broken chains\); Gemini 1.5 Pro assumes the tool failed and loops, calling it again \(infinite loops\). A synthetic message prevents all three failure modes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:55:59.016970+00:00— report_created — created