Dax Raad 8 luni în urmă
părinte
comite
02e326f87f
1 a modificat fișierele cu 6 adăugiri și 3 ștergeri
  1. 6 3
      packages/opencode/src/session/index.ts

+ 6 - 3
packages/opencode/src/session/index.ts

@@ -208,8 +208,8 @@ export namespace Session {
 
     if (msgs.length === 0) {
       const app = App.info()
-      if (input.providerID === "anthropic")
-        msgs.push({
+      if (input.providerID === "anthropic") {
+        const claude: Message.Info = {
           id: Identifier.ascending("message"),
           role: "system",
           parts: [
@@ -225,7 +225,10 @@ export namespace Session {
             },
             tool: {},
           },
-        })
+        }
+        await updateMessage(claude)
+        msgs.push(claude)
+      }
       const system: Message.Info = {
         id: Identifier.ascending("message"),
         role: "system",