Repository navigation
fix: accept detailed web-search schema rejection - #165223
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 9:35 PM ET / October 5, 2026, 01:35 UTC (Revision 3). ClawSweeper reviewWhat this changesThe web-search release-test client accepts the precise Markdown-escaped Gateway schema rejection and adds acceptance and unrelated-error regression cases. Merge readiness✅ Ready for maintainer review The PR remains useful and has no actionable correctness findings. The updated validation results resolve the previous review’s pending-test blocker; current main still lacks this detailed rejection match. Priority: P2 Review scores
Verification
How this fits togetherThe web-search Docker check sends requests through a packaged Gateway to a synthetic OpenAI endpoint. Its client and log assertions determine whether successful requests and deliberate provider rejections behave as expected. flowchart TD
A[Docker release check] --> B[Gateway client]
B --> C[Packaged Gateway]
C --> D[Synthetic OpenAI endpoint]
D --> E[Deliberate schema rejection]
E --> C
C --> F[Client error validation]
F --> G[Scenario passes or fails]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +2, Other +1. Total +3 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep expected schema-error recognition in the existing test client while preserving independent request, success, and raw-log assertions. Do we have a high-confidence way to reproduce the issue? Yes, source establishes a precise reproduction: pass the captured detailed, Markdown-escaped schema rejection to the unchanged main validator and it rejects the expected failure. The paired issue records that boundary reproduction; this review did not execute tests. Is this the best way to solve the issue? Yes, extending the existing accepted representations is the narrowest repair, and the unrelated-error control guards against accepting every detailed Gateway rejection. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3493b3bff4b6. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Fixed: the web-search check recognizes the Gateway's detailed schema rejection. |
Accept the current detailed schema rejection in the synthetic web-search check while retaining unrelated-error controls. Refs openclaw#165222.
Restore verified main test companions for image offload context and web-search schema rejection. Join deferred read-only update discovery before the unchanged plugin watchdog checks. Release provenance: 2e76e31 -> openclaw#164643; cc43c8c -> openclaw#164925; b9bed02 -> openclaw#165223. (cherry picked from commit 756a515) Co-authored-by: RomneyDa <[email protected]>
Closes #165222
What Problem This Solves
The synthetic web-search Docker check reports a failure after the Gateway correctly rejects the deliberately invalid minimal-reasoning request. Its client recognizes raw provider errors and generic Gateway guidance, but misses the current detailed schema rejection with Markdown-escaped punctuation. This is the detailed-error counterpart to the generic guidance repaired in #164925.
User Impact
Release validation can recognize that expected rejection without changing OpenClaw runtime behavior. Unexpected success, unrelated provider failures, and connection failures still fail the check. The scenario continues to verify the successful reply marker, native web-search request shape, reasoning effort, and exact raw provider rejection in Gateway logs.
Why This Change Was Made
The mismatch is in the test client, so the change adds only the precise current rejection to its existing accepted representations. The existing validator cases gain that real error shape and a negative control for an unrelated error with the same
LLM request rejectedprefix. Production formatting and general error matching remain unchanged.Evidence
The original release failure shows the intended provider rejection reaching the Gateway. On the remote Mac with Node 24.21.0, the unchanged client rejects that captured error; this candidate passes all eight acceptance and rejection controls in 24 ms. Targeted formatting and native type-aware lint pass.
Both native owner files passed: 23 tests in 1.25 seconds of Vitest execution (528.20 seconds including the normal runtime build preparation). The complete
pnpm test:docker:openai-web-search-minimalcommand passed on Linux in 645.30 seconds, including package construction, tarball integrity checks, and the synthetic scenario. Hosted CI is green. The fixture uses a loopback TLS mock and synthetic credentials; no real-provider test was run.