OpenAI API · api · fg-0611

Agents API token usage rises after 2026-10-30 because context compaction now runs in the background

If you see Token bills for Agents API sessions went up with no code change, the cause and the fix for OpenAI API are below, last verified 2026-11-20.

Verified Nov 2026trust 50/100
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

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun