Skip to content

Repeated automatic context compaction after every prompt/task. #18827

Open

Description

@jlekerli-source

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

Activity

  1. added
    app
    on Apr 21, 2026
  2. added
    bug
    context
    on Apr 21, 2026
  3. github-actions commented on Apr 21, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. removed
    app
    on Apr 21, 2026
  5. dalki-bot commented on Jul 21, 2026

    @dalki-bot

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcontext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions