Skip to content

Commit 764b232

Browse files
committed
Fix tests
1 parent 547387f commit 764b232

13 files changed

+910
-0
lines changed

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/architect-mode-prompt.snap

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,76 @@ Example:
368368
</new_task>
369369

370370

371+
## update_todo_list
372+
373+
**Description:**
374+
Replace the entire TODO list with an updated checklist reflecting the current state. Always provide the full list; the system will overwrite the previous one. This tool is designed for step-by-step task tracking, allowing you to confirm completion of each step before updating, update multiple task statuses at once (e.g., mark one as completed and start the next), and dynamically add new todos discovered during long or complex tasks.
375+
376+
**Checklist Format:**
377+
- Use a single-level markdown checklist (no nesting or subtasks).
378+
- List todos in the intended execution order.
379+
- Status options:
380+
- [ ] Task description (pending)
381+
- [x] Task description (completed)
382+
- [-] Task description (in progress)
383+
384+
**Status Rules:**
385+
- [ ] = pending (not started)
386+
- [x] = completed (fully finished, no unresolved issues)
387+
- [-] = in_progress (currently being worked on)
388+
389+
**Core Principles:**
390+
- Before updating, always confirm which todos have been completed since the last update.
391+
- You may update multiple statuses in a single update (e.g., mark the previous as completed and the next as in progress).
392+
- When a new actionable item is discovered during a long or complex task, add it to the todo list immediately.
393+
- Do not remove any unfinished todos unless explicitly instructed.
394+
- Always retain all unfinished tasks, updating their status as needed.
395+
- Only mark a task as completed when it is fully accomplished (no partials, no unresolved dependencies).
396+
- If a task is blocked, keep it as in_progress and add a new todo describing what needs to be resolved.
397+
- Remove tasks only if they are no longer relevant or if the user requests deletion.
398+
399+
**Usage Example:**
400+
<update_todo_list>
401+
<todos>
402+
[x] Analyze requirements
403+
[x] Design architecture
404+
[-] Implement core logic
405+
[ ] Write tests
406+
[ ] Update documentation
407+
</todos>
408+
</update_todo_list>
409+
410+
*After completing "Implement core logic" and starting "Write tests":*
411+
<update_todo_list>
412+
<todos>
413+
[x] Analyze requirements
414+
[x] Design architecture
415+
[x] Implement core logic
416+
[-] Write tests
417+
[ ] Update documentation
418+
[ ] Add performance benchmarks
419+
</todos>
420+
</update_todo_list>
421+
422+
**When to Use:**
423+
- The task involves multiple steps or requires ongoing tracking.
424+
- You need to update the status of several todos at once.
425+
- New actionable items are discovered during task execution.
426+
- The user requests a todo list or provides multiple tasks.
427+
- The task is complex and benefits from clear, stepwise progress tracking.
428+
429+
**When NOT to Use:**
430+
- There is only a single, trivial task.
431+
- The task can be completed in one or two simple steps.
432+
- The request is purely conversational or informational.
433+
434+
**Task Management Guidelines:**
435+
- Mark task as completed immediately after all work of the current task is done.
436+
- Start the next task by marking it as in_progress.
437+
- Add new todos as soon as they are identified.
438+
- Use clear, descriptive task names.
439+
440+
371441
# Tool Use Guidelines
372442

373443
1. In <thinking> tags, assess what information you already have and what information you need to proceed with the task.

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/ask-mode-prompt.snap

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,76 @@ Example:
265265
</new_task>
266266

267267

