You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Claude picker relay: HTTP/1.1 refusal of an unfinished upload hangs (Bun 1.4.2) or resets (Bun 1.4.3) #6984
The Claude Desktop picker relay (src/claude/intercept/picker-listener.ts) does not deliver an HTTP/1.1 refusal (400/503) cleanly when the client is still uploading a body, on the shipped Bun 1.4.2 runtime and on Bun 1.4.3. The reply should arrive with Connection: close and the connection should then close.
Bun 1.4.0: works (claude-picker-upload h1 buffered refusal cases pass 12/12).
Bun 1.4.2 (shipped runtime): the empty refusal and TLS EOF reach the client, but the TCP front stops draining the abandoned upload after the backend ends, so the connection never closes (test hits its 4 s deadline 12/12; an independent Node v24 HTTPS client hangs the same way).
HTTP/2 requests (Desktop's normal path) are unaffected. Desktop's HTTP/1.1 fallback can plausibly hit it; that is inferred, not reproduced in the app.
Reproduction
bun test --isolate tests/claude-integration/claude-picker-upload.test.ts -t 'h1.*buffered upload' on Bun 1.4.2 or 1.4.3 (macOS arm64; also hosted Linux and macOS on 1.4.3 in run 38219557150).
Observe "h1 400/503 refusal closes a buffered upload without body completion" fail: a 4 s close wait on 1.4.2, ECONNRESET before the reply on 1.4.3.
Found while moving CI's test runner from Bun 1.4.0 to 1.4.3 for #4956.
Independent check at trusted dev a0191a1b6fd921a6e5a9d12cb123c8df88b023e7: the existing two h1.*refusal closes a buffered upload cases passed on this Linux x86_64 host with Bun 1.4.2 (744846f84), 2 pass / 0 fail / 8 assertions. The local CA, upstream and clients were synthetic loopback fixtures; no Desktop, provider or live interception configuration was used. Hard cgroup CPU 75%, memory high/max 1280/1536 MiB, swap 0, tasks 64, finite 45-second cap, disposable private homes; protected files unchanged.
This does not contradict your macOS arm64 1.4.2 observations or the reported 1.4.3 hosted failures, and it is not a fix. It narrows the current independent receipt: Linux 1.4.2 did not reproduce in this single two-case run; 1.4.3 and Desktop fallback were not tested here. The production front does currently couple backend close to the spliced client and only resumes discarded input in the response-finish path, so the EOF/drain/finish ordering remains the useful failure boundary.
Please keep this issue open and preserve an exact-head macOS/1.4.3 failing receipt when proposing a change, with assertions for reply status/Connection header, socket close and unaffected h2/keep-alive behavior. Increasing the close wait or treating an ECONNRESET as successful delivery would not meet that contract.
Activity
Ingwannu commentedon Oct 12, 2026
Independent check at trusted dev
a0191a1b6fd921a6e5a9d12cb123c8df88b023e7: the existing twoh1.*refusal closes a buffered uploadcases passed on this Linux x86_64 host with Bun 1.4.2 (744846f84), 2 pass / 0 fail / 8 assertions. The local CA, upstream and clients were synthetic loopback fixtures; no Desktop, provider or live interception configuration was used. Hard cgroup CPU 75%, memory high/max 1280/1536 MiB, swap 0, tasks 64, finite 45-second cap, disposable private homes; protected files unchanged.This does not contradict your macOS arm64 1.4.2 observations or the reported 1.4.3 hosted failures, and it is not a fix. It narrows the current independent receipt: Linux 1.4.2 did not reproduce in this single two-case run; 1.4.3 and Desktop fallback were not tested here. The production front does currently couple backend close to the spliced client and only resumes discarded input in the response-finish path, so the EOF/drain/finish ordering remains the useful failure boundary.
Please keep this issue open and preserve an exact-head macOS/1.4.3 failing receipt when proposing a change, with assertions for reply status/Connection header, socket close and unaffected h2/keep-alive behavior. Increasing the close wait or treating an ECONNRESET as successful delivery would not meet that contract.
fix(claude): bound the picker front's discard of an abandoned upload
docs(devlog): record the L3 lane outcome for #6844 and the #6984 drai…
fix(claude): bound the picker front's discard of an abandoned upload
docs(devlog): record the L3 lane outcome for #6844 and the #6984 drai…
fix(ci): run the test runner on Bun 1.4.3 so spawnSync stops losing c…
fix(claude): bound the picker front's discard of an abandoned upload
docs(devlog): record the L3 lane outcome for #6844 and the #6984 drai…
lidge-jun commentedon Oct 12, 2026
Fixed on
devby #6986 (commit95bee2781f), landed through #7009 (merge8f10f238e3). Ships in 2.84.0.