Skip to content

fix(codex): emit -c web_search=live instead of --search - #802

Merged
currentbits merged 1 commit into
mainfrom
coder/codex-search-web-search-live-799
Sep 2, 2026
Merged

currentbits merged 1 commit into
mainfrom
coder/codex-search-web-search-live-799

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Summary

  • Codex CLI 0.152.0 rejects --search after exec and on exec resume (unexpected argument '--search'), which kills follow-up turns with web search on (#799).
  • Codex buildArgs now emits -c web_search=live instead. That form parses on both fresh exec and resume (verified on 0.152.0).
  • Tests in electron/test/codex-search.test.js now require the -c pair, forbid --search after exec, and keep the prompt last. workflow-search.test.js is not on origin/main (it lived only on a fork).

Test plan

  • electron/test/codex-search.test.js — 16/16
  • electron/test/providers.test.js, providers-set.test.js, sandbox.test.js — 42/42
  • Install a nightly with this commit and turn Search on for a Codex thread; confirm a follow-up turn no longer dies with unexpected argument '--search'
  • Confirm a fresh Codex exec with Search on still runs (argv parse + a real search if you want the extra proof)

Closes #799

Made with Cursor

Codex 0.152.0 rejects --search after exec and exec resume, which kills follow-up turns with web search on.

Co-authored-by: Cursor <[email protected]>
currentbits pushed a commit that referenced this pull request Sep 2, 2026
Leftover #810 tests still expected --search; Codex 0.152.0 rejects that after exec. Match providers.js / #802 so both PRs can land. Closes #811.

Co-authored-by: Cursor <[email protected]>
@currentbits

Copy link
Copy Markdown
Owner Author

Leftover conflict with #810 is resolved on that PR (#811): it now cherry-picks this change and asserts -c web_search=live in workflow-search.test.js. Either PR can merge first.

Focused #807 still expects --search if it stays open after this lands.

currentbits pushed a commit that referenced this pull request Sep 2, 2026
Focused #807 tests still expected --search; Codex 0.152.0 rejects that after exec. Match providers.js / #802 so #802, #810, and #807 can land. Closes #814.

Co-authored-by: Cursor <[email protected]>
@currentbits
currentbits merged commit 2047673 into main Sep 2, 2026
3 of 6 checks passed
currentbits added a commit that referenced this pull request Sep 2, 2026
…#807)

* fix(workflow): forward thread.webSearch into Codex --search (#792)

Workflow phases already had the thread; Codex buildArgs already emits
--search. The spawn path dropped webSearch, so a toggle-on thread never
searched. Thread the flag the same four hops as a regular run.

Co-authored-by: Cursor <[email protected]>

* fix(codex): emit -c web_search=live instead of --search (#799)

Codex 0.152.0 rejects --search after exec and exec resume, which kills follow-up turns with web search on.

Co-authored-by: Cursor <[email protected]>

* fix(workflow): assert -c web_search=live in focused Codex search tests

Focused #807 tests still expected --search; Codex 0.152.0 rejects that after exec. Match providers.js / #802 so #802, #810, and #807 can land. Closes #814.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Willem <[email protected]>
Co-authored-by: Cursor <[email protected]>
currentbits added a commit that referenced this pull request Sep 2, 2026
* Merge worktree coder/fork-fork-i-got-this-feedback-i-got-this-a6b98b: Fork: Fork: I got this feedback I got this feedback look at

* Merge worktree coder/fork-i-got-this-feedback-i-got-this-feed-bdd3fd: Fork: I got this feedback I got this feedback look at it and

* Merge worktree coder/fork-i-got-this-feedback-i-got-this-feed-5ea377: Fork: I got this feedback I got this feedback look at it and

* Merge worktree coder/i-got-this-feedback-i-got-this-feedback--654948: I got this feedback I got this feedback look at it and see w

* Merge worktree coder/fork-fork-fork-fork-we-have-an-issue-wih-858622: Fork: Fork: Fork: Fork: We have an issue wiht codex

* Merge worktree coder/fork-fork-fork-we-have-an-issue-wiht-cod-f08421: Fork: Fork: Fork: We have an issue wiht codex

* Merge worktree coder/fork-fork-we-have-an-issue-wiht-codex-28bf1d: Fork: Fork: We have an issue wiht codex

* Merge worktree coder/fork-we-have-an-issue-wiht-codex-e3f421: Fork: We have an issue wiht codex

* Merge worktree coder/new-thread-c7b784: We have an issue wiht codex

* Merge worktree coder/fork-fork-fork-we-have-an-issue-wiht-cod-7df392: Fork: Fork: Fork: We have an issue wiht codex

* Merge worktree coder/fork-fork-we-have-an-issue-wiht-codex-920928: Fork: Fork: We have an issue wiht codex

* fix: drop leftover #187 normalizeBaseBranch that duplicated origin/main

Cherry-picking the worktrees squash onto origin/main (already has #187)
inserted a second normalizeBaseBranch in services.js.

Co-authored-by: Cursor <[email protected]>

* fix(codex): emit -c web_search=live instead of --search (#799)

Codex 0.152.0 rejects --search after exec and exec resume, which kills follow-up turns with web search on.

Co-authored-by: Cursor <[email protected]>

* fix(workflow): assert -c web_search=live in leftover Codex search tests

Leftover #810 tests still expected --search; Codex 0.152.0 rejects that after exec. Match providers.js / #802 so both PRs can land. Closes #811.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Willem <[email protected]>
Co-authored-by: Willem <[email protected]>
Co-authored-by: Cursor <[email protected]>
@currentbits
currentbits deleted the coder/codex-search-web-search-live-799 branch October 3, 2026 16:07
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.

Codex exec resume rejects --search; follow-up turns die (exit 2)

1 participant