summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-16 01:57:23 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-16 01:57:23 +0000
commit70aeebf2dfe59009ba7254facaa81b8baf73c3cf (patch)
tree0dd968f62540d9fcaa9fbef4c134cadeaaa01762
parentd6b14e24678db678163c281257322c5a9bf0e6fa (diff)
downloadopencode-70aeebf2dfe59009ba7254facaa81b8baf73c3cf.tar.gz
opencode-70aeebf2dfe59009ba7254facaa81b8baf73c3cf.zip
chore: generate
-rw-r--r--packages/opencode/src/mcp/mcp.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/opencode/src/mcp/mcp.ts b/packages/opencode/src/mcp/mcp.ts
index 1e3288682..947f29c05 100644
--- a/packages/opencode/src/mcp/mcp.ts
+++ b/packages/opencode/src/mcp/mcp.ts
@@ -275,10 +275,7 @@ export const layer = Layer.effect(
const DISABLED_RESULT: CreateResult = { status: { status: "disabled" } }
- const connectRemote = Effect.fn("MCP.connectRemote")(function* (
- key: string,
- mcp: Config.Mcp & { type: "remote" },
- ) {
+ const connectRemote = Effect.fn("MCP.connectRemote")(function* (key: string, mcp: Config.Mcp & { type: "remote" }) {
const oauthDisabled = mcp.oauth === false
const oauthConfig = typeof mcp.oauth === "object" ? mcp.oauth : undefined
let authProvider: McpOAuthProvider | undefined
@@ -451,9 +448,7 @@ export const layer = Layer.effect(
const queue = [pid]
while (queue.length > 0) {
const current = queue.shift()!
- const handle = yield* spawner.spawn(
- ChildProcess.make("pgrep", ["-P", String(current)], { stdin: "ignore" }),
- )
+ const handle = yield* spawner.spawn(ChildProcess.make("pgrep", ["-P", String(current)], { stdin: "ignore" }))
const text = yield* Stream.mkString(Stream.decodeText(handle.stdout))
yield* handle.exitCode
for (const tok of text.split("\n")) {