惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
量子位
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
Google DeepMind News
Google DeepMind News
小众软件
小众软件
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: require web search query schema · openclaw/openclaw@...
steipete · 2026-05-15 · via Recent Commits to openclaw:main

File tree

  • src/agents/tools

  • test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path

Original file line numberDiff line numberDiff line change

@@ -158,6 +158,7 @@ Docs: https://docs.openclaw.ai

158158

- Memory host SDK: report malformed remote JSON with caller-scoped errors for POST and batch file upload responses instead of leaking raw parser failures.

159159

- Media providers: report malformed operation-poll and audio-transcription JSON with provider-owned errors instead of leaking raw parser failures.

160160

- MiniMax, Gemini, Kimi, and Ollama web search: report malformed API JSON with provider-owned errors instead of leaking raw parser failures.

161+

- Web search: mark the managed `web_search` `query` argument as required in the advertised tool schema, so schema-following local models stop emitting `queries` payloads that fail at execution. Fixes #82097. Thanks @SpidFightFR.

161162

- Twilio voice-call: report malformed successful API JSON responses with provider-owned errors instead of leaking raw parser failures.

162163

- Voice-call provider APIs: report malformed successful guarded JSON responses with provider-prefixed errors instead of leaking raw parser failures.

163164

- Realtime transcription: report malformed provider websocket JSON frames with owned parser errors instead of leaking raw `SyntaxError` objects.

Original file line numberDiff line numberDiff line change

@@ -10,6 +10,13 @@ import { mergeScopedSearchConfig } from "./web-search-provider-config.js";

1010

import { createWebSearchTool } from "./web-search.js";

1111
1212

describe("web_search tool schema", () => {

13+

it("marks query as required for model tool-call schemas", () => {

14+

const tool = createWebSearchTool();

15+

const parameters = tool?.parameters as { required?: unknown } | undefined;

16+
17+

expect(parameters?.required).toEqual(["query"]);

18+

});

19+
1320

it("advertises the shared runtime count limit", () => {

1421

const tool = createWebSearchTool();

1522

const parameters = tool?.parameters as

Original file line numberDiff line numberDiff line change

@@ -8,6 +8,7 @@ import { resolveWebSearchToolRuntimeContext } from "./web-tool-runtime-context.j

88
99

const WebSearchSchema = {

1010

type: "object",

11+

required: ["query"],

1112

properties: {

1213

query: { type: "string", description: "Search query string." },

1314

count: {

Original file line numberDiff line numberDiff line change

@@ -1174,6 +1174,7 @@

11741174

"type": "string"

11751175

}

11761176

},

1177+

"required": ["query"],

11771178

"type": "object"

11781179

},

11791180

"name": "web_search",

Original file line numberDiff line numberDiff line change

@@ -1206,6 +1206,7 @@

12061206

"type": "string"

12071207

}

12081208

},

1209+

"required": ["query"],

12091210

"type": "object"

12101211

},

12111212

"name": "web_search",

Original file line numberDiff line numberDiff line change

@@ -1170,6 +1170,7 @@

11701170

"type": "string"

11711171

}

11721172

},

1173+

"required": ["query"],

11731174

"type": "object"

11741175

},

11751176

"name": "web_search",

Original file line numberDiff line numberDiff line change

@@ -217,8 +217,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the

217217

"roughTokens": 140

218218

},

219219

"dynamicToolsJson": {

220-

"chars": 44328,

221-

"roughTokens": 11082

220+

"chars": 44373,

221+

"roughTokens": 11094

222222

},

223223

"openClawDeveloperInstructions": {

224224

"chars": 5436,

@@ -229,8 +229,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the

229229

"roughTokens": 7129

230230

},

231231

"totalWithDynamicToolsJson": {

232-

"chars": 72846,

233-

"roughTokens": 18212

232+

"chars": 72891,

233+

"roughTokens": 18223

234234

},

235235

"userInputText": {

236236

"chars": 870,

Original file line numberDiff line numberDiff line change

@@ -217,8 +217,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the

217217

"roughTokens": 140

218218

},

219219

"dynamicToolsJson": {

220-

"chars": 44019,

221-

"roughTokens": 11005

220+

"chars": 44064,

221+

"roughTokens": 11016

222222

},

223223

"openClawDeveloperInstructions": {

224224

"chars": 4412,

@@ -229,8 +229,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the

229229

"roughTokens": 6748

230230

},

231231

"totalWithDynamicToolsJson": {

232-

"chars": 71013,

233-

"roughTokens": 17754

232+

"chars": 71058,

233+

"roughTokens": 17765

234234

},

235235

"userInputText": {

236236

"chars": 370,

Original file line numberDiff line numberDiff line change

@@ -218,8 +218,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the

218218

"roughTokens": 140

219219

},

220220

"dynamicToolsJson": {

221-

"chars": 45197,

222-

"roughTokens": 11300

221+

"chars": 45242,

222+

"roughTokens": 11311

223223

},

224224

"openClawDeveloperInstructions": {

225225

"chars": 4412,

@@ -230,8 +230,8 @@ This is the deterministic model-bound layer stack OpenClaw can snapshot for the

230230

"roughTokens": 7155

231231

},

232232

"totalWithDynamicToolsJson": {

233-

"chars": 73818,

234-

"roughTokens": 18455

233+

"chars": 73863,

234+

"roughTokens": 18466

235235

},

236236

"userInputText": {

237237

"chars": 608,