Skip to content

Commit cbc8625

Browse files
author
kiran-garre
committed
fix: Modify system prompt to contain current todo list id
Updates: - Compaction message tells the model to keep track of the current todo list id in the summary, if any - This allows the model to remember the todo list it was working on after compaction
1 parent 030c79a commit cbc8625

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/chat-cli/src/cli/chat/conversation.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,12 +490,15 @@ impl ConversationState {
490490
2) Bullet points for all significant tools executed and their results\n\
491491
3) Bullet points for any code or technical information shared\n\
492492
4) A section of key insights gained\n\n\
493+
5) REQUIRED: the ID of the currently loaded todo list, if any\n\n\
493494
FORMAT THE SUMMARY IN THIRD PERSON, NOT AS A DIRECT RESPONSE. Example format:\n\n\
494495
## CONVERSATION SUMMARY\n\
495496
* Topic 1: Key information\n\
496497
* Topic 2: Key information\n\n\
497498
## TOOLS EXECUTED\n\
498499
* Tool X: Result Y\n\n\
500+
## TODO ID\n\
501+
* <id>\n\n\
499502
Remember this is a DOCUMENT not a chat response. The custom instruction above modifies what to prioritize.\n\
500503
FILTER OUT CHAT CONVENTIONS (greetings, offers to help, etc).",
501504
custom_prompt.as_ref()
@@ -510,12 +513,15 @@ impl ConversationState {
510513
2) Bullet points for all significant tools executed and their results\n\
511514
3) Bullet points for any code or technical information shared\n\
512515
4) A section of key insights gained\n\n\
516+
5) REQUIRED: the ID of the currently loaded todo list, if any\n\n\
513517
FORMAT THE SUMMARY IN THIRD PERSON, NOT AS A DIRECT RESPONSE. Example format:\n\n\
514518
## CONVERSATION SUMMARY\n\
515519
* Topic 1: Key information\n\
516520
* Topic 2: Key information\n\n\
517521
## TOOLS EXECUTED\n\
518522
* Tool X: Result Y\n\n\
523+
## TODO ID\n\
524+
* <id>\n\n\
519525
Remember this is a DOCUMENT not a chat response.\n\
520526
FILTER OUT CHAT CONVENTIONS (greetings, offers to help, etc).".to_string()
521527
},

0 commit comments

Comments
 (0)