Moved the client registration step before the event replay logic in the SSE subscription flow to resolve a race condition. By ensuring the registry is fully aware of the client connection prior to attempting to retrieve missed events, we prevent potential delivery gaps for newly connected agents. Race condition fix