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
constdirective=matchedLabel ? PLAN_APPROVAL_DIRECTIVES[matchedLabel] : '<system-reminder>\nThe user cancelled or provided a custom response. Do NOT call memory-plan-execute or memory-plan-ralph.\n</system-reminder>'
1310
+
constdirective=matchedLabel ? PLAN_APPROVAL_DIRECTIVES[matchedLabel] : '<system-reminder>\nThe user provided a custom response instead of selecting a predefined option. Review their answer and respond accordingly. If they want to proceed with execution, use the appropriate tool (memory-plan-execute or memory-plan-ralph) based on their intent. If they want to cancel or revise the plan, help them with that instead.\n</system-reminder>'
Copy file name to clipboardExpand all lines: packages/memory/test/plan-approval.test.ts
+161-5Lines changed: 161 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ Do NOT output text without also making this tool call.
70
70
</system-reminder>`,
71
71
}
72
72
73
-
constCANCEL_DIRECTIVE='<system-reminder>\nThe user cancelled or provided a custom response. Do NOT call memory-plan-execute or memory-plan-ralph.\n</system-reminder>'
73
+
constCANCEL_DIRECTIVE='<system-reminder>\nThe user provided a custom response instead of selecting a predefined option. Review their answer and respond accordingly. If they want to proceed with execution, use the appropriate tool (memory-plan-execute or memory-plan-ralph) based on their intent. If they want to cancel or revise the plan, help them with that instead.\n</system-reminder>'
74
74
75
75
beforeEach(()=>{
76
76
db=createTestDb()
@@ -117,7 +117,8 @@ Do NOT output text without also making this tool call.
{label: 'Ralph (in place)',description: 'Ralph in place'},
378
+
],
379
+
}],
380
+
}
381
+
constoutput={
382
+
title: 'Asked 1 question',
383
+
output: 'User has answered your questions: "How would you like to proceed?"="Ralph (worktree)". You can now continue with the user\'s answers in mind.',
{label: 'Ralph (in place)',description: 'Ralph in place'},
404
+
],
405
+
}],
406
+
}
407
+
constoutput={
408
+
title: 'Asked 1 question',
409
+
output: 'User has answered your questions: "How would you like to proceed?"="Ralph (in place)". You can now continue with the user\'s answers in mind.',
410
+
metadata: {answers: [['Ralph (in place)']]},
411
+
}
412
+
413
+
simulateToolExecuteAfter('question',args,output)
414
+
415
+
expect(output.output).toContain('Ralph (in place)')
{label: 'Ralph (in place)',description: 'Ralph in place'},
508
+
],
509
+
}],
510
+
}
511
+
constoutput={
512
+
title: 'Asked 1 question',
513
+
output: 'User has answered your questions: "How would you like to proceed?"="Some custom answer". You can now continue with the user\'s answers in mind.',
0 commit comments