Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ async def send_message(

if not client:
raise ValueError(f'Client not available for {agent_name}')
task_id = state['task_id'] if 'task_id' in state else str(uuid.uuid4())


if 'context_id' in state:
context_id = state['context_id']
Expand All @@ -253,9 +253,8 @@ async def send_message(
'messageId': message_id,
},
}

if task_id:
payload['message']['taskId'] = task_id
# Don't send taskId to remote agents - let them create their own tasks
# Remote agents should create new tasks, not try to find existing unknown task IDs

if context_id:
payload['message']['contextId'] = context_id
Expand Down