Skip to content

Commit 1dd60ce

Browse files
authored
fix: only process new user messages when looking at latest tool result (#727)
1 parent a2c01b3 commit 1dd60ce

File tree

1 file changed

+1
-1
lines changed
  • integrations/adk-middleware/python/src/ag_ui_adk

1 file changed

+1
-1
lines changed

integrations/adk-middleware/python/src/ag_ui_adk/adk_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ async def _run_adk_in_background(
10771077
self._session_manager.mark_messages_processed(app_name, input.thread_id, message_ids)
10781078

10791079
# Convert user messages first (if any)
1080-
user_message = await self._convert_latest_message(input, unseen_messages if message_batch is not None else None)
1080+
user_message = await self._convert_latest_message(input, unseen_messages) if message_batch else None
10811081

10821082
# if there is a tool response submission by the user, add FunctionResponse to session first
10831083
if active_tool_results and user_message:

0 commit comments

Comments
 (0)