fix(ollama): strip inline kimi cloud reasoning leak#86515
Conversation
|
Codex review: passed. Reviewed May 25, 2026, 11:12 AM ET / 15:12 UTC. Summary PR surface: Source +183, Tests +473, Docs +1. Total +657 across 7 files. Reproducibility: yes. from source and the linked report: current main appends Ollama Review metrics: none identified. 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 Ollama-plugin sanitizer once required checks pass and maintainers accept the bounded Kimi-cloud heuristic, keeping any broader provider-independent reasoning handling as separate work. Do we have a high-confidence way to reproduce the issue? Yes, from source and the linked report: current main appends Ollama Is this the best way to solve the issue? Yes, this is the narrowest maintainable path I found: it stays inside the Ollama plugin, scopes to Kimi cloud refs, handles final and streaming output, and covers sibling non-Kimi behavior. The bounded streaming heuristic remains the main maintainer tradeoff. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 8da8bc4aadfc. Label changesLabel justifications:
Evidence reviewedPR surface: Source +183, Tests +473, Docs +1. Total +657 across 7 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 Velvet Merge Sprite Hatch commandComment Hatchability rules:
Rarity: 🥚 common. What is this egg doing here?
|
|
🦞✅ Source: What merged:
Automerge notes:
The automerge loop is complete. Automerge progress:
|
Summary: - This PR adds an Ollama Kimi-cloud visible-content sanitizer for streamed and final assistant replies, updates stream handling and regression tests, and adds a changelog entry. - PR surface: Source +183, Tests +473, Docs +1. Total +657 across 7 files. - Reproducibility: yes. from source and the linked report: current main appends Ollama `message.content` direc ... payload described in the issue would be shown. I did not run a live vendor repro in this read-only review. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(ollama): sanitize kimi inline reasoning in stream events - PR branch already contained follow-up commit before automerge: fix(ollama): buffer kimi cloud stream reasoning - PR branch already contained follow-up commit before automerge: fix(ollama): cover kimi inline boundary variants - PR branch already contained follow-up commit before automerge: fix(ollama): preserve text start partial state - PR branch already contained follow-up commit before automerge: fix(ollama): bound kimi stream sanitizer hold - PR branch already contained follow-up commit before automerge: fix(ollama): keep kimi sanitizer deltas append-only Validation: - ClawSweeper review passed for head b709229. - Required merge gates passed before the squash merge. Prepared head SHA: b709229 Review: openclaw#86515 (comment) Co-authored-by: Jason O'Neal <jason.allen.oneal@gmail.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: - This PR adds an Ollama Kimi-cloud visible-content sanitizer for streamed and final assistant replies, updates stream handling and regression tests, and adds a changelog entry. - PR surface: Source +183, Tests +473, Docs +1. Total +657 across 7 files. - Reproducibility: yes. from source and the linked report: current main appends Ollama `message.content` direc ... payload described in the issue would be shown. I did not run a live vendor repro in this read-only review. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(ollama): sanitize kimi inline reasoning in stream events - PR branch already contained follow-up commit before automerge: fix(ollama): buffer kimi cloud stream reasoning - PR branch already contained follow-up commit before automerge: fix(ollama): cover kimi inline boundary variants - PR branch already contained follow-up commit before automerge: fix(ollama): preserve text start partial state - PR branch already contained follow-up commit before automerge: fix(ollama): bound kimi stream sanitizer hold - PR branch already contained follow-up commit before automerge: fix(ollama): keep kimi sanitizer deltas append-only Validation: - ClawSweeper review passed for head b709229. - Required merge gates passed before the squash merge. Prepared head SHA: b709229 Review: openclaw#86515 (comment) Co-authored-by: Jason O'Neal <jason.allen.oneal@gmail.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: - This PR adds an Ollama Kimi-cloud visible-content sanitizer for streamed and final assistant replies, updates stream handling and regression tests, and adds a changelog entry. - PR surface: Source +183, Tests +473, Docs +1. Total +657 across 7 files. - Reproducibility: yes. from source and the linked report: current main appends Ollama `message.content` direc ... payload described in the issue would be shown. I did not run a live vendor repro in this read-only review. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(ollama): sanitize kimi inline reasoning in stream events - PR branch already contained follow-up commit before automerge: fix(ollama): buffer kimi cloud stream reasoning - PR branch already contained follow-up commit before automerge: fix(ollama): cover kimi inline boundary variants - PR branch already contained follow-up commit before automerge: fix(ollama): preserve text start partial state - PR branch already contained follow-up commit before automerge: fix(ollama): bound kimi stream sanitizer hold - PR branch already contained follow-up commit before automerge: fix(ollama): keep kimi sanitizer deltas append-only Validation: - ClawSweeper review passed for head b709229. - Required merge gates passed before the squash merge. Prepared head SHA: b709229 Review: openclaw#86515 (comment) Co-authored-by: Jason O'Neal <jason.allen.oneal@gmail.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: - This PR adds an Ollama Kimi-cloud visible-content sanitizer for streamed and final assistant replies, updates stream handling and regression tests, and adds a changelog entry. - PR surface: Source +183, Tests +473, Docs +1. Total +657 across 7 files. - Reproducibility: yes. from source and the linked report: current main appends Ollama `message.content` direc ... payload described in the issue would be shown. I did not run a live vendor repro in this read-only review. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(ollama): sanitize kimi inline reasoning in stream events - PR branch already contained follow-up commit before automerge: fix(ollama): buffer kimi cloud stream reasoning - PR branch already contained follow-up commit before automerge: fix(ollama): cover kimi inline boundary variants - PR branch already contained follow-up commit before automerge: fix(ollama): preserve text start partial state - PR branch already contained follow-up commit before automerge: fix(ollama): bound kimi stream sanitizer hold - PR branch already contained follow-up commit before automerge: fix(ollama): keep kimi sanitizer deltas append-only Validation: - ClawSweeper review passed for head b709229. - Required merge gates passed before the squash merge. Prepared head SHA: b709229 Review: openclaw#86515 (comment) Co-authored-by: Jason O'Neal <jason.allen.oneal@gmail.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: - This PR adds an Ollama Kimi-cloud visible-content sanitizer for streamed and final assistant replies, updates stream handling and regression tests, and adds a changelog entry. - PR surface: Source +183, Tests +473, Docs +1. Total +657 across 7 files. - Reproducibility: yes. from source and the linked report: current main appends Ollama `message.content` direc ... payload described in the issue would be shown. I did not run a live vendor repro in this read-only review. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(ollama): sanitize kimi inline reasoning in stream events - PR branch already contained follow-up commit before automerge: fix(ollama): buffer kimi cloud stream reasoning - PR branch already contained follow-up commit before automerge: fix(ollama): cover kimi inline boundary variants - PR branch already contained follow-up commit before automerge: fix(ollama): preserve text start partial state - PR branch already contained follow-up commit before automerge: fix(ollama): bound kimi stream sanitizer hold - PR branch already contained follow-up commit before automerge: fix(ollama): keep kimi sanitizer deltas append-only Validation: - ClawSweeper review passed for head b709229. - Required merge gates passed before the squash merge. Prepared head SHA: b709229 Review: openclaw#86515 (comment) Co-authored-by: Jason O'Neal <jason.allen.oneal@gmail.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: - This PR adds an Ollama Kimi-cloud visible-content sanitizer for streamed and final assistant replies, updates stream handling and regression tests, and adds a changelog entry. - PR surface: Source +183, Tests +473, Docs +1. Total +657 across 7 files. - Reproducibility: yes. from source and the linked report: current main appends Ollama `message.content` direc ... payload described in the issue would be shown. I did not run a live vendor repro in this read-only review. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(ollama): sanitize kimi inline reasoning in stream events - PR branch already contained follow-up commit before automerge: fix(ollama): buffer kimi cloud stream reasoning - PR branch already contained follow-up commit before automerge: fix(ollama): cover kimi inline boundary variants - PR branch already contained follow-up commit before automerge: fix(ollama): preserve text start partial state - PR branch already contained follow-up commit before automerge: fix(ollama): bound kimi stream sanitizer hold - PR branch already contained follow-up commit before automerge: fix(ollama): keep kimi sanitizer deltas append-only Validation: - ClawSweeper review passed for head b709229. - Required merge gates passed before the squash merge. Prepared head SHA: b709229 Review: openclaw#86515 (comment) Co-authored-by: Jason O'Neal <jason.allen.oneal@gmail.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: - This PR adds an Ollama Kimi-cloud visible-content sanitizer for streamed and final assistant replies, updates stream handling and regression tests, and adds a changelog entry. - PR surface: Source +183, Tests +473, Docs +1. Total +657 across 7 files. - Reproducibility: yes. from source and the linked report: current main appends Ollama `message.content` direc ... payload described in the issue would be shown. I did not run a live vendor repro in this read-only review. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(ollama): sanitize kimi inline reasoning in stream events - PR branch already contained follow-up commit before automerge: fix(ollama): buffer kimi cloud stream reasoning - PR branch already contained follow-up commit before automerge: fix(ollama): cover kimi inline boundary variants - PR branch already contained follow-up commit before automerge: fix(ollama): preserve text start partial state - PR branch already contained follow-up commit before automerge: fix(ollama): bound kimi stream sanitizer hold - PR branch already contained follow-up commit before automerge: fix(ollama): keep kimi sanitizer deltas append-only Validation: - ClawSweeper review passed for head b709229. - Required merge gates passed before the squash merge. Prepared head SHA: b709229 Review: openclaw#86515 (comment) Co-authored-by: Jason O'Neal <jason.allen.oneal@gmail.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 #86286 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 #86129
Co-author credit kept:
fish notes: model gpt-5.5, reasoning high; reviewed against b709229.