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:
Qianli Liu
2026-04-21 13:56:50 +08:00
committed by GitHub
co-authored by Liu-KM
parent 1cb353b7b3
commit f097f10716
5 changed files with 217 additions and 59 deletions
+1
View File
@@ -202,6 +202,7 @@ export class SyncEngine {
collaborationMode?: CodexCollaborationMode
}): void {
this.sessionCache.handleSessionAlive(payload)
this.triggerDedupIfNeeded(payload.sid)
}
handleSessionEnd(payload: { sid: string; time: number }): void {