You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compaction: preserve todo list across context compaction
* after compaction the agent lost track of its task list
and failed to resume work where it left off
ADD
* inject current todo state into the summarizer prompt so
the post-compaction agent sees the full task list and
can continue from the correct point
* formatTodos helper renders persisted todos as a markdown
section appended to the compaction template
TEST
* unit tests for formatTodos covering empty input, entry
formatting, prompt concatenation, persistence note, and
special characters
constdefaultPrompt=`Provide a detailed prompt for continuing our conversation above.
194
+
letdefaultPrompt=`Provide a detailed prompt for continuing our conversation above.
186
195
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.
187
196
The summary that you construct will be used so that another agent can read it and continue the work.
188
197
Do not call any tools. Respond only with the summary text.
@@ -212,6 +221,12 @@ When constructing the summary, try to stick to this template:
212
221
[Construct a structured list of relevant files that have been read, edited, or created that pertain to the task at hand. If all the files in a directory are relevant, include the path to the directory.]
0 commit comments