STUPID-2026-0143
Cline silently installs a truncated post-compaction summary with no warning when the summary generation hits the output budget
Instruction given
No specific instruction triggers this — it occurs automatically whenever Cline's agentic context compaction runs during a long session, generating a summary of prior conversation history to free up context space.
Expected behavior
If summary generation is cut off before completing (an "incomplete" summary, as opposed to a fully empty one), Cline should warn the user and/or retry with a smaller input before installing it, or abort compaction and keep the full history, rather than silently treating a partial summary as equivalent to a complete one.
Actual behavior
In `core/src/extensions/context/agentic-compaction.ts`, `generateSummary` records a `SummaryGenerationResult.incompleteReason` when the summary is cut short, but `runAgenticCompaction` only checks whether the summary is completely empty (`if (!rawSummary)`) before installing it. A truncated-but-non-empty summary silently replaces the full conversation history with no warning anywhere, including the logs: as the reporter put it, "nothing in the logs distinguishes 'summary complete' from 'summary hit the output budget.'" A prior change (PR #13137) made this more likely to occur by applying the user's own max output tokens setting to summarizer requests, so a low setting can now truncate compaction summaries that previously would not have been affected. Another commenter (aldi949) noted the downstream risk: because the agent proceeds believing the installed summary is complete, "mandatory requirements can disappear" from the task state after compaction with nothing to signal that they were dropped.
Damage
No data loss or security impact is reported. The risk is silent context loss: after compaction, the agent's continuation note can "stop mid-thought" and the task can proceed on an incomplete record of prior requirements with no error surfaced to the user. As of this writing the issue remains open and unresolved — a second commenter (chenhz01) confirmed the problem, and the reporter opened three follow-up items (PR #14741, making truncation at least observable and adding one retry; issue #15005, on where a fidelity signal should live; and discussion #15006, requesting a user-visible marker) — but no maintainer has yet chosen a fix direction, and the reporter's own follow-up PR stops short of claiming the underlying requirements-loss risk is resolved.
Classification
- Agent
- Cline
- Failure mode
- Logic Error
- Root cause
- Logic Error
- Domain
- Other
- Source
- Github Issue
Related incidents
Get told when an agent breaks something
We document AI agent failures daily, severity-scored against a published scale. When one lands at 7.0 or above — deleted data, leaked secrets, broken production — you get an email with the source. When nothing does, you get nothing.
This database is callable over MCP — query it from inside your agent.