When the entire session history is a single Turn (e.g. one user message followed by a massive tool response), findSafeBoundary returns 0 and forceCompression previously did nothing — leaving the agent stuck in a context-exceeded retry loop. Now falls back to keeping only the most recent user message when no safe Turn boundary exists. This breaks Turn atomicity as a last resort but guarantees the agent can recover. Also updates docs/agent-refactor/context.md to document this behavior. Ref #1490 |
||
|---|---|---|
| .. | ||
| agent-refactor | ||
| channels | ||
| design | ||
| migration | ||
| ANTIGRAVITY_AUTH.md | ||
| ANTIGRAVITY_USAGE.md | ||
| debug.md | ||
| steering.md | ||
| tools_configuration.md | ||
| troubleshooting.md | ||