refactor(subagent): narrow continuation interface

This commit is contained in:
Tianyi Cui
2026-07-28 00:10:24 +08:00
committed by imccyu
parent 644bf00b86
commit f14121a4c2
55 changed files with 669 additions and 441 deletions

View File

@@ -76,5 +76,7 @@ export function apply(ctx: Context): void {
// Before each request, persist everything committed by the preceding step;
// the first step's call is an intentional no-op beyond any prompt intake.
ctx.on('agent/step', (agent): Promise<void> => ctx.sessions.flush(agent.session))
ctx.on('agent/step', async (agent): Promise<void> => {
await ctx.sessions.flush(agent.session)
})
}