DashboardopencodeRequestInit duplex typing

RequestInit duplex typing

Category: gotcha
Confidence: 1.00
ID: 01a0865a-61c0-7714-8550-7290b0ef1db4
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 1I75TQ6NhskJH4tvq
Created: 2026-09-09 13:27:45
Updated: 2026-09-09 13:27:45

Content

Trap: omitting duplex from Node stream-body Requests looks correct because the active TypeScript RequestInit type rejects it, but Node fetch requires duplex: "half" at runtime. Fix: retain the property and annotate that line with @ts-expect-error; removing it makes valid stream-ownership tests fail at construction.

Move to: