Skip to content
Commit Detail

Commit 02c8669

Author
Somhairle MacLeòid <smacleod@cloudflare.com> 2026-02-20 21:31:18 +0000
Parents
c6aee8e
Tree
71e6783
fix: carry request.cf through debug port via startEvent RPC param (#6116)

Add cfBlobJson as a parameter to WorkerdBootstrap::startEvent() in the capnp
schema, so request.cf travels as a first-class RPC value through the debug port.

Sender (workerd-debug-port-client.c++):
- startRequest() passes metadata.cfBlobJson via req.setCfBlobJson() on startEvent

Receiver (server.c++):
- startEvent() extracts cfBlobJson from RPC params, passes to EventDispatcherImpl
- getHttpService() includes cfBlobJson in SubrequestMetadata when creating WorkerInterface
- EventDispatcherImpl defers WorkerInterface creation (stores SubrequestChannel)

Files changed