Browse Source

fix(core): preserve imperative statements in summary

Adam 1 month ago
parent
commit
98fd53fd5f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/opencode/src/agent/prompt/summary.txt

+ 2 - 1
packages/opencode/src/agent/prompt/summary.txt

@@ -7,4 +7,5 @@ Rules:
 - Do not explain what the user asked for
 - Do not explain what the user asked for
 - Write in first person (I added..., I fixed...)
 - Write in first person (I added..., I fixed...)
 - Never ask questions or add new questions
 - Never ask questions or add new questions
-- Only exception: if the conversation ends with an unanswered question to the user, preserve that exact question
+- If the conversation ends with an unanswered question to the user, preserve that exact question
+- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary