fix: apply Layer.fresh at instance service definition site (#18418)

This commit is contained in:
Kit Langton 2026-03-20 14:37:12 -04:00 committed by GitHub
commit d70099b059
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 2434 additions and 2139 deletions

View file

@ -34,7 +34,7 @@ export function withServices<S>(
project: Instance.project,
}),
)
let resolved: Layer.Layer<S> = Layer.fresh(layer).pipe(Layer.provide(ctx)) as any
let resolved: Layer.Layer<S> = layer.pipe(Layer.provide(ctx)) as any
if (options?.provide) {
for (const l of options.provide) {
resolved = resolved.pipe(Layer.provide(l)) as any