Просмотр исходного кода

fix(core): preserve imperative statements in summary

Adam 1 месяц назад
Родитель
Сommit
98fd53fd5f
1 измененных файлов с 2 добавлено и 1 удалено
  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
 - Write in first person (I added..., I fixed...)
 - 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