improve(hooks): refine todo-continuation-enforcer message tone and status format
This commit is contained in:
@@ -7,18 +7,13 @@ interface Todo {
|
|||||||
id: string
|
id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const CONTINUATION_PROMPT = `[SYSTEM REMINDER - TODO ENFORCEMENT]
|
const CONTINUATION_PROMPT = `[SYSTEM REMINDER - TODO CONTINUATION]
|
||||||
|
|
||||||
Your todo list is NOT complete. There are still incomplete tasks remaining.
|
Incomplete tasks remain in your todo list. Continue working on the next pending task.
|
||||||
|
|
||||||
CRITICAL INSTRUCTION:
|
- Proceed without asking for permission
|
||||||
- You MUST NOT stop working until ALL todos are marked as completed
|
- Mark each task complete when finished
|
||||||
- Continue working on the next pending task immediately
|
- Do not stop until all tasks are done`
|
||||||
- Work honestly and diligently to finish every task
|
|
||||||
- Do NOT ask for permission to continue - just proceed with the work
|
|
||||||
- Mark each task as completed as soon as you finish it
|
|
||||||
|
|
||||||
Resume your work NOW.`
|
|
||||||
|
|
||||||
function detectInterrupt(error: unknown): boolean {
|
function detectInterrupt(error: unknown): boolean {
|
||||||
if (!error) return false
|
if (!error) return false
|
||||||
@@ -113,7 +108,7 @@ export function createTodoContinuationEnforcer(ctx: PluginInput) {
|
|||||||
parts: [
|
parts: [
|
||||||
{
|
{
|
||||||
type: "text",
|
type: "text",
|
||||||
text: `${CONTINUATION_PROMPT}\n\n[Status: ${incomplete.length}/${todos.length} tasks remaining]`,
|
text: `${CONTINUATION_PROMPT}\n\n[Status: ${todos.length - incomplete.length}/${todos.length} completed, ${incomplete.length} remaining]`,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user