fix(agent): align consumers with inbox lifecycle

This commit is contained in:
_Kerman
2026-08-03 13:14:24 +08:00
parent e011d3b238
commit f4a2e0d10a
13 changed files with 167 additions and 85 deletions

View File

@@ -72,7 +72,9 @@ export function apply(ctx: Context, config: Config): void {
const instructionVersions: InstructionVersionCache = new WeakMap()
const projectionLifecycle = new AbortController()
ctx.effect(
() => () =>{ projectionLifecycle.abort(new Error('workspace-context disposed')); },
() => () => {
projectionLifecycle.abort(new Error('workspace-context disposed'))
},
'workspace-context.projectionLifecycle',
)
// Emit listeners are not awaited, so each projection must compose against the