dsh-web-fetch-fallback: Local Direct Fetch Fallback on web_fetch Primary Path Failure

DSH's built-in web_fetch terminates immediately when the official Fetch backend returns a failure, a non-2xx status, or an empty body—even if the target site is actually reachable. The dsh-web-fetch-fallback package by qq-24 wraps ctx.web.fetch: the primary path runs first as-is, and upon failure it gracefully degrades to a local Node fetch call, with the result still returned through the same tool as a WebFetchResult. The article covers installation commands, restart requirements, configuration options, security boundaries, and troubleshooting tips, making it ideal for developers working with the web profile and network-enabled tools.

Read More