Skip to content

Commit 5daf2fa

Browse files
aaron-he-zhuAaron Zhu
andauthored
fix(session): compaction agent responds in same language as conversation (#20581)
Co-authored-by: Aaron Zhu <aaron@Aarons-MacBook-Air.local>
1 parent 733a3bd commit 5daf2fa

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

packages/opencode/src/agent/prompt/compaction.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ Focus on information that would be helpful for continuing the conversation, incl
1212
Your summary should be comprehensive enough to provide context but concise enough to be quickly understood.
1313

1414
Do not respond to any questions in the conversation, only output the summary.
15+
Respond in the same language the user used in the conversation.

packages/opencode/src/session/compaction.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ export namespace SessionCompaction {
190190
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.
191191
The summary that you construct will be used so that another agent can read it and continue the work.
192192
Do not call any tools. Respond only with the summary text.
193+
Respond in the same language as the user's messages in the conversation.
193194
194195
When constructing the summary, try to stick to this template:
195196
---

0 commit comments

Comments
 (0)