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
_delegate_tasks() in openhands-tools/openhands/tools/delegate/impl.py uses thread.join() to block the parent agent until the sub-agent completes. This prevents the parent from doing other work while waiting for long-running sub-agent tasks.
Proposed Solution
Add a background flag to delegation that returns immediately with task IDs, plus commands for polling status, retrieving output, and stopping background agents.
Key Requirements
Add background: bool parameter to delegation
When background=True, return immediately with a task ID
Implement check_status(task_id) to poll sub-agent state
Implement get_output(task_id) to retrieve results when complete
Implement stop(task_id) to terminate a running background agent
Track background agents in a registry for the parent context
Key Files
openhands-tools/openhands/tools/delegate/impl.py — _delegate_tasks() with thread.join()
Acceptance Criteria
background flag is supported in delegation
Parent agent is not blocked when background=True
Task ID is returned for background agents
Status polling, output retrieval, and stop commands work
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
[Automatic Post]: This issue has had no activity for 32 days (labels: delegation, enhancement). @enyst@neubig@xingyaoww, could you take a look when you have a chance and help figure out next steps?
Generated by OpenHands automation on behalf of the user.
[Automatic Post]: This issue has had no activity for 34 days (labels: enhancement). @enyst@neubig@xingyaoww, could you take a look when you have a chance and help figure out next steps?
Generated by OpenHands automation on behalf of the user.
[Automatic Post]: This issue has had no activity for 48 days (labels: enhancement). Could someone take a look when they have a chance and help figure out next steps?
Generated by OpenHands automation on behalf of the user.
Activity
all-hands-bot commentedon Mar 26, 2026
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
all-hands-bot commentedon Apr 5, 2026
This issue was automatically closed due to 50 days of inactivity. We do this to help keep the issues somewhat manageable and focus on active issues.
github-actions commentedon May 16, 2026
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
github-actions commentedon May 26, 2026
This issue was automatically closed due to 50 days of inactivity. We do this to help keep the issues somewhat manageable and focus on active issues.
github-actions commentedon Jul 7, 2026
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
github-actions commentedon Jul 18, 2026
This issue was automatically closed due to 50 days of inactivity. We do this to help keep the issues somewhat manageable and focus on active issues.
all-hands-bot commentedon Aug 21, 2026
[Automatic Post]: This issue has had no activity for 32 days (labels: delegation, enhancement). @enyst @neubig @xingyaoww, could you take a look when you have a chance and help figure out next steps?
Generated by OpenHands automation on behalf of the user.
all-hands-bot commentedon Sep 29, 2026
[Automatic Post]: This issue has had no activity for 34 days (labels: enhancement). @enyst @neubig @xingyaoww, could you take a look when you have a chance and help figure out next steps?
Generated by OpenHands automation on behalf of the user.
all-hands-bot commentedon Nov 17, 2026
[Automatic Post]: This issue has had no activity for 48 days (labels: enhancement). Could someone take a look when they have a chance and help figure out next steps?
Generated by OpenHands automation on behalf of the user.