Skip to content

Commit a763db6

Browse files
committed
improve(hooks): refine todo-continuation-enforcer message tone and status format
1 parent 341e5a9 commit a763db6

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/hooks/todo-continuation-enforcer.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,13 @@ interface Todo {
77
id: string
88
}
99

10-
const CONTINUATION_PROMPT = `[SYSTEM REMINDER - TODO ENFORCEMENT]
10+
const CONTINUATION_PROMPT = `[SYSTEM REMINDER - TODO CONTINUATION]
1111
12-
Your todo list is NOT complete. There are still incomplete tasks remaining.
12+
Incomplete tasks remain in your todo list. Continue working on the next pending task.
1313
14-
CRITICAL INSTRUCTION:
15-
- You MUST NOT stop working until ALL todos are marked as completed
16-
- Continue working on the next pending task immediately
17-
- Work honestly and diligently to finish every task
18-
- Do NOT ask for permission to continue - just proceed with the work
19-
- Mark each task as completed as soon as you finish it
20-
21-
Resume your work NOW.`
14+
- Proceed without asking for permission
15+
- Mark each task complete when finished
16+
- Do not stop until all tasks are done`
2217

2318
function detectInterrupt(error: unknown): boolean {
2419
if (!error) return false
@@ -113,7 +108,7 @@ export function createTodoContinuationEnforcer(ctx: PluginInput) {
113108
parts: [
114109
{
115110
type: "text",
116-
text: `${CONTINUATION_PROMPT}\n\n[Status: ${incomplete.length}/${todos.length} tasks remaining]`,
111+
text: `${CONTINUATION_PROMPT}\n\n[Status: ${todos.length - incomplete.length}/${todos.length} completed, ${incomplete.length} remaining]`,
117112
},
118113
],
119114
},

0 commit comments

Comments
 (0)