refactor(connection): carry Host facts with generations

This commit is contained in:
imccyu
2026-08-27 22:26:28 +08:00
parent 17c03bbbcc
commit e036aae7c0
24 changed files with 298 additions and 106 deletions
@@ -111,7 +111,7 @@ export function apply(ctx: Context): void {
})
control.start()
ctx.on('connection/reset', () => { sessions.handleConnected() })
if (connection.hostDescription.getSnapshot() !== undefined) sessions.handleConnected()
if (connection.generation.getSnapshot() !== undefined) sessions.handleConnected()
ctx.typert.contexts.registerClient('agent', {
identity: candidate => sessions.scopeOf(candidate),
resolve: sessionId => sessions.resolveAgentScope(sessionId),