Merge remote-tracking branch 'origin/sqlite2' into sqlite2

This commit is contained in:
Dax Raad
2026-02-01 20:26:24 -05:00
121 changed files with 3045 additions and 686 deletions
+9 -1
View File
@@ -180,6 +180,14 @@ export namespace SessionProcessor {
case "tool-result": {
const match = toolcalls[value.toolCallId]
if (match && match.state.status === "running") {
const attachments = value.output.attachments?.map(
(attachment: Omit<MessageV2.FilePart, "id" | "messageID" | "sessionID">) => ({
...attachment,
id: Identifier.ascending("part"),
messageID: match.messageID,
sessionID: match.sessionID,
}),
)
await Session.updatePart({
...match,
state: {
@@ -192,7 +200,7 @@ export namespace SessionProcessor {
start: match.state.time.start,
end: Date.now(),
},
attachments: value.output.attachments,
attachments,
},
})