Guard OpenAI chat payload turns#86497
Conversation
|
Codex review: passed. Reviewed May 25, 2026, 10:24 AM ET / 14:24 UTC. Summary PR surface: Source +83, Tests +298, Docs +1. Total +382 across 10 files. Reproducibility: yes. source-reproducible for the OpenClaw-side malformed payload shape: current main has no final non-empty-turn guard, and the linked source PR shows a system/tool-only payload path plus focused transport proof. The exact qwen-long/qwen3-coder-plus provider error was not reproduced with the available DashScope account. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge Security Review detailsBest possible solution: Land the scoped ModelStudio/DashScope guard after exact-head checks pass, while keeping the compatibility-risk signal visible for maintainer acceptance of the local fail-closed behavior. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible for the OpenClaw-side malformed payload shape: current main has no final non-empty-turn guard, and the linked source PR shows a system/tool-only payload path plus focused transport proof. The exact qwen-long/qwen3-coder-plus provider error was not reproduced with the available DashScope account. Is this the best way to solve the issue? Yes: the PR checks the final payload after transport transforms and scopes the behavior to ModelStudio-like endpoints instead of making a global OpenAI-compatible invariant. A compatibility override is only needed if maintainers decide known-working system-only ModelStudio traffic must remain supported. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against f0bfb3fc338a. Label changesLabel justifications:
Evidence reviewedPR surface: Source +83, Tests +298, Docs +1. Total +382 across 10 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
ClawSweeper PR egg ✨ Hatched: 🥚 common Cosmic Lint Imp Hatch commandComment Hatchability rules:
Rarity: 🥚 common. What is this egg doing here?
|
|
🦞🧹
Draft PRs stay fix-only until GitHub marks them ready for review. Pause with Automerge progress:
|
be26fde to
e95029f
Compare
|
@clawsweeper automerge |
|
🦞👀 Command router queued. I will update this comment with the next step. |
1cca62f to
bfcdb10
Compare
bfcdb10 to
e16a3fe
Compare
Summary: - Adds a scoped ModelStudio/DashScope OpenAI-compatible guard for chat payloads with no non-empty user or assi ... turn, shared turn-detection helper coverage, prompt-skip handling, regression tests, and a changelog entry. - PR surface: Source +83, Tests +298, Docs +1. Total +382 across 10 files. - Reproducibility: yes. source-reproducible for the OpenClaw-side malformed payload shape: current main has no ... he exact qwen-long/qwen3-coder-plus provider error was not reproduced with the available DashScope account. Automerge notes: - PR branch already contained follow-up commit before automerge: fix: make OpenAI payload guard content-aware - PR branch already contained follow-up commit before automerge: fix: scope openai payload turn guard - PR branch already contained follow-up commit before automerge: Guard OpenAI chat payload turns Validation: - ClawSweeper review passed for head e16a3fe. - Required merge gates passed before the squash merge. Prepared head SHA: e16a3fe Review: openclaw#86497 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: Onur Solmaz <2453968+osolmaz@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: osolmaz Co-authored-by: osolmaz <2453968+osolmaz@users.noreply.github.com>
Summary: - Adds a scoped ModelStudio/DashScope OpenAI-compatible guard for chat payloads with no non-empty user or assi ... turn, shared turn-detection helper coverage, prompt-skip handling, regression tests, and a changelog entry. - PR surface: Source +83, Tests +298, Docs +1. Total +382 across 10 files. - Reproducibility: yes. source-reproducible for the OpenClaw-side malformed payload shape: current main has no ... he exact qwen-long/qwen3-coder-plus provider error was not reproduced with the available DashScope account. Automerge notes: - PR branch already contained follow-up commit before automerge: fix: make OpenAI payload guard content-aware - PR branch already contained follow-up commit before automerge: fix: scope openai payload turn guard - PR branch already contained follow-up commit before automerge: Guard OpenAI chat payload turns Validation: - ClawSweeper review passed for head e16a3fe. - Required merge gates passed before the squash merge. Prepared head SHA: e16a3fe Review: openclaw#86497 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: Onur Solmaz <2453968+osolmaz@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: osolmaz Co-authored-by: osolmaz <2453968+osolmaz@users.noreply.github.com>
Summary: - Adds a scoped ModelStudio/DashScope OpenAI-compatible guard for chat payloads with no non-empty user or assi ... turn, shared turn-detection helper coverage, prompt-skip handling, regression tests, and a changelog entry. - PR surface: Source +83, Tests +298, Docs +1. Total +382 across 10 files. - Reproducibility: yes. source-reproducible for the OpenClaw-side malformed payload shape: current main has no ... he exact qwen-long/qwen3-coder-plus provider error was not reproduced with the available DashScope account. Automerge notes: - PR branch already contained follow-up commit before automerge: fix: make OpenAI payload guard content-aware - PR branch already contained follow-up commit before automerge: fix: scope openai payload turn guard - PR branch already contained follow-up commit before automerge: Guard OpenAI chat payload turns Validation: - ClawSweeper review passed for head e16a3fe. - Required merge gates passed before the squash merge. Prepared head SHA: e16a3fe Review: openclaw#86497 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: Onur Solmaz <2453968+osolmaz@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: osolmaz Co-authored-by: osolmaz <2453968+osolmaz@users.noreply.github.com>
Summary: - Adds a scoped ModelStudio/DashScope OpenAI-compatible guard for chat payloads with no non-empty user or assi ... turn, shared turn-detection helper coverage, prompt-skip handling, regression tests, and a changelog entry. - PR surface: Source +83, Tests +298, Docs +1. Total +382 across 10 files. - Reproducibility: yes. source-reproducible for the OpenClaw-side malformed payload shape: current main has no ... he exact qwen-long/qwen3-coder-plus provider error was not reproduced with the available DashScope account. Automerge notes: - PR branch already contained follow-up commit before automerge: fix: make OpenAI payload guard content-aware - PR branch already contained follow-up commit before automerge: fix: scope openai payload turn guard - PR branch already contained follow-up commit before automerge: Guard OpenAI chat payload turns Validation: - ClawSweeper review passed for head e16a3fe. - Required merge gates passed before the squash merge. Prepared head SHA: e16a3fe Review: openclaw#86497 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: Onur Solmaz <2453968+osolmaz@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: osolmaz Co-authored-by: osolmaz <2453968+osolmaz@users.noreply.github.com>
Summary: - Adds a scoped ModelStudio/DashScope OpenAI-compatible guard for chat payloads with no non-empty user or assi ... turn, shared turn-detection helper coverage, prompt-skip handling, regression tests, and a changelog entry. - PR surface: Source +83, Tests +298, Docs +1. Total +382 across 10 files. - Reproducibility: yes. source-reproducible for the OpenClaw-side malformed payload shape: current main has no ... he exact qwen-long/qwen3-coder-plus provider error was not reproduced with the available DashScope account. Automerge notes: - PR branch already contained follow-up commit before automerge: fix: make OpenAI payload guard content-aware - PR branch already contained follow-up commit before automerge: fix: scope openai payload turn guard - PR branch already contained follow-up commit before automerge: Guard OpenAI chat payload turns Validation: - ClawSweeper review passed for head e16a3fe. - Required merge gates passed before the squash merge. Prepared head SHA: e16a3fe Review: openclaw#86497 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: Onur Solmaz <2453968+osolmaz@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: osolmaz Co-authored-by: osolmaz <2453968+osolmaz@users.noreply.github.com>
Summary: - Adds a scoped ModelStudio/DashScope OpenAI-compatible guard for chat payloads with no non-empty user or assi ... turn, shared turn-detection helper coverage, prompt-skip handling, regression tests, and a changelog entry. - PR surface: Source +83, Tests +298, Docs +1. Total +382 across 10 files. - Reproducibility: yes. source-reproducible for the OpenClaw-side malformed payload shape: current main has no ... he exact qwen-long/qwen3-coder-plus provider error was not reproduced with the available DashScope account. Automerge notes: - PR branch already contained follow-up commit before automerge: fix: make OpenAI payload guard content-aware - PR branch already contained follow-up commit before automerge: fix: scope openai payload turn guard - PR branch already contained follow-up commit before automerge: Guard OpenAI chat payload turns Validation: - ClawSweeper review passed for head e16a3fe. - Required merge gates passed before the squash merge. Prepared head SHA: e16a3fe Review: openclaw#86497 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: Onur Solmaz <2453968+osolmaz@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: osolmaz Co-authored-by: osolmaz <2453968+osolmaz@users.noreply.github.com>
Summary: - Adds a scoped ModelStudio/DashScope OpenAI-compatible guard for chat payloads with no non-empty user or assi ... turn, shared turn-detection helper coverage, prompt-skip handling, regression tests, and a changelog entry. - PR surface: Source +83, Tests +298, Docs +1. Total +382 across 10 files. - Reproducibility: yes. source-reproducible for the OpenClaw-side malformed payload shape: current main has no ... he exact qwen-long/qwen3-coder-plus provider error was not reproduced with the available DashScope account. Automerge notes: - PR branch already contained follow-up commit before automerge: fix: make OpenAI payload guard content-aware - PR branch already contained follow-up commit before automerge: fix: scope openai payload turn guard - PR branch already contained follow-up commit before automerge: Guard OpenAI chat payload turns Validation: - ClawSweeper review passed for head e16a3fe. - Required merge gates passed before the squash merge. Prepared head SHA: e16a3fe Review: openclaw#86497 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: Onur Solmaz <2453968+osolmaz@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: osolmaz Co-authored-by: osolmaz <2453968+osolmaz@users.noreply.github.com>
Makes #86177 merge-ready for the ClawSweeper automerge loop.
The edit pass should inspect the live PR diff, review comments, and failing checks; rebase if needed; keep the contributor branch credited; and stop only when validation is green or an external blocker is proven.
ClawSweeper 🐠 replacement reef notes:
Inherited issue-closing references from the source PR:
Fixes #86145
Co-author credit kept:
fish notes: model gpt-5.5, reasoning high; reviewed against be26fde.