瀏覽代碼

fix: AI_InvalidPromptError that occured due to previous commti from last night

Aiden Cline 3 月之前
父節點
當前提交
25f0a2b80b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/opencode/src/session/message-v2.ts

+ 1 - 1
packages/opencode/src/session/message-v2.ts

@@ -516,7 +516,7 @@ export namespace MessageV2 {
                 toolCallId: part.callID,
                 input: part.state.input,
                 output: part.state.time.compacted
-                  ? "[Old tool result content cleared]"
+                  ? { output: "[Old tool result content cleared]", attachments: undefined }
                   : { output: part.state.output, attachments: part.state.attachments },
                 callProviderMetadata: part.metadata,
               })