Skip to content

Context compaction stalls and the session hangs after large tool outputs (codex-cli 0.74.0) #8402

Closed

Description

@BleedingDev

What version of Codex is running?

codex-cli 0.74.0

What subscription do you have?

Pro

Which model were you using?

GPT-5.2-Codex on xhigh

What platform is your computer?

Darwin 25.2.0 arm64 arm

What issue are you seeing?

In a long-running Codex CLI session with context compaction enabled, the assistant became unresponsive after large tool outputs and repeated “Continue” prompts. There were no new tool calls or assistant messages for about 1.5 hours. No explicit error was shown; the session appeared to be stuck during or after context compaction.

What steps can reproduce the bug?

Uploaded thread: 019b3a9f-c468-7143-b91c-89375e60276e

  1. Start a Codex CLI session (context compaction enabled; codex-cli 0.74.0).
  2. Work in a repo with heavy build/run logs (e.g., repeated kraft build/kraft run output generating thousands of lines).
  3. Continue for many turns, asking the assistant to “Continue” or iterate without interactive prompts.
  4. After enough large outputs/context growth, observe the assistant stop responding (no tool calls, no messages) for a long period (~1.5 hours).
    Session/thread id: 019b3a9f-c468-7143-b91c-89375e60276e

What is the expected behavior?

Context compaction should complete quickly (or show progress) and the assistant should continue responding. A hang or silent stall should not occur.

Additional information

  • Large command outputs (build/run logs) preceded the hang.
  • No error message surfaced; the assistant simply stopped producing output.

Activity

  1. github-actions commented on Dec 21, 2025

    @github-actions
    Contributor
  2. added
    contextIssues related to context management (including compaction)
    on Dec 21, 2025
  3. etraut-openai commented on Mar 29, 2026

    @etraut-openai
    Contributor

    This bug report hasn't received any upvotes or additional posts in three months. Closing.

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

    bugSomething isn't workingcontextIssues related to context management (including compaction)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions