ソースを参照

chore: generate

opencode-agent[bot] 6 ヶ月 前
親
コミット
f6c8e35383
1 ファイル変更、1 行追加、3 行削除
  1. 1 3
      packages/opencode/src/session/message-v2.ts

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

@@ -1087,9 +1087,7 @@ export function latest(msgs: WithParts[]) {
   const tasks = msgs.flatMap((m) =>
     finished && m.info.id <= finished.id
       ? []
-      : m.parts.filter(
-          (p): p is CompactionPart | SubtaskPart => p.type === "compaction" || p.type === "subtask",
-        ),
+      : m.parts.filter((p): p is CompactionPart | SubtaskPart => p.type === "compaction" || p.type === "subtask"),
   )
   return { user, assistant, finished, tasks }
 }