DashboardcliAbortSignal.reason upgrade propagation

AbortSignal.reason upgrade propagation

Category: gotcha
Confidence: 1.00
ID: 01a08a72-1f1d-7bb7-a62b-13b5a7e8d108
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 06aLRoB0AYUPw7Dkg
Created: 2026-09-10 08:32:10
Updated: 2026-09-10 08:32:10

Content

Trap: preserving only caught errors named AbortError looks sufficient because fetch commonly rejects that way, but AbortController.abort(reason) may reject with a primitive, object, ordinary Error, or a distinct generic abort. Fix: whenever the caller signal is aborted, throw signal.reason unchanged before normalization, retry, or transport wrapping. Apply this across GitHub probes/pagination and GHCR token, manifest, tags, authenticated blob, redirected blob, and JSON-body reads.

Move to: