mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 11:21:07 +00:00
fix: preserve session thread ids in sessions changed events
This commit is contained in:
@@ -173,6 +173,7 @@ function emitSessionsChanged(
|
||||
lastChannel: sessionRow.lastChannel,
|
||||
lastTo: sessionRow.lastTo,
|
||||
lastAccountId: sessionRow.lastAccountId,
|
||||
lastThreadId: sessionRow.lastThreadId,
|
||||
totalTokens: sessionRow.totalTokens,
|
||||
totalTokensFresh: sessionRow.totalTokensFresh,
|
||||
contextTokens: sessionRow.contextTokens,
|
||||
|
||||
@@ -607,6 +607,10 @@ describe("gateway server sessions", () => {
|
||||
verboseLevel: "on",
|
||||
responseUsage: "full",
|
||||
fastMode: true,
|
||||
lastChannel: "telegram",
|
||||
lastTo: "-100123",
|
||||
lastAccountId: "acct-1",
|
||||
lastThreadId: 42,
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -643,6 +647,10 @@ describe("gateway server sessions", () => {
|
||||
verboseLevel: "on",
|
||||
responseUsage: "full",
|
||||
fastMode: true,
|
||||
lastChannel: "telegram",
|
||||
lastTo: "-100123",
|
||||
lastAccountId: "acct-1",
|
||||
lastThreadId: 42,
|
||||
}),
|
||||
new Set(["conn-1"]),
|
||||
{ dropIfSlow: true },
|
||||
|
||||
Reference in New Issue
Block a user