You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/opencode/src/session/compaction.ts
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -318,6 +318,15 @@ When constructing the summary, try to stick to this template:
318
318
agent: userMessage.agent,
319
319
model: userMessage.model,
320
320
})
321
+
yield*session.updatePart({
322
+
id: PartID.ascending(),
323
+
messageID: continueMsg.id,
324
+
sessionID: input.sessionID,
325
+
type: "text",
326
+
synthetic: true,
327
+
ignored: true,
328
+
text: "[auto-compaction-followup]",
329
+
})
321
330
consttext=
322
331
(input.overflow
323
332
? "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"
0 commit comments