268+
## update_todo_list
269+
270+
**Description:**
271+
Replace the entire TODO list with an updated checklist reflecting the current state. Always provide the full list; the system will overwrite the previous one. This tool is designed for step-by-step task tracking, allowing you to confirm completion of each step before updating, update multiple task statuses at once (e.g., mark one as completed and start the next), and dynamically add new todos discovered during long or complex tasks.
272+
273+
**Checklist Format:**
274+
- Use a single-level markdown checklist (no nesting or subtasks).
275+
- List todos in the intended execution order.
276+
- Status options:
277+
- [ ] Task description (pending)
278+
- [x] Task description (completed)
279+
- [-] Task description (in progress)
280+
281+
**Status Rules:**
282+
- [ ] = pending (not started)
283+
- [x] = completed (fully finished, no unresolved issues)
284+
- [-] = in_progress (currently being worked on)
285+
286+
**Core Principles:**
287+
- Before updating, always confirm which todos have been completed since the last update.
288+
- You may update multiple statuses in a single update (e.g., mark the previous as completed and the next as in progress).
289+
- When a new actionable item is discovered during a long or complex task, add it to the todo list immediately.
290+
- Do not remove any unfinished todos unless explicitly instructed.
291+
- Always retain all unfinished tasks, updating their status as needed.
292+
- Only mark a task as completed when it is fully accomplished (no partials, no unresolved dependencies).
293+
- If a task is blocked, keep it as in_progress and add a new todo describing what needs to be resolved.
294+
- Remove tasks only if they are no longer relevant or if the user requests deletion.
295+
296+
**Usage Example:**
297+
<update_todo_list>
298+
<todos>
299+
[x] Analyze requirements
300+
[x] Design architecture
301+
[-] Implement core logic
302+
[ ] Write tests
303+
[ ] Update documentation
304+
</todos>
305+
</update_todo_list>
306+
307+
*After completing "Implement core logic" and starting "Write tests":*
308+
<update_todo_list>
309+
<todos>
310+
[x] Analyze requirements
311+
[x] Design architecture
312+
[x] Implement core logic
313+
[-] Write tests
314+
[ ] Update documentation
315+
[ ] Add performance benchmarks
316+
</todos>
317+
</update_todo_list>
318+
319+
**When to Use:**
320+
- The task involves multiple steps or requires ongoing tracking.
321+
- You need to update the status of several todos at once.
322+
- New actionable items are discovered during task execution.
323+
- The user requests a todo list or provides multiple tasks.
324+
- The task is complex and benefits from clear, stepwise progress tracking.
325+
326+
**When NOT to Use:**
327+
- There is only a single, trivial task.
328+
- The task can be completed in one or two simple steps.
329+
- The request is purely conversational or informational.
330+
331+
**Task Management Guidelines:**
332+
- Mark task as completed immediately after all work of the current task is done.
333+
- Start the next task by marking it as in_progress.
334+
- Add new todos as soon as they are identified.
335+
- Use clear, descriptive task names.
336+
337+
268338
# Tool Use Guidelines
269339

270340
1. In <thinking> tags, assess what information you already have and what information you need to proceed with the task.

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-disabled.snap

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,76 @@ Example:
417417
</new_task>
418418

419419

