Skip to content

[Bug] provider_cli Codex ACP rejects model option with ChatGPT login #533

Description

@cmt-t

Bug description

A Paca provider_cli agent using Codex CLI authenticated with a ChatGPT subscription cannot start a conversation when a model is configured. The conversation fails before the first model response with:

Failed to set ACP model option: Invalid params

The same authenticated Codex CLI accepts the model when invoked directly, so this appears to be a Paca/Goose/codex-acp compatibility issue rather than an authentication or model-entitlement issue.

Environment

  • Paca: v0.18.2
  • Deployment: Docker Compose on ARM64 Linux
  • Agent type: provider_cli
  • CLI provider: codex
  • Codex CLI: 0.159.2
  • Auth mode: ChatGPT subscription login (codex login --device-auth)
  • Agent Runner image: ghcr.io/paca-ai/paca-agent-server-goose:0.18.2
  • codex-acp is present in the environment image

Reproduction

  1. Create a Paca project-scoped provider_cli agent with cli_provider=codex and a static environment.
  2. Authenticate inside that environment with:
    codex login --device-auth
  3. Verify locally:
    codex login status
    Result: Logged in using ChatGPT.
  4. Directly run:
    codex exec --model gpt-6-luna --sandbox read-only --skip-git-repo-check --ephemeral "Responda somente MODEL_OK"
    Result: successful response (MODEL_OK). gpt-5.5 also succeeds.
  5. Start a conversation through the Paca UI/API using the same static environment.

Actual behavior

The Agent Runner logs:

conversation finished ...

The conversation event contains:

Ran into this error: Request failed: Failed to set ACP model option: Invalid params.

This occurs with:

  • gpt-6-luna
  • gpt-5.6-luna
  • gpt-5.6-luna-900k

Leaving cli_model empty and setting model = "gpt-6-luna" in /home/goose/.codex/config.toml still produces the same ACP model-option error when the conversation is started through Paca.

Expected behavior

The Paca provider_cli Codex agent should either:

  1. start successfully using the model from the Codex CLI configuration; or
  2. pass a model identifier in the exact format accepted by the installed codex-acp; or
  3. return a more specific compatibility error explaining which ACP/model option is invalid.

Questions

  • Is v0.18.2 expected to work with Codex CLI 0.159.2 and its codex-acp provider?
  • Does the provider_cli adapter need to omit the ACP model option for Codex and let config.toml choose the model?
  • Is there a required Codex CLI/codex-acp version or image tag that should be pinned?
  • Is there a documented workaround or a fix available on master?

No API key was used; authentication was exclusively through the ChatGPT subscription login.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions