summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-03-02 07:41:53 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-03-02 07:41:53 +0000
commit4b9e19f72f8ebbf05f6b951fd96cf68ba0b23957 (patch)
tree2615edccb0be9d77548c07cb9ccd4e6dac3657c9
parentbe20f865ace5831ea7c6e79a05a2b4cec3923b27 (diff)
downloadopencode-4b9e19f72f8ebbf05f6b951fd96cf68ba0b23957.tar.gz
opencode-4b9e19f72f8ebbf05f6b951fd96cf68ba0b23957.zip
chore: generate
-rw-r--r--packages/opencode/src/session/compaction.ts8
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts1
-rw-r--r--packages/sdk/openapi.json3
3 files changed, 8 insertions, 4 deletions
diff --git a/packages/opencode/src/session/compaction.ts b/packages/opencode/src/session/compaction.ts
index a0f1c55c4..79884d641 100644
--- a/packages/opencode/src/session/compaction.ts
+++ b/packages/opencode/src/session/compaction.ts
@@ -120,9 +120,8 @@ export namespace SessionCompaction {
break
}
}
- const hasContent = replay && messages.some(
- (m) => m.info.role === "user" && !m.parts.some((p) => p.type === "compaction"),
- )
+ const hasContent =
+ replay && messages.some((m) => m.info.role === "user" && !m.parts.some((p) => p.type === "compaction"))
if (!hasContent) {
replay = undefined
messages = input.messages
@@ -273,7 +272,8 @@ When constructing the summary, try to stick to this template:
const text =
(input.overflow
? "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"
- : "") + "Continue if you have next steps, or stop and ask for clarification if you are unsure how to proceed."
+ : "") +
+ "Continue if you have next steps, or stop and ask for clarification if you are unsure how to proceed."
await Session.updatePart({
id: Identifier.ascending("part"),
messageID: continueMsg.id,
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index 669883590..69d105610 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -505,6 +505,7 @@ export type CompactionPart = {
messageID: string
type: "compaction"
auto: boolean
+ overflow?: boolean
}
export type Part =
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 8e88b0969..8f03cb92c 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -8290,6 +8290,9 @@
},
"auto": {
"type": "boolean"
+ },
+ "overflow": {
+ "type": "boolean"
}
},
"required": ["id", "sessionID", "messageID", "type", "auto"]