Skip to content

[BUG] Subagents get stuck when using human in the loop #1475

@supreme-gg-gg

Description

@supreme-gg-gg

📋 Prerequisites

  • I have searched the existing issues to avoid creating a duplicate
  • By submitting this issue, you agree to follow our Code of Conduct
  • I am using the latest version of the software
  • I have tried to clear cache/cookies or used incognito mode (if ui-related)
  • I can consistently reproduce this issue

🎯 Affected Service(s)

Multiple services / System-wide issue

🚦 Impact/Severity

Minor inconvenience

🐛 Bug Description

When using subagents with tools that have HITL enabled (or the default ask questions tool), they will get stuck since the tool will require human input and there's no way to provide them. This results in them returning "" an empty response. This persist for the entire session (because the session has a pending state attached) and the only way to fix this is to start a new session.

🔄 Steps To Reproduce

  1. Setup an agent with HITL tools
  2. Setup another agent with the first agent as subagent
  3. Ask the main agent to send a request to the subagent to use HITL tools

🤔 Expected Behavior

Approval should bubble up the chain of requests and require user input in the top-level chat

📱 Actual Behavior

No response

💻 Environment

No response

🔧 CLI Bug Report

No response

🔍 Additional Context

No response

📋 Logs

📷 Screenshots

No response

🙋 Are you willing to contribute?

  • I am willing to submit a PR to fix this issue

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions