فهرست منبع

chore: generate

opencode-agent[bot] 4 روز پیش
والد
کامیت
1580e7cc3a
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      packages/core/src/session/model-request.ts

+ 1 - 3
packages/core/src/session/model-request.ts

@@ -191,9 +191,7 @@ export const layer = Layer.effect(
       // preserving their prompt cache prefix. Calls are still rejected at execution.
       const tools = input.context.tools
       const system = [
-        agent.info.system
-          ? agent.info.system
-          : SessionSystemPrompt.make(tools.definitions.map((tool) => tool.name)),
+        agent.info.system ? agent.info.system : SessionSystemPrompt.make(tools.definitions.map((tool) => tool.name)),
         input.context.initial,
       ]
         .filter((part) => part.length > 0)