You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d1b8b76
Browse filesBrowse the repository at this point in the historyBrowse files
feat(bedrock): show progress updates as text before their tool call
With reasoning off, Bedrock requests display "updates" for Opus 5.5,
Fable 5/5.1 and Mythos 5.1 (c7afb17). Under that display only
progress-update blocks carry text: short notes the model writes for the
user between tool calls. Zoo showed them in the collapsed Thinking box.
Anthropic's docs say to render them as text before the tool_use block
they introduce:
- https://platform.claude.com/docs/en/build-with-claude/thinking#progress-updates
- https://platform.claude.com/docs/en/models/opus-5-5/migration-guide#text-between-tool-calls
Bedrock now emits that text as a new `progress_update` stream chunk.
Task shows it as its own text row, but leaves it out of the assistant
text recorded in the API history. The provider expects the original
thinking block back, and a text block with the same content would be
an edit of the turn.
With reasoning on (display "summarized"), reasoning summaries and
progress updates can't be told apart, so they stay in the Thinking box.
Text blocks now accumulate their own chunks instead of copying the
whole-response buffer. Otherwise a text block started after a progress
update would repeat the text from before it.
See also Zoo-Code-Org#1820.
// Under "updates" only progress-update blocks carry text, so all streamed thinking text
626
+
// is prose for the user, rendered like assistant text ahead of its tool call.
627
+
// See https://platform.claude.com/docs/en/build-with-claude/thinking#progress-updates
* Text the model wrote for the user between tool calls, delivered by the provider
37
+
* inside a `thinking` block rather than a `text` block.
38
+
*
39
+
* Rendered like assistant text ahead of the tool call it introduces, but not recorded
40
+
* as a `text` block in the API history: the provider expects it back as the original
41
+
* thinking block.
42
+
* See https://platform.claude.com/docs/en/models/opus-5-5/migration-guide#text-between-tool-calls
43
+
*/
44
+
exportinterfaceApiStreamProgressUpdateChunk{
45
+
type: "progress_update"
46
+
text: string
47
+
}
48
+
34
49
/**
35
50
* Reasoning/thinking chunk from the API stream.
36
51
* For Anthropic extended thinking, this may include a signature field
0 commit comments