Context compaction triggered after tool calls in a fresh session

Open 💬 4 comments Opened Feb 8, 2026 by evarande

What version of the Codex App are you using (From “About Codex” dialog)?

260206.1448 (565)

What subscription do you have?

Pro

What issue are you seeing?

After some tool calls like playwright MCP browser_take_screenshot tool, figma MCP get_screenshot tool, figma MCP get_design_context tool and some other tools from figma or playwright MCPs context compaction is triggered even in fresh sessions with 98% context left

Uploaded thread ID: 019c3c28-e230-72a2-99b7-3438b4f66054

What steps can reproduce the bug?

To reproduce use prompt like

use figma mcp to analyze this figma design:
<link to figma frame here>
and tell me what you see here

The result will be:

Called figma.get_screenshot
Called figma.get_metadata
Context compacted

What is the expected behavior?

Context should not be auto compacted unless compaction threshold is exceeded

Additional information

This is reproducible both in app and in cli. Initially I though that images returned by tools might be too large, but it doesn't seem to be the case: in Codex app I can copy get_screenshot tool image output, if I send it as a regular image it does not trigger auto compaction

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