A continuable child that stopped without reporting — an error, a token ceiling, cancellation, teardown — left its parent nothing to act on. The continuation manager now delivers an unconditional settlement notice to the durable direct parent before releasing ownership, folding consumed work (foldConsumedWork supersedes findLastMessageTurnEnd) so a claimed-but-unrun prompt reads as aborted rather than completed, waking an idle parent, steering a busy one, and never waking a closing tree.
27 lines
565 B
JSON
27 lines
565 B
JSON
{
|
|
"steps": [
|
|
{
|
|
"op": "initialize"
|
|
},
|
|
{
|
|
"op": "newSession"
|
|
},
|
|
{
|
|
"op": "prompt",
|
|
"text": "Follow these steps exactly, then stop. 1. Call the subagent tool once with run_in_background set to true, description 'Reply with CHILD_OK', and prompt 'Reply with exactly the word CHILD_OK and nothing else.'. 2. Reply with the single word DONE. Do not use the bash tool."
|
|
},
|
|
{
|
|
"op": "waitForSubagentTurnEnd",
|
|
"child": 1,
|
|
"minimumTurn": 1
|
|
},
|
|
{
|
|
"op": "waitForTurnStart",
|
|
"minimumTurn": 2
|
|
},
|
|
{
|
|
"op": "waitForTurnEnd"
|
|
}
|
|
]
|
|
}
|