From 9b20d1d33a1005d4df227f75a83b47baa00de194 Mon Sep 17 00:00:00 2001 From: OpenCode Agent Date: Wed, 7 Oct 2026 12:38:05 +0000 Subject: [PATCH] docs(sdk): note SSE shutdown and compression on the embedded HTTP app --- packages/sdk/src/effect/opencode.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/sdk/src/effect/opencode.ts b/packages/sdk/src/effect/opencode.ts index 21c1b11e60..862ee2f76e 100644 --- a/packages/sdk/src/effect/opencode.ts +++ b/packages/sdk/src/effect/opencode.ts @@ -32,8 +32,10 @@ export type Interface = Omit & { } readonly plugin: EmbeddedHost.Interface["plugins"]["register"] & OpenCodeClient["plugin"] /** - * This instance's HTTP API for external opencode clients. Serve it with an Effect `HttpServer`; a fetch - * handler cannot accept PTY WebSockets. Stop that server before closing this instance. + * This instance's HTTP API for external opencode clients, with CORS but without response compression. + * Serve it with an Effect `HttpServer`; a fetch handler cannot accept PTY WebSockets. Stop that server + * before closing this instance. Node's server waits for open SSE streams, so call `closeAllConnections()` + * when stopping it. */ readonly http: EmbeddedHost.Interface["http"] }