Skip to content

Manual advisor is unavailable while web-search sidecar owns the turn #7857

Closed

Description

@auroraflux-jhkim

Client or integration

Codex CLI and Codex App.

Area

Proxy and routing; Tools / MCP / web search.

Summary

With advisor.policy = "manual" and hosted web_search enabled, the synthetic advisor tool is not declared to a routed worker. A manual consultation therefore cannot start unless web search is disabled. Both tools should work in the same turn without exposing either synthetic call to the client.

Reproduction

  1. Enable a manual Advisor with current contextSharingConsent: "v1" and an Advisor model.
  2. Enable webSearchSidecar (the reproduction uses the exa backend) and send a routed, translated Responses request with tools: [{ "type": "web_search" }].
  3. Ask the worker to call advisor once.
  4. The worker's upstream tool catalog contains web_search but not advisor; Advisor activity remains empty. Disabling web search makes the same manual consultation succeed.

The cause is in src/server/responses/sidecar-execution.ts: Advisor injection requires !wsPlan. The web-search loop owns its own event stream, so simply removing that condition without adding Advisor handling would leak the synthetic call instead of consulting and reinjecting its result.

Version

Reproduced on 2.93.0. Also present on current dev at abc932d1434f85e7aa9714d5a43b1d5374792cc0.

Operating system

macOS 27.0.1.

Provider and model

Worker: kimi/k3.1-pro (translated openai-chat). Advisor: anthropic/claude-opus-5-5.

Logs or error output

There is no HTTP error. The relevant branch is:

if (advisorPlan && !routedCompaction && !transportState.adapter.runTurn && !wsPlan && !imgPlan && !vidPlan) {
  // synthetic advisor injection
}

Redacted configuration

{
  "advisor": {
    "enabled": true,
    "model": "anthropic/claude-opus-5-5",
    "policy": "manual",
    "contextSharingConsent": "v1"
  },
  "webSearchSidecar": {
    "backend": "exa",
    "exaApiKey": "<redacted>"
  }
}

Checks

  • I searched existing issues and documentation, including advisor web_search, synthetic advisor, and wsPlan.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. added
    bug
    tools
    on Oct 28, 2026
  2. Ingwannu commented on Oct 29, 2026

    @Ingwannu
    Owner

    Closing as completed on dev: #7858 merged as 8a6cea9c168666733d97dd8172cbe6296b1b0104, which I verified is an ancestor of current trusted dev 9b78a16f4fe0c300527e6b183052407269bb941d.

    The fetch-based web-search loop consumes synthetic Advisor calls and reinjects results with the existing consultation bounds and cancellation; it no longer suppresses manual Advisor merely because wsPlan owns the turn.

    I checked the implementation and the successful exact-head required CI for e2389802c16de32f34fd48a7a18d929152a091a3. Existing author regression receipts remain author-run evidence; I did not rerun unchanged passing suites or reproduce this on a live account/native client. This closure records the landed scope, not validation of the reporter's installed version or a release claim. If the same failure occurs on a build containing this commit, provide a new bounded, redacted reproduction against that build.

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

    bugtools

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions