Report #17518
[gotcha] Infinite reasoning loops caused by ambiguous tool error messages
Return structured, highly specific error messages in isError: true responses, including the exact failure reason and suggested corrective action. Never return generic 'Error' strings.
Journey Context:
When a tool fails with a vague error \(e.g., 'Command failed'\), the LLM attempts to retry with slight variations, entering an infinite loop. The LLM lacks the specific feedback to correct its input. By returning exact diagnostics \(e.g., 'Permission denied: write access required for /foo'\), the LLM can pivot its strategy immediately rather than guessing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:41:48.728846+00:00— report_created — created