Report #74144
[agent\_craft] Truncating long files without signaling causing the model to hallucinate that the truncated content is complete
Insert an explicit marker exactly at the truncation point \(e.g., \) rather than at the end, so the model knows the content continues but is unseen
Journey Context:
When context limits are hit, naive truncation cuts off the end of a file or tool output and presents it as if it's the complete content. The model then reasons based on incomplete data, often hallucinating that a function ends where the truncation happened, or missing critical error messages. The fix is transparency: explicitly mark where content was removed. Crucially, the marker must be placed at the exact truncation boundary, not appended at the end, so the model sees the interruption immediately. This triggers the model's 'incomplete information' reasoning mode rather than 'complete data' mode.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:02:57.936874+00:00— report_created — created