Opus finding
Watchdog abort-error detection relies on brittle string matching
- src/providers/orchestrator.ts:408-416
- src/providers/orchestrator.ts:46-62
isRetryableError and the watchdog-abort detection both rely on substring matching of localized error messages. This is fragile across Node versions and provider SDKs (e.g. 'AbortError' vs 'aborted'); 'aborted' will also match unrelated messages like 'request aborted by user'. Moreover, the watchdog-abort branch in the catch block has an empty body and a comment but does nothing — dead code.
Recommendation
Use error codes / instanceof checks (err.name === 'AbortError', err.code, err.status). Remove the empty branch or implement the documented behavior.