Skip to content

401 on remote compaction (/responses/compact) in Codex App does not recover gracefully #17289

Description

@Mygod

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

26.325.31654

What subscription do you have?

Pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Codex App hit a one-off failure during remote compaction.

Full error:

Error running remote compact task: unexpected status 401 Unauthorized: You have insufficient permissions for this operation. Missing scopes: api.responses.write. Check that you have the correct role in your organization (Reader, Writer, Owner) and project (Member, Owner), and if you're using a restricted API key, that it has the necessary scopes., url: https://chatgpt.com/backend-api/codex/responses/compact, cf-ray: 9e9dacf1df5b902c-BOS, request id: 5e4f1b30-de95-4f14-b6f8-006b2b872fc6

Continuing the same session and compacting later seemed fine.

What steps can reproduce the bug?

I do not have a reliable repro yet but it was a very long running session. This was after an hour of work.

What is the expected behavior?

No response

Additional information

Retrying (telling it to continue) seems to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues related to authentication and accountsbugSomething 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