botholomew 0.18.3 → 0.18.4
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.
package/package.json
CHANGED
|
@@ -123,6 +123,13 @@ export function useMessageQueue({
|
|
|
123
123
|
try {
|
|
124
124
|
await sendMessage(sessionRef.current, entry.content, {
|
|
125
125
|
onToken: (token) => {
|
|
126
|
+
// Mirror the text→tool flush in onToolStart: when text begins
|
|
127
|
+
// streaming after one or more completed tool calls, push the
|
|
128
|
+
// pending tools into Static so the dynamic frame doesn't
|
|
129
|
+
// re-reconcile their boxes on every token flush.
|
|
130
|
+
if (!currentText && pendingToolCalls.length > 0) {
|
|
131
|
+
finalizeSegment();
|
|
132
|
+
}
|
|
126
133
|
currentText += token;
|
|
127
134
|
const now = Date.now();
|
|
128
135
|
if (now - lastStreamFlush >= 50) {
|