MCPcopy Create free account
hub / github.com/tiann/hapi / mergeSessionHistory

Method mergeSessionHistory

hub/src/sync/sessionCache.ts:670–680  ·  view source on GitHub ↗
(
        oldSessionId: string,
        newSessionId: string,
        namespace: string,
        options: { mergeAgentState?: boolean } = {}
    )

Source from the content-addressed store, hash-verified

668 }
669
670 async mergeSessionHistory(
671 oldSessionId: string,
672 newSessionId: string,
673 namespace: string,
674 options: { mergeAgentState?: boolean } = {}
675 ): Promise<void> {
676 await this.mergeSessionData(oldSessionId, newSessionId, namespace, {
677 deleteOldSession: false,
678 mergeAgentState: options.mergeAgentState ?? true
679 })
680 }
681
682 private async mergeSessionData(
683 oldSessionId: string,

Callers 2

Calls 1

mergeSessionDataMethod · 0.95

Tested by

no test coverage detected