mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-26 23:28:43 +00:00
9 lines
475 B
TypeScript
9 lines
475 B
TypeScript
import { Effect, Layer } from "effect"
|
|
import { PersistentPty } from "@opencode/core/persistent-pty"
|
|
|
|
// No process daemon: shell commands fall back to the Environment's spawner, and nothing is ever running in it.
|
|
export const disabledPersistentPtyLayer = Layer.mock(PersistentPty.Service, {
|
|
createPipe: () => Effect.fail(new PersistentPty.UnavailableError({ message: "process daemon disabled" })),
|
|
listPipes: () => Effect.succeed([]),
|
|
handoffPrepared: () => false,
|
|
})
|