fix(tui): gate Zed context on terminal env (#28517)

This commit is contained in:
Kit Langton
2026-05-20 16:52:33 -04:00
committed by GitHub
parent 09603ed52f
commit 43c24d8d0f
4 changed files with 48 additions and 8 deletions

View File

@@ -48,12 +48,14 @@ export const Service =
}
static get defaultLayer() {
const tag = this
return Layer.effect(
this,
Config.all(fields).pipe(
tag,
Effect.gen(function* () {
const config = yield* Config.all(fields)
// oxlint-disable-next-line typescript-eslint/no-unsafe-type-assertion -- Config.all preserves the field shape, but its conditional return type also supports iterable inputs.
Effect.map((config) => this.of(config as Shape<Fields>)),
),
return tag.of(config as Shape<Fields>)
}),
)
}
}