Repeated automatic context compaction after every prompt/task.

Open 💬 2 comments Opened Apr 21, 2026 by jlekerli-source
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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

Version 26.417.41555 (1858)

What subscription do you have?

Pro

What platform is your computer?

Darwin 25.4.0 arm64 arm

What issue are you seeing?

i am still haveing the contest issue now for over 9 hrs ????
how can this be - after every prompt triggers the autmatic contest window - i lost 16% of my weekly to this

Use this in the feedback box:

Repeated automatic context compaction after every prompt/task.

Codex is repeatedly hitting the context limit after nearly every single prompt or autonomous task. Even with normal usage, it runs for only about 15–20 seconds before it starts automatically compacting context again.

This has been happening continuously for around 9-10 hours in the same session and makes Codex extremely difficult to use. It seems to happen after almost every task, not just occasionally.

Please check whether this is a bug or an issue with my current session/account. I’ve included the current Codex session logs.

Keep Bug selected and leave Include current Codex session logs checked.

codex://threads/019da2e1-6ab2-7830-a27f-5403a9caa33b

019da2e1-6ab2-7830-a27f-5403a9caa33b

/Users/omarat-turkmani/Documents/Ringly

What steps can reproduce the bug?

Uploaded thread: 2bffb833-a020-45af-aeaa-35ab0ac3f752

Codex is repeatedly hitting the context limit after nearly every single prompt or autonomous task. Even with normal usage, it runs for only about 15–20 seconds before it starts automatically compacting context again.

What is the expected behavior?

if starts compacting after 1 task

Additional information

I would like a compensation for this - I lost 16-17% of my weekly usage and 9 hours fof work Kina wasted, thx

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 4 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #18136
  • #18720

Powered by Codex Action

dalki-bot · 1 month ago

I encountered what appears to be the same issue in the Codex desktop app on macOS 26.5.2 (Darwin 25F84).

During one long-running turn, the UI emitted “Context automatically compacted” repeatedly (roughly ten consecutive times) without meaningful new user input between compactions. A normal single auto-compaction would be expected because the thread is long; the abnormal behavior is that compaction immediately triggers again and appears to loop within the same turn.

Observed behavior:

  • A long thread reaches automatic compaction.
  • The app displays the automatic-compaction event repeatedly in succession.
  • The active task spends time compacting instead of continuing its response.
  • No thread ID or project/server details are included here for privacy.

Expected behavior:

  • Compact once, continue from the compacted state, and avoid another compaction until the context grows substantially again.

Environment:

  • Codex desktop app
  • macOS 26.5.2 (Build 25F84)
  • Apple Silicon

I have a screenshot showing the repeated events. I can provide the screenshot or private diagnostics if an OpenAI maintainer requests a safe upload channel.