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
{{ message }}
Repository navigation
Commit 00b9423
Browse filesBrowse the repository at this point in the historyBrowse files
When a sub-agent wrapped with as_tool() emits user_input_request content
(e.g. oauth_consent_request), the event was silently dropped because
as_tool() only returns .text. This fix propagates user_input_request
Content through the tool invocation pipeline to the parent response.
Changes:
- Add UserInputRequiredException to bridge the str-return boundary
- Check response.user_input_requests in as_tool() before returning .text
- Add re-raise guards in _auto_invoke_function to prevent the generic
except Exception from swallowing the exception
- Catch in invoke_with_termination_handling to extract Content items
- Expand _handle_function_call_results to detect user_input_request Content
Co-authored-by: Copilot <[email protected]>
0 commit comments