Skip to content

Surface unreachable OpenAPI upstreams as network errors - #1960

Open
baggiiiie wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
baggiiiie:fix/openapi-upstream-unreachable
Open

Surface unreachable OpenAPI upstreams as network errors#1960
baggiiiie wants to merge 1 commit into
UsefulSoftwareCo:mainfrom
baggiiiie:fix/openapi-upstream-unreachable

Conversation

@baggiiiie

@baggiiiie baggiiiie commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

when an OpenAPI upstream cannot be reached, the failure escapes the typed tool-result path and becomes Internal tool error [id]. artifacts throws error message directly in UI.

this change maps transport failures without an HTTP status to upstream_unreachable and shows a nicer error message to user

before

openapi-unreachable-before.mp4

after

openapi-unreachable-after.mp4

Linked issue

no issue open yet, will open one if preferred

Verification

  • OpenAPI scoped tests — 11 passed
  • OpenAPI package typecheck
  • e2e — Artifacts · an unreachable OpenAPI host shows actionable retry guidance instead of an internal error

Checklist

  • Added a changeset (bun run changeset), or this change needs none.
  • Added or updated tests for the new behaviour.
  • No secrets, credentials, or private data in the diff.

@baggiiiie
baggiiiie force-pushed the fix/openapi-upstream-unreachable branch from 3f1f9f6 to 969689e Compare September 6, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant