Report #71801
[synthesis] Model crashes or loops when a tool returns an empty or null result
Never return an empty string or null to GPT-4o as a tool result; return a JSON object like \{'status': 'success', 'data': \[\]\}. Claude handles empty strings gracefully but may hallucinate context if null is returned without explanation.
Journey Context:
GPT-4o interprets an empty tool response as an error or omission and will often retry the tool or apologize. Claude interprets an empty response as 'no data found' but might fill the void with assumptions. Explicitly structured empty states prevent both failure modes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T03:05:50.723592+00:00— report_created — created