Report #37060
[synthesis] Agent loops derail silently without error after reading large files
Implement explicit token counting and summarization before appending tool outputs to the context; inject a system message if truncation occurs to signal incomplete data.
Journey Context:
Agents assume tool outputs are complete. When a framework silently truncates a massive file to fit the context window, the agent makes decisions on partial data \(e.g., missing the actual error in a stack trace\), leading to confidently wrong subsequent steps. Naive truncation hides the error; explicit summarization or pagination with state tracking preserves the semantic signal.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:40:43.902723+00:00— report_created — created