Skip to content

OpenAI oauth 5.2 codex model is not injecting system prompt for agent persona #11163

@CarlosCommits

Description

@CarlosCommits

Description

When using OpenAI 5.2, the agent persona/system prompt (and maybe the entire config?) is not being passed through correctly.

Plugins

none

OpenCode version

1.1.42

Steps to reproduce

  1. Try using opencode with 5.2 codex OpenAI oauth model
  2. Ask any agent "what agent are you"
  3. will always respond with "I'm opencode, your coding assistant"
  4. Repeat same steps with any other LLM model and you will get the correct identity answer.
  5. When using 5.2 codex model, all agents function as default opencode default build agent it seems.

Screenshot and/or share link

I created a 'test' agent to demonstrate.

Here, 5.2 oauth model is used and does not inject agent persona:

Image

Here, 5.2 Zen API is used and it does pick up/inject agent persona:

Image

Here, GLM 4.7 Zen API is used and correctly injects agent config as well:

Image

Operating System

Ubuntu - WSL

Terminal

Wezterm

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingzenRelates to Zen

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions