diff --git a/packages/opencode/src/session/compaction.ts b/packages/opencode/src/session/compaction.ts index 41571bcef..a6b71edce 100644 --- a/packages/opencode/src/session/compaction.ts +++ b/packages/opencode/src/session/compaction.ts @@ -178,7 +178,7 @@ export namespace SessionCompaction { content: [ { type: "text", - text: "Provide a detailed but concise summary of our conversation above. Focus on information that would be helpful for continuing the conversation, including what we did, what we're doing, which files we're working on, and what we're going to do next.", + text: "Summarize our conversation above. This summary will be the only context available when the conversation continues, so preserve critical information including: what was accomplished, current work in progress, files involved, next steps, and any key user requests or constraints. Be concise but detailed enough that work can continue seamlessly.", }, ], }, diff --git a/packages/opencode/src/session/prompt/compaction.txt b/packages/opencode/src/session/prompt/compaction.txt index 4751c8d71..b919671a0 100644 --- a/packages/opencode/src/session/prompt/compaction.txt +++ b/packages/opencode/src/session/prompt/compaction.txt @@ -6,5 +6,7 @@ Focus on information that would be helpful for continuing the conversation, incl - What is currently being worked on - Which files are being modified - What needs to be done next +- Key user requests, constraints, or preferences that should persist +- Important technical decisions and why they were made Your summary should be comprehensive enough to provide context but concise enough to be quickly understood.