compact fails

Resolved 💬 3 comments Opened Nov 29, 2025 by OperationalFallacy Closed Dec 11, 2025

What version of Codex is running?

0.63.0

What subscription do you have?

plus

Which model were you using?

5.1-codex

What platform is your computer?

mac

What issue are you seeing?

■ Error running remote compact task: unexpected status 401 Unauthorized: {
  "error": {
    "message": "Your request to POST /v1/responses/compact must be made with a session key (that is, it can only be made from the browser). You made it with the following key type: .",
    "type": "invalid_request_error",
    "param": null,
    "code": "missing_scope"
  }
}

What steps can reproduce the bug?

Uploaded thread: 019ad09f-682f-77f3-9bae-d7a61eb76d50

What is the expected behavior?

codex UX on selecting profiles is not designed well. I'm using plus subscription, personal api keys, and keys from work project.

I have to carefully edit toml file to make it semi-usable, e.g. combination of "providers", "models" and "keys"

And then codex upgraded and started overwriting models in the toml global section which made profiles break.

The whole UX what "environment" codex is using is just bad. Starting with ridiculous "toml" multi-layer config format with internal configuration "logic", and on top of that codex binary making changes to it during upgrades.

I want just one thing to set up named environment, or profile or whatever you want to call it that defines isolated setup that codex can't overwrite with changes during upgrade.

Right now all this toml config mess leads to the errors like above.

Additional information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