diff --git a/packages/opencode/src/session/llm.ts b/packages/opencode/src/session/llm.ts index ed82ebc592..29d8802d21 100644 --- a/packages/opencode/src/session/llm.ts +++ b/packages/opencode/src/session/llm.ts @@ -180,31 +180,32 @@ export namespace LLM { // Wire up toolExecutor for DWS workflow models so that tool calls // from the workflow service are executed via opencode's tool system // and results sent back over the WebSocket. - if (language instanceof GitLabWorkflowLanguageModel) { - const workflowModel = language - workflowModel.systemPrompt = system.join("\n") - workflowModel.toolExecutor = async (toolName, argsJson, _requestID) => { - const t = tools[toolName] - if (!t || !t.execute) { - return { result: "", error: `Unknown tool: ${toolName}` } - } - try { - const result = await t.execute!(JSON.parse(argsJson), { - toolCallId: _requestID, - messages: input.messages, - abortSignal: input.abort, - }) - const output = typeof result === "string" ? result : (result?.output ?? JSON.stringify(result)) - return { - result: output, - metadata: typeof result === "object" ? result?.metadata : undefined, - title: typeof result === "object" ? result?.title : undefined, - } - } catch (e: any) { - return { result: "", error: e.message ?? String(e) } - } - } - } + // TODO: fix this once v6 is ready + // if (language instanceof GitLabWorkflowLanguageModel) { + // const workflowModel = language + // workflowModel.systemPrompt = system.join("\n") + // workflowModel.toolExecutor = async (toolName, argsJson, _requestID) => { + // const t = tools[toolName] + // if (!t || !t.execute) { + // return { result: "", error: `Unknown tool: ${toolName}` } + // } + // try { + // const result = await t.execute!(JSON.parse(argsJson), { + // toolCallId: _requestID, + // messages: input.messages, + // abortSignal: input.abort, + // }) + // const output = typeof result === "string" ? result : (result?.output ?? JSON.stringify(result)) + // return { + // result: output, + // metadata: typeof result === "object" ? result?.metadata : undefined, + // title: typeof result === "object" ? result?.title : undefined, + // } + // } catch (e: any) { + // return { result: "", error: e.message ?? String(e) } + // } + // } + // } return streamText({ onError(error) {