chore: format code

This commit is contained in:
GitHub Action
2025-11-06 18:21:59 +00:00
parent e45e94634f
commit 2bcc00dbf0
2 changed files with 6 additions and 2 deletions

View File

@@ -111,7 +111,9 @@ export namespace SessionCompaction {
draft.time.compacting = undefined
})
})
const toSummarize = await Session.messages({ sessionID: input.sessionID }).then(MessageV2.filterCompacted)
const toSummarize = await Session.messages({ sessionID: input.sessionID }).then(
MessageV2.filterCompacted,
)
const model = await Provider.getModel(input.providerID, input.modelID)
const system = [
...SystemPrompt.summarize(model.providerID),

View File

@@ -434,7 +434,9 @@ export namespace SessionPrompt {
providerID: string
signal: AbortSignal
}) {
let msgs = await Session.messages({ sessionID: input.sessionID }).then(MessageV2.filterCompacted)
let msgs = await Session.messages({ sessionID: input.sessionID }).then(
MessageV2.filterCompacted,
)
const lastAssistant = msgs.findLast((msg) => msg.info.role === "assistant")
if (
lastAssistant?.info.role === "assistant" &&