summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-04-27 18:15:11 -0400
committerGitHub <[email protected]>2026-04-27 18:15:11 -0400
commitce78a4265d7b01de6e414ab0ac3bbbcdd9ff226d (patch)
tree0c73a4971321b102683c7f8aa7f14ae1ad85d406
parentc4a2353ac3a962d7fe0f4deaa539854345e1c11e (diff)
downloadopencode-ce78a4265d7b01de6e414ab0ac3bbbcdd9ff226d.tar.gz
opencode-ce78a4265d7b01de6e414ab0ac3bbbcdd9ff226d.zip
fix(session): remove compaction summary dividers (#24677)
-rw-r--r--packages/opencode/src/session/compaction.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/opencode/src/session/compaction.ts b/packages/opencode/src/session/compaction.ts
index d1a3d327f..aaee2be2f 100644
--- a/packages/opencode/src/session/compaction.ts
+++ b/packages/opencode/src/session/compaction.ts
@@ -37,8 +37,8 @@ const PRUNE_PROTECTED_TOOLS = ["skill"]
const DEFAULT_TAIL_TURNS = 2
const MIN_PRESERVE_RECENT_TOKENS = 2_000
const MAX_PRESERVE_RECENT_TOKENS = 8_000
-const SUMMARY_TEMPLATE = `Output exactly this Markdown structure and keep the section order unchanged:
----
+const SUMMARY_TEMPLATE = `Output exactly the Markdown structure shown inside <template> and keep the section order unchanged. Do not include the <template> tags in your response.
+<template>
## Goal
- [single-sentence task summary]
@@ -66,7 +66,7 @@ const SUMMARY_TEMPLATE = `Output exactly this Markdown structure and keep the se
## Relevant Files
- [file or directory path: why it matters, or "(none)"]
----
+</template>
Rules:
- Keep every section, even when empty.