From c5815ad3f0b4efdf307de26aab1c0dc577269a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=2E=20Nas=C4=B1l?= Date: Mon, 8 Jun 2026 09:21:52 +0700 Subject: [PATCH] fix(commandcode): force stream=true in transformRequest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CommandCode upstream only speaks NDJSON streaming; the executor always wraps it as OpenAI SSE. Force body.stream=true so non-stream client requests still produce a parseable upstream stream (router aggregates SSE→JSON downstream). Co-authored-by: Cursor --- open-sse/executors/commandcode.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/open-sse/executors/commandcode.js b/open-sse/executors/commandcode.js index e0c10e88..772bf4c8 100644 --- a/open-sse/executors/commandcode.js +++ b/open-sse/executors/commandcode.js @@ -19,6 +19,11 @@ export class CommandCodeExecutor extends BaseExecutor { super("commandcode", PROVIDERS.commandcode); } + transformRequest(model, body, stream, credentials) { + body.stream = true; + return body; + } + buildHeaders(credentials, stream = true) { const headers = { "Content-Type": "application/json",