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

Method handleSessionAlive

hub/src/sync/syncEngine.ts:293–306  ·  view source on GitHub ↗
(payload: {
        sid: string
        time: number
        thinking?: boolean
        mode?: 'local' | 'remote'
        permissionMode?: PermissionMode
        model?: string | null
        modelReasoningEffort?: string | null
        effort?: string | null
        collaborationMode?: CodexCollaborationMode
    })

Source from the content-addressed store, hash-verified

291 }
292
293 handleSessionAlive(payload: {
294 sid: string
295 time: number
296 thinking?: boolean
297 mode?: 'local' | 'remote'
298 permissionMode?: PermissionMode
299 model?: string | null
300 modelReasoningEffort?: string | null
301 effort?: string | null
302 collaborationMode?: CodexCollaborationMode
303 }): void {
304 this.sessionCache.handleSessionAlive(payload)
305 this.triggerDedupIfNeeded(payload.sid)
306 }
307
308 clearQueuedThinkingGrace(sessionId: string): void {
309 this.sessionCache.clearQueuedThinkingGrace(sessionId)

Callers 4

startHubFunction · 0.45

Calls 1

triggerDedupIfNeededMethod · 0.95

Tested by

no test coverage detected