Merge pull request #3498 from Disaster-Terminator/fix/task-id-prompt-surface

fix(prompts): prefer task_id in continuation guidance
This commit is contained in:
YeonGyu-Kim
2026-05-21 00:54:47 +09:00
committed by GitHub
6 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -133,7 +133,7 @@ Count remaining **top-level task** checkboxes. Ignore nested verification/eviden
[ ] Plan: Read plan file, confirmed current progress
\`\`\`
**If verification fails**: Resume the SAME session with the ACTUAL error output:
**If verification fails**: Resume the SAME task with the ACTUAL error output:
\`\`\`typescript
task(
task_id="ses_xyz789",
@@ -150,7 +150,7 @@ Every \`task()\` output includes a task_id. STORE IT.
When a task fails:
1. Diagnose what actually broke. Read the error, read the file, do not guess.
2. **Resume the SAME session** so the subagent keeps its full context:
2. **Resume the SAME task via \`task_id\`** so the subagent keeps its full context:
\`\`\`typescript
task(
task_id="ses_xyz789",
+1 -1
View File
@@ -408,7 +408,7 @@ After delegation, ALWAYS verify: works as expected? follows codebase pattern? MU
### Session Continuity
Every \`task()\` output includes a continuation ID (\`ses_...\`). **USE IT for follow-ups.**
Every \`task()\` output includes a task_id. **USE IT for follow-ups.**
- **Task failed/incomplete** - \`task(task_id="ses_...", prompt="Fix: {error}")\`
- **Follow-up on result** - \`task(task_id="ses_...", prompt="Also: {question}")\`