@assistant-ui/react 0.5.56 → 0.5.57
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/dist/index.d.mts +16 -8
- package/dist/index.d.ts +16 -8
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
@@ -1839,8 +1839,8 @@ var ExternalStoreRuntime = class extends BaseAssistantRuntime {
|
|
1839
1839
|
if (!this.store.onSwitchToNewThread)
|
1840
1840
|
throw new Error("Runtime does not support switching to new threads.");
|
1841
1841
|
this.thread = new ExternalStoreThreadRuntime({
|
1842
|
-
|
1843
|
-
|
1842
|
+
...this.store,
|
1843
|
+
messages: []
|
1844
1844
|
});
|
1845
1845
|
await this.store.onSwitchToNewThread();
|
1846
1846
|
}
|
@@ -1849,8 +1849,9 @@ var ExternalStoreRuntime = class extends BaseAssistantRuntime {
|
|
1849
1849
|
if (!this.store.onSwitchToThread)
|
1850
1850
|
throw new Error("Runtime does not support switching threads.");
|
1851
1851
|
this.thread = new ExternalStoreThreadRuntime({
|
1852
|
-
|
1853
|
-
|
1852
|
+
...this.store,
|
1853
|
+
messages: []
|
1854
|
+
// ignore messages until rerender
|
1854
1855
|
});
|
1855
1856
|
this.store.onSwitchToThread(threadId);
|
1856
1857
|
} else {
|