#6865: fix: handle extended "fetch failed" messages in Node v25+
Cluster:
Node and macOS Enhancements
## Summary
Handle extended "fetch failed" error messages in Node v25+ to prevent false-positive crash reports.
**Problem**: Node v25 changed `fetch()` error messages from `"fetch failed"` to `"fetch failed: <details>"`. Existing detection logic uses exact string match and misses these.
**Fix**: Use `startsWith("fetch failed")` instead of equality check.
## Risk Summary
- **Severity**: Low (crash detection false positive, not a security issue)
- **Regression risk**: None — strictly widens the match, no false negatives introduced
- **Scope**: 2 files, +7/-1 lines
## Verification
- [x] `pnpm build` passes
- [x] `pnpm lint` passes
- [x] `pnpm test` passes
## Sign-Off
- Models used: Claude Opus 4.6
- Submitter effort: Verified Node v25 changelog for fetch error message format change, confirmed startsWith covers both old and new formats
- Agent notes: N/A
lobster-biscuit
Most Similar PRs
#5688: fix: recognize versioned node binaries like node24 (openSUSE)
by an4tman · 2026-01-31
62.2%
#22700: fix: support node binaries named like `node22`
by lictex · 2026-02-21
61.8%
#18112: fix(daemon): gateway install on macOS ignores fnm/nvm node (#18090)
by yinghaosang · 2026-02-16
61.7%
#23800: fix: map HTTP 404 to model_not_found failover reason
by builtbyrobben · 2026-02-22
61.1%
#23745: fix(resilience): add timeout to unguarded fetch calls in browser su...
by kevinWangSheng · 2026-02-22
60.8%
#21163: Prevent Slack DNS errors from crashing the gateway
by graysurf · 2026-02-19
60.2%
#23730: fix(update): correctly compare versions with -N build suffix
by mrx-arafat · 2026-02-22
60.1%
#18961: fix: detect pnpm package manager in openclaw update
by norci · 2026-02-17
59.9%
#19061: fix(llm-task): correct fallback import path from src/ to dist/
by Operative-001 · 2026-02-17
59.8%
#20584: fix: use stable Homebrew symlink for daemon node path
by mwfj · 2026-02-19
59.7%