openai / openai/codex

Random compaction bug blocking session completely.

Open
#38,240 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug CLI connectivity context
Dominant language
Rust
Stars
125k
Forks
19.5k
PR merge metrics
PR metrics pending

Description

What version of Codex CLI is running?

codex-cli 0.128.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.5 medium

What platform is your computer?

CachyOS

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

bash - Konsole

Codex doctor report
■ Error running remote compact task: unexpected status 404 Not Found: {"detail":"Not Found"}, url: https://chatgpt.com/backend-api/codex/responses/compact, cf-ray: a2a1db60588c37cd-BKK, request id: 6a8baa3a-
11cd-45f7-a784-86a9de43e263

[tkb@TANELORN-CACHYOS SideraV7]$ codex doctor --json 
error: unexpected argument '--json' found

  tip: to pass '--json' as a value, use '-- --json'

Usage: codex [OPTIONS] [PROMPT]
       codex [OPTIONS] <COMMAND> [ARGS]

For more information, try '--help'.
[tkb@TANELORN-CACHYOS SideraV7]$
What issue are you seeing?

During compaction hit a status 404 error in codex.

What steps can reproduce the bug?

Uploaded thread: 019fe013-cc73-7780-a17f-7cc61998d68e

What is the expected behavior?

No error, keep working.

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing compaction with the uploaded thread 019fe013-cc73-7780-a17f-7cc61998d68e and trace the request to the reported /backend-api/codex/responses/compact endpoint. Done means compaction no longer returns the 404 and the session continues working.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.