소스 검색

wip: sync

Dax Raad 1 년 전
부모
커밋
10ae43a121
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      packages/opencode/src/session/index.ts

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

@@ -407,6 +407,12 @@ export namespace Session {
                     synthetic: true,
                     text: Buffer.from(part.url, "base64url").toString(),
                   },
+                  {
+                    ...part,
+                    id: part.id ?? Identifier.ascending("part"),
+                    messageID: userMsg.id,
+                    sessionID: input.sessionID,
+                  },
                 ]
               }
               break