Local dev gets observability traces; workerd crashes now auto-recover
miniflare@4.20260722.0
Minor Changes
-
#14633
3203b5dThanks @nickpatt! - Add local-dev observabilitywrangler devand the Vite plugin now capture a trace for every local Worker invocation - spans, logs, andconsole.*output, including requests that cross worker or Durable Object boundaries.You can explore this data two ways:
- A new Observability tab in the Local Explorer, with a Traces view (recent invocations, an inline timeline waterfall, and filters) and an Events view.
- A read-only SQL endpoint at
/cdn-cgi/explorer/api/local/observability/query, discoverable via the Local Explorer's OpenAPI document, so coding agents and tools can query the samespansandlogstables.
While this is in testing it's off by default; set
X_LOCAL_OBSERVABILITY=trueto turn it on. It will be on by default in the public release.
Patch Changes
-
#14796
c38a2c3Thanks @dependabot! - Update dependencies of "miniflare", "wrangler"The following dependency versions have been updated:
Dependency From To @cloudflare/workers-types ^5.20260721.1 ^5.20260722.1 workerd 1.20260721.1 1.20260722.1 -
#14772
c079ba3Thanks @chinesepowered! - Fix incorrect byte limit reported in the local Queues batch-size errorWhen a queue batch exceeded the maximum batch byte size in local dev, the thrown
PayloadTooLargeErrorhardcoded the limit as256000, even though the value actually enforced is288000bytes ((256 + 32) * 1000). The message now interpolates the real limit, consistent with the other Queue limit errors in the same file. -
#14493
95b026eThanks @petebacondarwin! - Updatesharpto 0.35.2sharp0.35 removes itsinstalllifecycle script, so package managers that block dependency build scripts by default (such as pnpm 11+) no longer require an explicit build approval for it when installingminiflare/wrangler. The local Images binding keeps using the same prebuiltsharpbinaries, so image transforms in local dev are unaffected.This release also reworked
sharp'sFormatEnumtypes: libvips reports AVIF inputs under theheifcontainer. The local Images binding/infoendpoint and thecf.imagetransform path now correctly report AVIF asimage/avifinstead of treating it as an unsupported/unknown type. -
#14792
c4bacecThanks @matthewp! - Recover local development after the Workers runtime crashesPreviously, an unexpected workerd crash left Miniflare running but unable to serve subsequent requests. Miniflare now restarts workerd after post-startup crashes, while continuing to surface startup crashes as fatal errors.
The Cloudflare Vite plugin also restarts the Vite development server after workerd recovers so its environments, hot channels, and module runners are recreated.
Fetched July 23, 2026
