Repository navigation
Conversation
When a model like kimi-k2.6 returns reasoning_content in stream deltas even with reasoning disabled, the parser still detected the field and marked strict content partitioning. This caused the reasoning text to leak into visible output. Only scan for reasoning fields when shouldEmitReasoning is true. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
Thanks for the context here. I did a careful shell check against current Close: current main and v2026.6.10 already include the safe OpenAI-compatible reasoning fix from the merged replacement PR, while this branch reintroduces the unsafe scan gate and still lacks real Moonshot proof. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the shipped #89436 behavior and handle any remaining Moonshot-specific leak on #96732 with raw current-main stream proof. Do we have a high-confidence way to reproduce the issue? Yes for the PR regression: current tests and parser source show that mirrored Is this the best way to solve the issue? No. The best solution is already on main: keep reasoning-field detection as a sanitization signal and gate only emitted thinking blocks across both OpenAI-compatible parser paths. Security review: Security review needs attention: The diff weakens a hidden-reasoning disclosure boundary by skipping strict partitioning when reasoning output is disabled.
AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against d1b917120a47; fix evidence: release v2026.6.10, commit 06434d85a053. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
reasoning_contentin stream deltas even with reasoning disabled, the parser still detected the field and marked strict content partitioning, causing reasoning text to leak into visible chat outputreasoning_content,reasoning,reasoning_text) whenshouldEmitReasoningis true, so disabled-reasoning models don't trigger content partitioning from unprocessed reasoning deltasTest plan
Closes #96732
🤖 Generated with Claude Code