@bivy/bivy 0.17.1-staging.5 → 0.17.1-staging.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -71,6 +71,14 @@ export function messageContentAtoms(message) {
|
|
|
71
71
|
}
|
|
72
72
|
else if (type === "text")
|
|
73
73
|
pushText(b.text);
|
|
74
|
+
// Reasoning is an atom too: Claude streams each thinking block as its own
|
|
75
|
+
// assistant message, and without this a reloaded thinking-only message had
|
|
76
|
+
// no atoms, read as "opaque", and was re-appended after the final answer.
|
|
77
|
+
else if (type === "thinking" || type === "reasoning") {
|
|
78
|
+
const text = thinkingTextFromContent([b]).trim();
|
|
79
|
+
if (text)
|
|
80
|
+
texts.push(`thinking#${text}`);
|
|
81
|
+
}
|
|
74
82
|
}
|
|
75
83
|
}
|
|
76
84
|
return { toolIds, texts };
|
package/package.json
CHANGED