420+
## update_todo_list
421+
422+
**Description:**
423+
Replace the entire TODO list with an updated checklist reflecting the current state. Always provide the full list; the system will overwrite the previous one. This tool is designed for step-by-step task tracking, allowing you to confirm completion of each step before updating, update multiple task statuses at once (e.g., mark one as completed and start the next), and dynamically add new todos discovered during long or complex tasks.
424+
425+
**Checklist Format:**
426+
- Use a single-level markdown checklist (no nesting or subtasks).
427+
- List todos in the intended execution order.
428+
- Status options:
429+
- [ ] Task description (pending)
430+
- [x] Task description (completed)
431+
- [-] Task description (in progress)
432+
433+
**Status Rules:**
434+
- [ ] = pending (not started)
435+
- [x] = completed (fully finished, no unresolved issues)
436+
- [-] = in_progress (currently being worked on)
437+
438+
**Core Principles:**
439+
- Before updating, always confirm which todos have been completed since the last update.
440+
- You may update multiple statuses in a single update (e.g., mark the previous as completed and the next as in progress).
441+
- When a new actionable item is discovered during a long or complex task, add it to the todo list immediately.
442+
- Do not remove any unfinished todos unless explicitly instructed.
443+
- Always retain all unfinished tasks, updating their status as needed.
444+
- Only mark a task as completed when it is fully accomplished (no partials, no unresolved dependencies).
445+
- If a task is blocked, keep it as in_progress and add a new todo describing what needs to be resolved.
446+
- Remove tasks only if they are no longer relevant or if the user requests deletion.
447+
448+
**Usage Example:**
449+
<update_todo_list>
450+
<todos>
451+
[x] Analyze requirements
452+
[x] Design architecture
453+
[-] Implement core logic
454+
[ ] Write tests
455+
[ ] Update documentation
456+
</todos>
457+
</update_todo_list>
458+
459+
*After completing "Implement core logic" and starting "Write tests":*
460+
<update_todo_list>
461+
<todos>
462+
[x] Analyze requirements
463+
[x] Design architecture
464+
[x] Implement core logic
465+
[-] Write tests
466+
[ ] Update documentation
467+
[ ] Add performance benchmarks
468+
</todos>
469+
</update_todo_list>
470+
471+
**When to Use:**
472+
- The task involves multiple steps or requires ongoing tracking.
473+
- You need to update the status of several todos at once.
474+
- New actionable items are discovered during task execution.
475+
- The user requests a todo list or provides multiple tasks.
476+
- The task is complex and benefits from clear, stepwise progress tracking.
477+
478+
**When NOT to Use:**
479+
- There is only a single, trivial task.
480+
- The task can be completed in one or two simple steps.
481+
- The request is purely conversational or informational.
482+
483+
**Task Management Guidelines:**
484+
- Mark task as completed immediately after all work of the current task is done.
485+
- Start the next task by marking it as in_progress.
486+
- Add new todos as soon as they are identified.
487+
- Use clear, descriptive task names.
488+
489+
420490
# Tool Use Guidelines
421491

422492
1. In <thinking> tags, assess what information you already have and what information you need to proceed with the task.

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/mcp-server-creation-enabled.snap

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,76 @@ Example:
417417
</new_task>
418418

419419

420+
## update_todo_list
421+
422+
**Description:**
423+
Replace the entire TODO list with an updated checklist reflecting the current state. Always provide the full list; the system will overwrite the previous one. This tool is designed for step-by-step task tracking, allowing you to confirm completion of each step before updating, update multiple task statuses at once (e.g., mark one as completed and start the next), and dynamically add new todos discovered during long or complex tasks.
424+
425+
**Checklist Format:**
426+
- Use a single-level markdown checklist (no nesting or subtasks).
427+
- List todos in the intended execution order.
428+
- Status options:
429+
- [ ] Task description (pending)
430+
- [x] Task description (completed)
431+
- [-] Task description (in progress)
432+
433+
**Status Rules:**
434+
- [ ] = pending (not started)
435+
- [x] = completed (fully finished, no unresolved issues)
436+
- [-] = in_progress (currently being worked on)
437+
438+
**Core Principles:**
439+
- Before updating, always confirm which todos have been completed since the last update.
440+
- You may update multiple statuses in a single update (e.g., mark the previous as completed and the next as in progress).
441+
- When a new actionable item is discovered during a long or complex task, add it to the todo list immediately.
442+
- Do not remove any unfinished todos unless explicitly instructed.
443+
- Always retain all unfinished tasks, updating their status as needed.
444+
- Only mark a task as completed when it is fully accomplished (no partials, no unresolved dependencies).
445+
- If a task is blocked, keep it as in_progress and add a new todo describing what needs to be resolved.
446+
- Remove tasks only if they are no longer relevant or if the user requests deletion.
447+
448+
**Usage Example:**
449+
<update_todo_list>
450+
<todos>
451+
[x] Analyze requirements
452+
[x] Design architecture
453+
[-] Implement core logic
454+
[ ] Write tests
455+
[ ] Update documentation
456+
</todos>
457+
</update_todo_list>
458+
459+
*After completing "Implement core logic" and starting "Write tests":*
460+
<update_todo_list>
461+
<todos>
462+
[x] Analyze requirements
463+
[x] Design architecture
464+
[x] Implement core logic
465+
[-] Write tests
466+
[ ] Update documentation
467+
[ ] Add performance benchmarks
468+
</todos>
469+
</update_todo_list>
470+
471+
**When to Use:**
472+
- The task involves multiple steps or requires ongoing tracking.
473+
- You need to update the status of several todos at once.
474+
- New actionable items are discovered during task execution.
475+
- The user requests a todo list or provides multiple tasks.
476+
- The task is complex and benefits from clear, stepwise progress tracking.
477+
478+
**When NOT to Use:**
479+
- There is only a single, trivial task.
480+
- The task can be completed in one or two simple steps.
481+
- The request is purely conversational or informational.
482+
483+
**Task Management Guidelines:**
484+
- Mark task as completed immediately after all work of the current task is done.
485+
- Start the next task by marking it as in_progress.
486+
- Add new todos as soon as they are identified.
487+
- Use clear, descriptive task names.
488+
489+
420490
# Tool Use Guidelines
421491

