Skip to content

fix: stream Bedrock reasoning content deltas#2062

Open
pecpwee wants to merge 1 commit into
JetBrains:developfrom
pecpwee:codex/bedrock-reasoning-content-streaming-patch
Open

fix: stream Bedrock reasoning content deltas#2062
pecpwee wants to merge 1 commit into
JetBrains:developfrom
pecpwee:codex/bedrock-reasoning-content-streaming-patch

Conversation

@pecpwee
Copy link
Copy Markdown
Contributor

@pecpwee pecpwee commented May 24, 2026

Emit reasoning text deltas from Bedrock Converse streaming responses as StreamFrame.ReasoningDelta.

Previously, ContentBlockDelta.ReasoningContent chunks were treated as unsupported, so providers/models that stream reasoning through Bedrock Converse dropped those deltas. This change maps ReasoningContentBlockDelta.Text to Koog reasoning stream frames while continuing to skip redacted content and signatures.

Also adds a regression test covering Converse streaming reasoning deltas.

I’ve verified this on Bedrock’s minimax.minimax-m2.5 model. After the code changes, the reasoning content is now displayed correctly.

@pecpwee
Copy link
Copy Markdown
Contributor Author

pecpwee commented May 24, 2026

@aozherelyeva Could you please review this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant