Skip to content

Workflow Codex phases drop thread.webSearch / --search #792

Closed

Description

@currentbits

Problem

After #785, workflow phases forward thread.reasoningEffort into provider spawners. startWorkflowRun already has the thread, and spawnPhaseAgent fans out to spawnAgentCodex. Codex buildArgs already emits --search when webSearch is true (electron/providers.js).

electron/workflow.js still has no webSearch at all. spawnAgentCodex / spawnPhaseAgent omit thread.webSearch, so Codex workflow phases never get --search even when the thread toggle is on.

Confirmed on origin/main (dc15acba) and this worktree: startWorkflowRun reads thread.reasoningEffort only; spawnAgentCodex calls buildArgs without webSearch.

Fix

Thread thread.webSearch through startWorkflowRun → spawnPhaseAgent → spawnAgentCodex → buildArgs the same way as reasoningEffort. Codex-only: other providers do not emit --search.

Tests

Argv-evidence: fake Codex dumps process.argv, assert --search for both spawnPhaseAgent and startWorkflowRun.

Out of scope

Activity

  1. currentbits commented on Sep 1, 2026

    @currentbits
    OwnerAuthor

    Confirmed on origin/main (dc15acba) and implemented here: startWorkflowRun now reads thread.webSearch and spawnPhaseAgent / spawnAgentCodex forward it into Codex buildArgs (--search).

    Evidence (fresh runs):

    • electron/test/workflow-search.test.js: 2/2 pass (spawnPhaseAgent argv --search + prompt last; startWorkflowRun thread toggle → --search)
    • electron/test/workflow.test.js: 13/13 pass
    • electron/test/workflow-kimi.test.js: 2/2 pass
    • electron/test/codex-search.test.js: 15/15 pass

    #792 stays open until this lands. Effort (#785) and phase resume (#782) were not touched.

  2. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Focused PR from origin/main: #807 — four hops only, no #785/#782.

  3. added
    plan:done
    and removed
    plan:doing
    on Sep 2, 2026
  4. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Workflow Codex phases drop thread.webSearch / --search". Closed on merge.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions