mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
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.
33 lines
1.6 KiB
JSON
33 lines
1.6 KiB
JSON
[
|
|
{
|
|
"kind": "chunks",
|
|
"chunks": [
|
|
{ "type": "block-start", "index": 0, "blockType": "tool-call" },
|
|
{ "type": "tool-call-delta", "index": 0, "id": "start-child", "name": "subagent", "argumentsDelta": "{\"description\":\"Return child result\",\"prompt\":\"Reply with exactly CHILD_RESULT and nothing else. Do not call report.\",\"run_in_background\":true}" },
|
|
{ "type": "block-end", "index": 0, "block": { "type": "tool-call", "id": "start-child", "name": "subagent", "arguments": "{\"description\":\"Return child result\",\"prompt\":\"Reply with exactly CHILD_RESULT and nothing else. Do not call report.\",\"run_in_background\":true}" } },
|
|
{ "type": "usage", "usage": { "inputTokens": 10, "outputTokens": 5 } },
|
|
{ "type": "finish", "reason": { "kind": "tool-calls" } }
|
|
]
|
|
},
|
|
{
|
|
"kind": "chunks",
|
|
"chunks": [
|
|
{ "type": "block-start", "index": 0, "blockType": "text" },
|
|
{ "type": "text-delta", "index": 0, "text": "STARTED" },
|
|
{ "type": "block-end", "index": 0, "block": { "type": "text", "text": "STARTED" } },
|
|
{ "type": "usage", "usage": { "inputTokens": 10, "outputTokens": 5 } },
|
|
{ "type": "finish", "reason": { "kind": "stop" } }
|
|
]
|
|
},
|
|
{
|
|
"kind": "chunks",
|
|
"chunks": [
|
|
{ "type": "block-start", "index": 0, "blockType": "text" },
|
|
{ "type": "text-delta", "index": 0, "text": "PARENT_RECEIVED_CHILD_RESULT" },
|
|
{ "type": "block-end", "index": 0, "block": { "type": "text", "text": "PARENT_RECEIVED_CHILD_RESULT" } },
|
|
{ "type": "usage", "usage": { "inputTokens": 10, "outputTokens": 5 } },
|
|
{ "type": "finish", "reason": { "kind": "stop" } }
|
|
]
|
|
}
|
|
]
|