Skip to content

fix(delegate): preserve completed status and interrupt pending children#25982

Open
thakoreh wants to merge 1 commit into
NousResearch:mainfrom
thakoreh:fix/delegate-status-interrupt-25819
Open

fix(delegate): preserve completed status and interrupt pending children#25982
thakoreh wants to merge 1 commit into
NousResearch:mainfrom
thakoreh:fix/delegate-status-interrupt-25819

Conversation

@thakoreh

Copy link
Copy Markdown
Contributor

Summary

  • Preserve completed status for child agents that finish normally with an empty final_response
  • Signal pending batch children with child.interrupt() when the parent is interrupted
  • Add regression tests for both delegate_task failure modes

Fixes #25819

Test Plan

  • python -m pytest tests/tools/test_delegate_interrupt_status.py -q
  • python -m pytest tests/tools/test_delegate_interrupt_status.py tests/tools/test_delegate_subagent_timeout_diagnostic.py tests/tools/test_delegate_composite_toolsets.py -q

@thakoreh thakoreh force-pushed the fix/delegate-status-interrupt-25819 branch 3 times, most recently from 68572d7 to dbc3ba0 Compare May 14, 2026 22:52
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent loop, run_agent.py, prompt builder tool/delegate Subagent delegation labels May 14, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Competes with #25825 — both fix the same two bugs from #25819 (delegate status misclassification + missing batch interrupt propagation). Maintainers: pick one.

@thakoreh thakoreh force-pushed the fix/delegate-status-interrupt-25819 branch 2 times, most recently from 7660872 to e0a2679 Compare May 14, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder P2 Medium — degraded but workaround exists tool/delegate Subagent delegation type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: fix: delegate_task status misclassification + missing interrupt on batch parent interrupt

2 participants