Skip to content

Commit 4b9e19f

Browse files
chore: generate
1 parent be20f86 commit 4b9e19f

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

packages/opencode/src/session/compaction.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ export namespace SessionCompaction {
120120
break
121121
}
122122
}
123-
const hasContent = replay && messages.some(
124-
(m) => m.info.role === "user" && !m.parts.some((p) => p.type === "compaction"),
125-
)
123+
const hasContent =
124+
replay && messages.some((m) => m.info.role === "user" && !m.parts.some((p) => p.type === "compaction"))
126125
if (!hasContent) {
127126
replay = undefined
128127
messages = input.messages
@@ -273,7 +272,8 @@ When constructing the summary, try to stick to this template:
273272
const text =
274273
(input.overflow
275274
? "The previous request exceeded the provider's size limit due to large media attachments. The conversation was compacted and media files were removed from context. If the user was asking about attached images or files, explain that the attachments were too large to process and suggest they try again with smaller or fewer files.\n\n"
276-
: "") + "Continue if you have next steps, or stop and ask for clarification if you are unsure how to proceed."
275+
: "") +
276+
"Continue if you have next steps, or stop and ask for clarification if you are unsure how to proceed."
277277
await Session.updatePart({
278278
id: Identifier.ascending("part"),
279279
messageID: continueMsg.id,

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ export type CompactionPart = {
505505
messageID: string
506506
type: "compaction"
507507
auto: boolean
508+
overflow?: boolean
508509
}
509510

510511
export type Part =

packages/sdk/openapi.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8290,6 +8290,9 @@
82908290
},
82918291
"auto": {
82928292
"type": "boolean"
8293+
},
8294+
"overflow": {
8295+
"type": "boolean"
82938296
}
82948297
},
82958298
"required": ["id", "sessionID", "messageID", "type", "auto"]

0 commit comments

Comments
 (0)