Skip to content

Error running remote compact task: timeout waiting for child process to exit #17802

Closed

Description

@seeb1337

What version of Codex CLI is running?

0.120.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.4

What platform is your computer?

Linux 6.17.0-20-generic x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

Ghostty & t3code

What issue are you seeing?

Once thread is about to compact for its first time it gets errored. Can't run /compact, /feedback. Sometimes it goes through tho, but not very often.

Image

What steps can reproduce the bug?

Fill the context to the top.

What is the expected behavior?

Compact.

Additional information

Codex said:
The failing turn shows a large Neon MCP doc fetch, not a ctx7 CLI/plugin call:

  • The last big payload before compaction was server":"Neon","tool":"get_doc_resource" for docs/auth/production-checklist.md at /home/kox/.t3/userdata/logs/provider/aa59955c-ee49-4b6d-8a39-07ae0234c689.log:3006.
  • Compaction started immediately after at /home/kox/.t3/userdata/logs/provider/aa59955c-ee49-4b6d-8a39-07ae0234c689.log:3007.
  • Then Codex failed with compact_error=timeout waiting for child process to exit at /home/kox/.t3/userdata/logs/provider/aa59955c-
    ee49-4b6d-8a39-07ae0234c689.log:3008.

So the mechanism is:

  • Large tool output gets added to the thread’s model-visible history.
  • Codex notices the thread is getting too large.
  • Codex runs internal contextCompaction.
  • That internal compaction worker times out.

Activity

  1. added
    CLIIssues related to the Codex CLI
    contextIssues related to context management (including compaction)
    on Apr 14, 2026
  2. github-actions commented on Apr 14, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. seeb1337 commented on Apr 14, 2026

    @seeb1337
    Author

    Set a compact threshold 150k and now getting this @ 150k tokens..
    Error running remote compact task: { "error": { "message": "Unknown parameter: 'prompt_cache_retention'.", "type": "invalid_request_error", "param": "prompt_cache_retention", "code": "unknown_parameter" } }

    Image
  4. Higor-Matos commented on Apr 14, 2026

    @Higor-Matos
  5. etraut-openai commented on Apr 14, 2026

    @etraut-openai
    Contributor

    We rolled back the change that caused this regression, so this should be addressed now. Apologies for the inconvenience.

  6. seeb1337 commented on Apr 15, 2026

    @seeb1337
    Author

    @etraut-openai issue still exists for me.

    Image
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