Skip to content

[BUG] HITL broken in 0.10.0 for Python agents: "Tool 'X' does not require confirmation." #2731

Closed

Description

@Daniel-Vaz

📋 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)

Controller Service

🚦 Impact/Severity

Minor inconvenience

🐛 Bug Description

Every human-in-the-loop interaction fails on resume in kagent 0.10.0 (both the built-in ask_user tool and any tool listed in tools_requiring_approval). The agent asks its question fine but answering it always fails with:

ValueError: Tool 'ask_user' does not require confirmation.

🔄 Steps To Reproduce

  1. Deploy any Declarative python agent on kagent 0.10.0.
  2. Ask it something that makes it call ask_user (e.g. "ask me a question").
  3. The agent pauses and presents the question.
  4. Answer it, from the kagent UI or any A2A client.
  5. The run fails with Tool 'ask_user' does not require confirmation.

Identical failure for any tool in tools_requiring_approval, with that tool's name in the message.

🤔 Expected Behavior

The agent is able to ask the question, and when the user answers it it proceeds as normal.

📱 Actual Behavior

The agent asks the question, but any answer provided by the user results in:

ValueError: Tool 'ask_user' does not require confirmation.

💻 Environment

kagent 0.10.0 (ghcr.io/kagent-dev/kagent/app:0.10.0-full, controller 0.10.0)
kagent-adk 0.3.0
kagent-core 0.1.0
google-adk 1.38.0
a2a-sdk 0.3.26
Agent Declarative, runtime: python
Database PostgreSQL (controller-backed session store)

🔧 CLI Bug Report

No response

🔍 Additional Context

Seems related with #2465

📋 Logs

kagent_adk.kagent.adk._agent_executor - ERROR - Error handling A2A request: Tool 'ask_user' does not require confirmation.
Traceback (most recent call last):
  File "/.kagent/packages/kagent-adk/src/kagent/adk/_agent_executor.py", line 246, in _execute_impl
    await self._handle_request(context, event_queue, runner, run_args)
  File "/.kagent/packages/kagent-adk/src/kagent/adk/_agent_executor.py", line 604, in _handle_request
    async for adk_event in agen:
  ...
  File "/.kagent/.venv/lib/python3.13/site-packages/google/adk/flows/llm_flows/base_llm_flow.py", line 1001, in _preprocess_async
    async for event in agen:
      yield event
  File "/.kagent/.venv/lib/python3.13/site-packages/google/adk/flows/llm_flows/request_confirmation.py", line 336, in run_async
    await _resolve_confirmation_targets(
  File "/.kagent/.venv/lib/python3.13/site-packages/google/adk/flows/llm_flows/request_confirmation.py", line 184, in _resolve_confirmation_targets
    raise ValueError(
ValueError: Tool 'ask_user' does not require confirmation.

📷 Screenshots

No response

🙋 Are you willing to contribute?

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

Activity

  1. added theissue type on Sep 7, 2026
  2. changed the title [-][BUG] All HITL broken in 0.10.0: executor truncates the stream before the confirmation-request event is persisted → "Tool 'X' does not require confirmation."[/-] [+][BUG] All HITL broken in 0.10.0: "Tool 'X' does not require confirmation."[/+] on Sep 8, 2026
  3. deleted a comment from on Sep 8, 2026
  4. changed the title [-][BUG] All HITL broken in 0.10.0: "Tool 'X' does not require confirmation."[/-] [+][BUG] HITL broken in 0.10.0 for Python agents: "Tool 'X' does not require confirmation."[/+] on Sep 8, 2026
  5. self-assigned this
    on Sep 8, 2026
  6. added a commit that references this issue on Sep 8, 2026
    a3d26ea
  7. Daniel-Vaz commented on Sep 9, 2026

    @Daniel-Vaz
    ContributorAuthor

    Tested on version 0.10.1 and it's working once again. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions