Error running remote compact task: unexpected status 404 Not Found...

Open 💬 3 comments Opened Aug 14, 2026 by RayCarnegie
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

VSCODE Codex Extension

What subscription do you have?

Pro

What platform is your computer?

Linux Ubuntu 24 LTS

What issue are you seeing?

Error running remote compact task: unexpected status 404 Not Found: {"detail":"Not Found"}, url: https://chatgpt.com/backend-api/codex/responses/compact, cf-ray: a2ae188f99aeb79f-ABJ, request id: a0905770-b1fa-41a9-b065-97db2a4eb59e

What steps can reproduce the bug?

Error running remote compact task: unexpected status 404 Not Found: {"detail":"Not Found"}, url: https://chatgpt.com/backend-api/codex/responses/compact, cf-ray: a2ae188f99aeb79f-ABJ, request id: a0905770-b1fa-41a9-b065-97db2a4eb59e

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 14 days ago

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

  • #38370
  • #38323
  • #38240

Powered by Codex Action

SunMaple11 · 14 days ago

I have solved this problem.
■ Error running remote compact task: unexpected status 404 Not Found: {"detail":"Not Found"}, url:
https://chatgpt.com/backend-api/codex/responses/compact, cf-ray: a2a63697bb8ea0de-NRT, request id:
39b24f5b-0bb3-4535-a643-d14319dcce5f
This is my error
It's 2 reasons I've known to cause it:
1 codex version too old.
2 some wrong configurations. This is my problem. Open ~/.codex/config.toml and search any wrong configurations.
Because the remote compaction always error in the past so I add this config in my config.toml
[feature]
remote_compaction_v2 = false
local_thread_store_compression = true
It's wrong config. So I delete this three lines and continue my error session. It is work.
Hope to help you.

SteenPetersen · 2 days ago

I may have found another possible fix/workaround for this on Windows using Codex from Rider.

Inspired by the last comment, I first checked:

C:\Users\<user>\.codex\config.toml

In my case, I did not have the settings mentioned above:

[feature]
remote_compaction_v2 = false
local_thread_store_compression = true

So there was nothing for me to remove/change there.

What I did notice was that my globally installed Codex CLI was quite old:

@openai/codex@0.125.0

I updated the global installation, and I'm now on:

codex-cli 0.149.1

Since updating, I haven't hit the remote compact task: unexpected status 404 error again, and the session has already lasted considerably longer than it normally would before failing.

I'm not 100% confident this is the fix yet, so I'll keep testing, but so far updating the Codex CLI looks promising.

Might be worth checking codex --version if you're seeing the same issue, especially if you've had Codex installed for a while.