fix(agents): keep web_search runtime providers visible#76685
fix(agents): keep web_search runtime providers visible#76685clawsweeper[bot] merged 1 commit intomainfrom
Conversation
|
/clawsweeper automerge |
|
Codex review: passed. Summary Reproducibility: yes. at source level: current main passes preferRuntimeProviders: false when runtime web-search metadata is missing, which forces bundled-only resolution. The linked issue supplies live Brave CLI-vs-agent evidence; this read-only review did not rerun a live Gateway call. Next step before merge Security Review detailsBest possible solution: Land the PR after exact-head checks complete, keeping agent web_search aligned with CLI runtime provider discovery without changing the bundled-provider fast path for explicit bundled metadata. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main passes preferRuntimeProviders: false when runtime web-search metadata is missing, which forces bundled-only resolution. The linked issue supplies live Brave CLI-vs-agent evidence; this read-only review did not rerun a live Gateway call. Is this the best way to solve the issue? Yes. The PR makes the smallest maintainable change in the agent wrapper, preserving bundled-only behavior for explicit bundled metadata while allowing runWebSearch's runtime-provider discovery when metadata is absent. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against fc570d0e58f7. |
|
ClawSweeper 🐠 automerge status ClawSweeper finished this automerge repair pass without changing the branch. Executor outcome: source PR branch changed while the repair worker was preparing its push; requeue against the latest head. Worker actions:
No push, rebase, replacement PR, merge, or ClawSweeper re-review happened on this pass. fish notes: model gpt-5.5, reasoning high. Automerge progress:
|
95ffd70 to
e7f379c
Compare
Summary: - The PR changes the agent web_search wrapper to keep runtime provider discovery enabled when runtime metadata is absent, adds focused regression coverage, and records an unreleased changelog fix. - Reproducibility: yes. at source level: current main passes preferRuntimeProviders: false when runtime web-se ... d issue supplies live Brave CLI-vs-agent evidence; this read-only review did not rerun a live Gateway call. Automerge notes: - No ClawSweeper repair was needed after automerge opt-in. Validation: - ClawSweeper review passed for head e7f379c. - Required merge gates passed before the squash merge. Prepared head SHA: e7f379c Review: openclaw#76685 (comment) Co-authored-by: Alex Knight <15041791+amknight@users.noreply.github.com>
Summary: - The PR changes the agent web_search wrapper to keep runtime provider discovery enabled when runtime metadata is absent, adds focused regression coverage, and records an unreleased changelog fix. - Reproducibility: yes. at source level: current main passes preferRuntimeProviders: false when runtime web-se ... d issue supplies live Brave CLI-vs-agent evidence; this read-only review did not rerun a live Gateway call. Automerge notes: - No ClawSweeper repair was needed after automerge opt-in. Validation: - ClawSweeper review passed for head e7f379c. - Required merge gates passed before the squash merge. Prepared head SHA: e7f379c Review: openclaw#76685 (comment) Co-authored-by: Alex Knight <15041791+amknight@users.noreply.github.com>
Summary
web_searchon runtime/installed provider discovery when runtime web-search metadata is missing.Root Cause
The agent
web_searchwrapper derivedpreferRuntimeProvidersfrom the presence of runtime metadata. When metadata was absent, it passedfalse, which maderunWebSearchresolve only bundled web-search candidates. That could hide externally installed official providers such as Brave even though CLI web-search provider discovery found them.Validation
pnpm test src/agents/tools/web-tools.enabled-defaults.test.tspnpm test src/agents/tools/web-tools.enabled-defaults.test.ts src/web-search/runtime.test.ts src/plugins/web-search-providers.runtime.test.ts src/secrets/runtime-web-tools.test.tspnpm exec oxfmt --check --threads=1 src/agents/tools/web-search.ts src/agents/tools/web-tools.enabled-defaults.test.ts CHANGELOG.mdpnpm check:changedFixes #76626.