@lobehub/lobehub 2.0.0-next.317 → 2.0.0-next.318
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 2.0.0-next.318](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.317...v2.0.0-next.318)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2026-01-20**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix parallel tools calling race issue.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix parallel tools calling race issue, closes [#11626](https://github.com/lobehub/lobe-chat/issues/11626) ([34bdcd4](https://github.com/lobehub/lobe-chat/commit/34bdcd4))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 2.0.0-next.317](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.316...v2.0.0-next.317)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2026-01-19**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lobehub",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.318",
|
|
4
4
|
"description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -731,6 +731,14 @@ export const streamingExecutor: StateCreator<
|
|
|
731
731
|
result.newState.status,
|
|
732
732
|
);
|
|
733
733
|
|
|
734
|
+
// After parallel tool batch completes, refresh messages to ensure all tool results are synced
|
|
735
|
+
// This fixes the race condition where each tool's replaceMessages may overwrite others
|
|
736
|
+
// REMEMBER: There is no test for it (too hard to add), if you want to change it , ask @arvinxx first
|
|
737
|
+
if (result.nextContext?.phase === 'tools_batch_result') {
|
|
738
|
+
log('[internal_execAgentRuntime] Tools batch completed, refreshing messages to sync state');
|
|
739
|
+
await get().refreshMessages(context);
|
|
740
|
+
}
|
|
741
|
+
|
|
734
742
|
// Handle completion and error events
|
|
735
743
|
for (const event of result.events) {
|
|
736
744
|
switch (event.type) {
|