fix(tasks): bound per-session background work

This commit is contained in:
pku-xht
2026-08-11 16:23:05 +08:00
parent b6cd817aca
commit f32a51b284
46 changed files with 684 additions and 71 deletions
@@ -572,6 +572,7 @@ describe('completion notices', () => {
const prior = producer({ kind: 'pty-send' })
ctx.tasks.start(prior.spec)
prior.settle({ status: 'completed' })
await tick()
}
const inject = vi.fn()
const owner = fakeAgent(ctx, 'sess-1', inject)