mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Preserve history when deduplicating agent sessions (#471)
* fix(hub): merge histories for duplicate agent sessions * fix(hub,web): refresh active duplicate history merges * fix(hub): avoid active-active history merges * fix(web): reset message window on history invalidation --------- Co-authored-by: Liu-KM <Liu-KM@users.noreply.github.com>
This commit is contained in:
@@ -214,6 +214,9 @@ export const SyncEventSchema = z.discriminatedUnion('type', [
|
||||
type: z.literal('message-received'),
|
||||
message: DecryptedMessageSchema
|
||||
}),
|
||||
SessionChangedSchema.extend({
|
||||
type: z.literal('messages-invalidated')
|
||||
}),
|
||||
MachineChangedSchema.extend({
|
||||
type: z.literal('machine-updated'),
|
||||
data: z.unknown().optional()
|
||||
|
||||
Reference in New Issue
Block a user