422492
1. In <thinking> tags, assess what information you already have and what information you need to proceed with the task.

src/core/prompts/__tests__/__snapshots__/add-custom-instructions/partial-reads-enabled.snap

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,76 @@ Example:
373373
</new_task>
374374

375375

376+
## update_todo_list
377+
378+
**Description:**
379+
Replace the entire TODO list with an updated checklist reflecting the current state. Always provide the full list; the system will overwrite the previous one. This tool is designed for step-by-step task tracking, allowing you to confirm completion of each step before updating, update multiple task statuses at once (e.g., mark one as completed and start the next), and dynamically add new todos discovered during long or complex tasks.
380+
381+
**Checklist Format:**
382+
- Use a single-level markdown checklist (no nesting or subtasks).
383+
- List todos in the intended execution order.
384+
- Status options:
385+
- [ ] Task description (pending)
386+
- [x] Task description (completed)
387+
- [-] Task description (in progress)
388+
389+
**Status Rules:**
390+
- [ ] = pending (not started)
391+
- [x] = completed (fully finished, no unresolved issues)
392+
- [-] = in_progress (currently being worked on)
393+
394+
**Core Principles:**
395+
- Before updating, always confirm which todos have been completed since the last update.
396+
- You may update multiple statuses in a single update (e.g., mark the previous as completed and the next as in progress).
397+
- When a new actionable item is discovered during a long or complex task, add it to the todo list immediately.
398+
- Do not remove any unfinished todos unless explicitly instructed.
399+
- Always retain all unfinished tasks, updating their status as needed.
400+
- Only mark a task as completed when it is fully accomplished (no partials, no unresolved dependencies).
401+
- If a task is blocked, keep it as in_progress and add a new todo describing what needs to be resolved.
402+
- Remove tasks only if they are no longer relevant or if the user requests deletion.
403+
404+
**Usage Example:**
405+
<update_todo_list>
406+
<todos>
407+
[x] Analyze requirements
408+
[x] Design architecture
409+
[-] Implement core logic
410+
[ ] Write tests
411+
[ ] Update documentation
412+
</todos>
413+
</update_todo_list>
414+
415+
*After completing "Implement core logic" and starting "Write tests":*
416+
<update_todo_list>
417+
<todos>
418+
[x] Analyze requirements
419+
[x] Design architecture
420+
[x] Implement core logic
421+
[-] Write tests
422+
[ ] Update documentation
423+
[ ] Add performance benchmarks
424+
</todos>
425+
</update_todo_list>
426+
427+
**When to Use:**
428+
- The task involves multiple steps or requires ongoing tracking.
429+
- You need to update the status of several todos at once.
430+
- New actionable items are discovered during task execution.
431+
- The user requests a todo list or provides multiple tasks.
432+
- The task is complex and benefits from clear, stepwise progress tracking.
433+
434+
**When NOT to Use:**
435+
- There is only a single, trivial task.
436+
- The task can be completed in one or two simple steps.
437+
- The request is purely conversational or informational.
438+
439+
**Task Management Guidelines:**
440+
- Mark task as completed immediately after all work of the current task is done.
441+
- Start the next task by marking it as in_progress.
442+
- Add new todos as soon as they are identified.
443+
- Use clear, descriptive task names.
444+
445+
376446
# Tool Use Guidelines
377447

378448
1. In <thinking> tags, assess what information you already have and what information you need to proceed with the task.

0 commit comments

Comments
 (0)