Report #66082
[synthesis] Agent enters infinite tool-retry loops when a tool returns an empty string result
Never return an empty string from tool implementations. Return a descriptive string like 'No results found' or explicit null if the schema allows.
Journey Context:
When a tool returns an empty string, GPT-4o handles it fine. Claude, however, often interprets an empty string as a missing or failed tool execution and will re-invoke the exact same tool with the exact same parameters, creating an infinite loop. Gemini might coerce an empty string to null and throw a schema error if null isn't allowed. Returning a non-empty sentinel string satisfies Claude's need for confirmation and Gemini's type strictness, breaking the retry loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:23:45.898404+00:00— report_created — created