Corpus position 4140 (fetch-proxy-connect-tunnel-split-envelope.test.ts) guards Bun #30381.
Scope:
- parse a CONNECT 200 envelope incrementally across TCP reads
- discard proxy-only headers before parsing the tunneled upstream response
- decode the upstream chunked body and recognize its terminator without waiting for FIN
- prevent
Proxy-Agent/Connectionleakage into the user response - model the subprocess fixture through the same parser
- surface structured tunnel parse errors with operation, phase, byte counts, cause, and composed stack
- add permanent focused coverage and advance the zero-failure frontier.
First failure: the child fixture produces no JSON response, leading to JSON Parse error: Unexpected EOF.