fix(core): await initial plugin readiness (#35755)

This commit is contained in:
Kit Langton
2026-07-08 15:12:45 -04:00
committed by GitHub
parent f7eb76c600
commit 2a8ac09d36
13 changed files with 484 additions and 84 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ const layer = Layer.effect(
const skillDirs = yield* skill.dirs()
const referenceDirs = Object.keys(cfg.references ?? cfg.reference ?? {}).length
? yield* Effect.gen(function* () {
yield* (yield* PluginSupervisor.Service).ready
yield* (yield* PluginSupervisor.Service).flush
return (yield* (yield* Reference.Service).list()).map((reference) => reference.path)
}).pipe(Effect.provide(locations.get(Location.Ref.make({ directory: AbsolutePath.make(ctx.directory) }))))
: []