Skip to content

fix: restore Codex CLI compatibility with current config schema#50

Merged
iagooar merged 1 commit into
masterfrom
fix/codex-cli-compat
Jun 25, 2026
Merged

fix: restore Codex CLI compatibility with current config schema#50
iagooar merged 1 commit into
masterfrom
fix/codex-cli-compat

Conversation

@iagooar

@iagooar iagooar commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove the stale tools.web_search=false Codex config override (current Codex CLI expects a struct, not a boolean).
  • Default Codex reasoning effort to low instead of minimal, matching current Codex CLI constraints.
  • Update the bundled codex profile default and CLI backend test expectations.

Supersedes #47 — thanks @BorisEagle for reporting and the initial patch.

Test plan

  • cargo test
  • Smoke test with real Codex CLI: qq --profile codex "list files here"

Made with Cursor

Remove the stale tools.web_search=false override Codex no longer accepts,
and default Codex reasoning effort to low so it works with current CLI
behavior. Also update the bundled codex profile default accordingly.

Supersedes #47 (thanks @BorisEagle).

Co-authored-by: Cursor <cursoragent@cursor.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f10da9551

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ai.rs
cmd.arg("-c");
cmd.arg(format!("model_reasoning_effort={}", reasoning));
cmd.arg("-c");
cmd.arg("sandbox_mode=read-only");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Disable Codex web search explicitly

In the Codex CLI path, this change now only applies the read-only filesystem sandbox and no longer disables web search. OpenAI's Codex config reference documents web_search as defaulting to cached search and says disabled removes the tool (https://developers.openai.com/codex/config-reference), so qq --profile codex or qa --profile codex can still let Codex issue search queries for user prompts that qqqa otherwise treats as no-tool/read-only. Please replace the removed legacy override with the current top-level disable setting, e.g. a -c web_search=disabled override, rather than omitting it entirely.

Useful? React with 👍 / 👎.

@iagooar
iagooar merged commit 87cbeca into master Jun 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant