This commit is contained in:
Sebastian Herrlinger
2026-03-26 21:58:27 +01:00
parent af84d212fe
commit 46fb6ed89f

View File

@@ -1352,12 +1352,14 @@ export namespace Config {
}
}
deps.push(
iife(async () => {
const shouldInstall = await needsInstall(dir)
if (shouldInstall) await installDependencies(dir)
}),
)
const dep = iife(async () => {
const stale = await needsInstall(dir)
if (stale) await installDependencies(dir)
})
void dep.catch((err) => {
log.warn("background dependency install failed", { dir, error: err })
})
deps.push(dep)
result.command = mergeDeep(result.command ?? {}, yield* Effect.promise(() => loadCommand(dir)))
result.agent = mergeDeep(result.agent, yield* Effect.promise(() => loadAgent(dir)))