From 7618267bdbd66f29d21580dfb65e269d6fb47f7d Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 12 Dec 2025 16:55:51 -0500 Subject: [PATCH] fixed --- packages/opencode/src/session/llm.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/opencode/src/session/llm.ts b/packages/opencode/src/session/llm.ts index f0f48ce667..2b481e5c27 100644 --- a/packages/opencode/src/session/llm.ts +++ b/packages/opencode/src/session/llm.ts @@ -38,6 +38,7 @@ export namespace LLM { .tag("modelID", input.model.id) .tag("sessionID", input.sessionID) .tag("small", (input.small ?? false).toString()) + .tag("agent", input.agent.name) l.info("stream", { modelID: input.model.id, providerID: input.model.providerID, @@ -46,11 +47,11 @@ export namespace LLM { const [first, ...rest] = [ ...SystemPrompt.header(input.model.providerID), - ...(input.agent.prompt ?? SystemPrompt.provider(input.model)), + ...(input.agent.prompt ? [input.agent.prompt] : SystemPrompt.provider(input.model)), ...input.system, ...(input.user.system ? [input.user.system] : []), ] - const system = [first, rest.join("\n")] + const system = [first, rest.join("\n")].filter((x) => x) const params = await Plugin.trigger( "chat.params",