fix(core): settle unadvertised tool calls and repair session hook test contexts

This commit is contained in:
Kit Langton
2026-07-07 21:51:23 -04:00
parent 1c09c682a4
commit 969458ac0a
5 changed files with 30 additions and 5 deletions
+3 -1
View File
@@ -83,7 +83,9 @@ export function host(overrides: Overrides = {}): PluginContext {
prompt: () => Effect.die("unused session.prompt"),
command: () => Effect.die("unused session.command"),
interrupt: () => Effect.die("unused session.interrupt"),
hook: () => Effect.die("unused session.hook"),
// Plugins register session hooks during setup, so a bare host accepts the
// registration; the callback only runs when a test triggers the request pipeline.
hook: () => Effect.succeed({ dispose: Effect.void }),
},
}
}