fix: bind stdio to its configured agent

This commit is contained in:
Tianyi Cui
2026-07-14 09:23:02 +08:00
parent a21802ce14
commit 2dea4afac0
4 changed files with 53 additions and 19 deletions

View File

@@ -124,5 +124,8 @@ export function apply(ctx: Context, config: Config): void {
ctx.plugin(SessionPersistenceJsonl, { root: config.persistenceRoot ?? './.sessions' })
ctx.plugin(UserInteractionService)
ctx.plugin(toolAskUser)
ctx.plugin(uiStdio, { welcome: config.welcome ?? 'ready.' })
ctx.plugin(uiStdio, {
welcome: config.welcome ?? 'ready.',
...config.resumeSessionId !== undefined ? { resumeSessionId: config.resumeSessionId } : {},
})
}