Skip to content

Commit db41f54

Browse files
XinranTangcopybara-github
authored andcommitted
chore: When processing pending tool confirmation requests, only look at events in the same branch
PiperOrigin-RevId: 816387687
1 parent 636def3 commit db41f54

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/google/adk/flows/llm_flows/request_confirmation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ async def run_async(
4848

4949
agent = invocation_context.agent
5050

51-
events = invocation_context.session.events
51+
# Only look at events in the current branch.
52+
events = invocation_context._get_events(current_branch=True)
5253
if not events:
5354
return
5455

0 commit comments

Comments
 (0)