outputSink->appendRunStatus($sessionId, $toolCall->runId, 'RUNNING', [ 'parent_run_id' => $toolCall->parentRunId, 'tool_call_id' => $toolCall->toolCallId, 'dedupe_key' => "run:{$toolCall->runId}:status:RUNNING", ], $wasDeduped); $shouldDispatch = ! $wasDeduped; }); if ($shouldDispatch) { ToolRunJob::dispatchSync($sessionId, $toolCall->toArray()); } return $toolCall->runId; } }