You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Repeated automatic context compaction after every prompt/task. #18827
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 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
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.
Activity
github-actions commentedon Apr 21, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
dalki-bot commentedon Jul 21, 2026
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:
Expected behavior:
Environment:
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.