Repository navigation
fix(tool-search): preserve dotted target arguments - #119464
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 2:39 AM ET / 06:39 UTC. ClawSweeper reviewWhat this changesThe PR converts top-level provider-emitted Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessNo blocking findings. This remains a necessary, focused repair: current main passes dotted wrapper keys literally to target tools, while the PR normalizes them at the shared decode boundary and preserves established precedence. Priority: P2 Review scores
Verification
How this fits togetherStructured Tool Search receives a provider tool-call wrapper, resolves a catalog tool, and passes normalized input to it. Target-tool schema validation then rejects missing or unexpected fields before execution. flowchart LR
A[Provider wrapper payload] --> B[Tool Call control]
B --> C[Argument decoder]
C --> D[Catalog tool resolution]
D --> E[Schema validation]
E --> F[Target tool execution]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +9, Tests +20. Total +29 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Merge the exact-head decoder normalization after normal merge gating; it fixes the shared wrapper boundary without altering target-tool schemas, provider routing, or configuration. Do we have a high-confidence way to reproduce the issue? Yes. Current main demonstrably retains Is this the best way to solve the issue? Yes. Normalizing at the shared Tool Call decoder fixes the malformed wrapper once while preserving nested and ordinary flattened input behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 702eb6eb5734. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
|
@clawsweeper re-review Rebased onto current main at submission time. Exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper rank-up move disposition: satisfied; no separate automation action is required. The reviewed head f158ec5 already contains the narrow shared Tool Search decoder repair recommended by the review. ClawSweeper reports no findings, sufficient proof, and explicitly says no discrete automation follow-up is needed. The remaining work is the normal maintainer validation and landing gate, so no code change or follow-up issue is warranted. |
|
Merged via squash.
|
Punchcard-Session: frost-brook-timber-mx * origin/main: fix: cap local tsgo CPU usage (#119517) fix(tool-search): normalize dotted call arguments (#119418) (#119464) fix(qa): retain child output on CLI timeouts (#119524) fix(discord): preserve authored block order in presentation components (#119506) fix: make plugin verification restart guidance install-neutral (#119508) fix(qa): preserve profile execution contracts (#119519) test(qa): cover managed OTEL runtime paths (#118965) Punchcard-Session: frost-brook-timber-mx
…penclaw#119464) Co-authored-by: Xiaomi <[email protected]>
Punchcard-Session: frost-brook-timber-mx * origin/main: fix: cap local tsgo CPU usage (openclaw#119517) fix(tool-search): normalize dotted call arguments (openclaw#119418) (openclaw#119464) fix(qa): retain child output on CLI timeouts (openclaw#119524) fix(discord): preserve authored block order in presentation components (openclaw#119506) fix: make plugin verification restart guidance install-neutral (openclaw#119508) fix(qa): preserve profile execution contracts (openclaw#119519) test(qa): cover managed OTEL runtime paths (openclaw#118965) Punchcard-Session: frost-brook-timber-mx
Closes #119418
What Problem This Solves
Fixes an issue where users running Tool Search with providers that flatten nested tool arguments could enter repeated missing-parameter failures. GitHub Copilot Gemini emitted fields such as
args.pathandargs.command, which reached the selected target tool with the prefix still attached instead of aspathandcommand.Why This Change Was Made
The shared Tool Search call decoder now normalizes non-empty
args.*compatibility fields at the wrapper boundary. Canonical nestedargsvalues retain precedence, and the existing ordinary flattened-argument behavior remains unchanged.User Impact
Tool Search calls from affected providers can execute the selected target tool instead of retrying until timeout. Correctly nested calls and existing flattened calls continue to behave as before.
Evidence
github-copilot/gemini-3.1-pro-preview: 172 tool calls followed by a 300-second timeout.pnpm test src/agents/tool-search-runtime.test.ts: 45 tests passed.pnpm exec oxfmt --check src/agents/tool-search-runtime.ts src/agents/tool-search-runtime.test.ts: passed.pnpm exec oxlint src/agents/tool-search-runtime.ts src/agents/tool-search-runtime.test.ts: passed.AI Assistance
Punchcard-Session: clear-orchard-lantern-bc