test(core): wait for subagent tool registration

This commit is contained in:
Kit Langton 2026-06-30 14:36:01 -04:00
commit 10d82a60c6

View file

@ -303,6 +303,7 @@ describe("SubagentTool", () => {
yield* withSubagent(parent.location)
const locations = yield* LocationServiceMap.Service
const registry = yield* ToolRegistry.Service.pipe(Effect.provide(locations.get(parent.location)))
yield* waitForTool(registry, SubagentTool.name)
const settled = yield* settleTool(registry, {
sessionID: parent.id,