Report #16761
[agent\_craft] Agent loops infinitely because tool output was truncated and it keeps repeating the same failing command
When truncating tool outputs, append a highly visible marker \(e.g., '\[OUTPUT TRUNCATED\]'\) and instruct the agent to modify its command \(e.g., add pagination, narrow search\) rather than retrying the exact same command.
Journey Context:
When a command returns too much data, agents often silently truncate it or just cut the string. The agent then doesn't understand why it failed, repeats the command, and hits the same truncation. Explicitly signaling truncation and providing a recovery heuristic breaks the loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:40:41.694510+00:00— report_created — created