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
fix(task-lifecycle): preserve parent-child link when delegated subtask is interrupted (#560) (#787)
* fix(task-lifecycle): preserve parent-child link when delegated subtask is interrupted
* test(e2e): interrupted child resumes and reports back to parent
* Fix interrupted subtask resume state restoration
* fix(task-lifecycle): prevent parent repair from winning race against child cancellation
* fix(api): return 0 instead of throwing for unavailable task history length
* test(webview-settings): increase change-detection test timeout to resolve CI flakes
---------
Co-authored-by: Naved Merchant <naved.merchant@gmail.com>
Co-authored-by: Test User <test@example.com>
constSUBTASK_FAST_CHILD_PROMPT=`${SUBTASK_FAST_CHILD_MARKER}: Complete immediately with the exact result "Fast child completed".`
18
20
exportconstSUBTASK_FAST_PARENT_PROMPT=`${SUBTASK_FAST_PARENT_MARKER}: Use the new_task tool exactly once. Create an ask-mode subtask with this exact message: "${SUBTASK_FAST_CHILD_PROMPT}" Do not answer directly.`
19
21
22
+
constSUBTASK_INTERRUPT_CHILD_PROMPT=`${SUBTASK_INTERRUPT_CHILD_MARKER}: Ask the user exactly this follow-up question: What is the square root of 81? After the user answers, complete with only the answer.`
23
+
exportconstSUBTASK_INTERRUPT_PARENT_PROMPT=`${SUBTASK_INTERRUPT_PARENT_MARKER}: Use the new_task tool exactly once. Create an ask-mode subtask with this exact message: "${SUBTASK_INTERRUPT_CHILD_PROMPT}" Do not answer directly. When the subtask returns, complete with the exact result "Interrupted parent resumed".`
constSUBTASK_XPROFILE_SAME_CHILD_PROMPT=`${SUBTASK_XPROFILE_SAME_CHILD_MARKER}: Complete immediately with the exact result "Same-profile child completed".`
21
28
constSUBTASK_XPROFILE_DIFFERENT_CHILD_PROMPT=`${SUBTASK_XPROFILE_DIFFERENT_CHILD_MARKER}: Complete immediately with the exact result "Different-profile child completed".`
22
29
exportconstSUBTASK_XPROFILE_PARENT_PROMPT=`${SUBTASK_XPROFILE_PARENT_MARKER}: First use new_task to create a code-mode subtask with this exact message: "${SUBTASK_XPROFILE_SAME_CHILD_PROMPT}" After it returns, create an ask-mode subtask with the next instructions you receive.`
0 commit comments