fix(opencode): provide Observability beneath all route service graphs (#35171)
This commit is contained in:
parent
a4fed69a82
commit
9aab24e95e
1 changed files with 5 additions and 2 deletions
|
|
@ -292,8 +292,6 @@ export function createRoutes(
|
|||
HttpServer.layerServices,
|
||||
]),
|
||||
Layer.provide(Layer.succeed(CorsConfig)(corsOptions)),
|
||||
Layer.provideMerge(Observability.layer),
|
||||
|
||||
Layer.provide(sessionLocationLayer),
|
||||
Layer.provide(locationLayer),
|
||||
Layer.provide(PtyEnvironment.layer),
|
||||
|
|
@ -306,6 +304,11 @@ export function createRoutes(
|
|||
Layer.provide(locationServiceMapV2),
|
||||
|
||||
Layer.provide(AppNodeBuilderV1.build(app)),
|
||||
// Must stay last: layers provided later in this pipe build beneath earlier ones,
|
||||
// so Observability must come after every service graph. Otherwise eagerly forked
|
||||
// fibers (e.g. the ModelsDev background refresh) capture Effect's default stdout
|
||||
// logger and corrupt the TUI (#34730).
|
||||
Layer.provideMerge(Observability.layer),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue