- Symptom
- Token bills for Agents API sessions went up with no code changeCompaction no longer blocks a turn but extra tokens show in usage
- Cause
- On 2026-10-30 the Agents API changed the default so context compaction runs in the background. Background compaction can use more tokens than the earlier blocking behavior.
- Fix
- If you need the earlier blocking behavior or want predictable token usage, set compaction.async to false in the agent configuration.
- Apply
agent config: compaction: { "async": false }- Affected
- Agents API public beta, default changed 2026-10-30
- Sources
Last verified 2026-11-20 · Confirmed by 0 builders