Codex CLI error: Invalid request

Hi Andreas

I wanted to test the AI assistant connected to Codex CLI but I got this error

Error: Invalid request: unknown variant reject, expected one of untrusted, on-failure, on-request, granular, never

This seems to happen during the approval/permission handling for Codex requests.

What I checked:

  • Codex CLI is installed and working (Codex CLI 0.118.0 and latest BTT version

  • I’m logged in successfully

My AI assisted guess is that an approval-related value being sent to Codex is not in the format Codex expects. It looks like

reject may be getting passed where Codex expects one of its supported approval modes.

Could you check whether the codex-cli-openai integration is sending an unsupported approval-policy value, and whether

there is a recommended setting/workaround on the BTT side?

Thanks for your amazing work and possible help!

codex support requires a newer version of the codex cli

Thanks for the quick answer,

Sorry if I didn’t get your answer, I have the latest version 0.118.0 Changelog – Codex | OpenAI Developers
Which new version are you referring to?

Ah, seems like they just changed something again in the 0.118.0 build that causes the same error message as on an older build again. I'll check whether it can be solved

should be woking again with BTT 6.329 (uploading now)

Wow this was FAST! it’s working now on BTT 6.330, many thanks Andreas!