-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
[Bug]: OpenAI strict tool schema downgrade diagnostic repeats on nearly every request #82930
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.maintainerMaintainer-authored PRMaintainer-authored PR
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.maintainerMaintainer-authored PRMaintainer-authored PR
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
OpenAI Responses strict tool schema downgrade diagnostics repeat on nearly every request for an Azure OpenAI Responses route when the visible tool inventory contains strict-incompatible schemas.
Steps to reproduce
Expected behavior
The provider payload should still downgrade to
strict=falsewhen the tool inventory is not strict-compatible, but the debug diagnostic for the same provider/model/transport/tool-violation signature should not be emitted on every request.Actual behavior
The gateway repeatedly logs the same downgrade diagnostic:
The local evidence captured repeats within seconds at log lines 227, 238, 247, 259, and 268, and the broader log had 2,068 matching lines.
OpenClaw version
NOT_ENOUGH_INFO
Operating system
NOT_ENOUGH_INFO
Install method
pnpm dev / gateway dev log capture
Model
azure-openai-responses/gpt-5.3-codex
Provider / routing chain
openclaw -> azure-openai-responses
Additional provider/model setup details
The observed route is an Azure OpenAI Responses route. Private deployment names, session identifiers, local paths, and scheduled job names are intentionally redacted from this public report.
Logs, screenshots, and evidence
Impact and severity
Affected: OpenClaw gateway/agent runs using native OpenAI/Azure OpenAI strict tool shaping with a strict-incompatible visible tool inventory.
Severity: Medium. The requests can still proceed with
strict=false, but provider-side validation is reduced for that inventory and debug logs are flooded with repeated diagnostics.Frequency: Repeated on nearly every observed request in the affected log.
Consequence: Heavy debug noise makes real provider diagnostics harder to inspect and obscures whether a new tool schema incompatibility appeared.
Additional information
The current code path recomputes diagnostics and calls
log.debugwheneverstrictSetting === true, resolved strict mode isfalse, and debug logging is enabled. There is no de-duplication for the same provider/model/transport/tool-violation signature.