Protocol Notes
This repository keeps the protocol experiments small and reproducible.
Local Probe
Start the app-server:
bash
npm run server:wsProbe it from another terminal:
bash
npm run probe:wsThe probe performs:
initializeinitializedthread/start
It prints the JSON-RPC messages it sent and received so changes in Codex app-server behavior can be inspected directly.
Observed Health Behavior
GET /readyzreturns200 OKwhen the app-server is ready.GET /healthzreturns200 OKwithout an external origin.GET /healthzwith anOriginheader returned403 Forbiddenin the local smoke test.
Bridge Behavior
The bridge keeps one upstream WebSocket connection per shared browser thread. Browser clients talk to /bridge?token=..., while the upstream Codex app-server remains at ws://127.0.0.1:45213.