#15030·OmniRoute

Call-log artifact worker crash ('spawn EBADF') corrupts a successful provider create into a reported failure

Author: schienbizCreated Sep 29, 2026Updated Sep 29, 2026

Summary

omniroute providers add <provider> can report failure (Provider mutation read-back failed: HTTP 500) even when the provider connection was actually created successfully, because an unrelated background worker crashes on the immediate read-back request.

Repro

  1. omniroute providers add ollama-local --allow-no-credential --yes (any provider works; reproduced with a local/passthrough-category provider)
  2. CLI prints: ✖ Provider mutation read-back failed: HTTP 500

Server log at the time of the error

POST /api/providers 201 in 1218ms (next.js: 1167ms, proxy.ts: 5ms, application-code: 46ms)
[callLogs] Call-log artifact worker failed: TransformError: spawn EBADF
⨯ Error: spawn EBADF
    at [ignore-listed frames] {
  errno: -9,
  code: 'EBADF',
  syscall: 'spawn',
  page: '/api/providers/<connection-id>'
}
 GET /api/providers/<connection-id> 500 in 730ms

POST /api/providers returned 201 (creation succeeded). The CLI's own verification step (runProviderAddCommand → readRemoteConnectionById in bin/cli/commands/provider-crud.mjs) then does a GET /api/providers/<id> to read back and verify the created connection, and that GET is the request that trips the call-log artifact worker's spawn EBADF crash — turning a successful creation into a reported failure.

Confirmed via omniroute providers list immediately after: the connection exists (status: error, presumably because the crashed read-back request also touched connection state).

Expected

  • The call-log artifact worker's spawn EBADF should not be triggered by (or should not crash) a plain GET /api/providers/:id read.
  • Even if the worker crash is a separate underlying issue, a background worker failure should not fail the primary request/response cycle for an unrelated read.

Environment

  • OmniRoute 3.8.51 (commit a13e82d9850a8e94f7c0e5a4b83c7ae444cf0ea9)
  • Node v24.19.0, macOS (darwin arm64)
  • Source build