fix(webui): share sidebar and Composer run state (#6337)
This commit is contained in:
1 parent
3d0f8feb77
commit
5ae49a43e7
13 files changed
+378
-374
No files matched your search
@@ -299,8 +299,8 @@ describe("durable run recovery", () => {
|
||||
running();
|
||||
sockets[0].receive({ event: "delta", chat_id: "inactive", turn_id: "turn-old", text: "The" });
|
||||
const cachedAtCompletion: WebuiThreadPersistedPayload[] = [];
|
||||
client.onRunStatus((chatId, startedAt) => {
|
||||
if (startedAt === null) cachedAtCompletion.push(webuiThreadCache.get(`websocket:${chatId}`)!);
|
||||
client.onRunStatus((chatId, state) => {
|
||||
if (!state.active) cachedAtCompletion.push(webuiThreadCache.get(`websocket:${chatId}`)!);
|
||||
});
|
||||
|
||||
await reopen();
|
||||
|
||||
Reference in new issue
Block a user