Skip to content

fix(providers): preserve structured streaming error diagnostics - #2377

Merged
JAORMX merged 2 commits into
mainfrom
fix/provider-error-diagnostics-20261016
Oct 16, 2026
Merged

JAORMX merged 2 commits into
mainfrom
fix/provider-error-diagnostics-20261016

Conversation

@JAORMX

@JAORMX JAORMX commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Why

Prior hardening flattened SDK ssestream.StreamError values to a generic error. This restores typed decoding of structured streaming envelopes while keeping display text safe: JSON/schema/network categories and the in-band error origin are preserved without exposing raw secrets. The SDK cause and response correlation remain unwrap-visible; transient failures retry only before output and never replay visible output. Context-window overflow remains a retry and breaker-neutral veto.

Synthetic real-SDK and HTTP-relay coverage protects these paths without recording raw secrets.

API compatibility

Existing error detail text is refined, and previously lost nested in-band metadata/classifications are recovered. There are no wire or public Go API changes, stored-data schema changes, major or feature identifier changes, client upgrade or migration requirements, or breaking-change approval needed. The compatibility advisory is satisfied.

Validation

  • Focused provider, app, resilience, and server tests (including race) passed.
  • task lint, task docs, task build, and the offline demo passed.
  • A prior full task test failed pending launch receipt fixtures: TestLaunchOwnershipIdentityMismatchIsUntouched and TestLaunchOwnershipFixtureLifecycleLeavesNoHelpers / parent-exit (nested TestLaunchOwnershipFixtureCleanupMutant). Later reruns reported passing; no causal claim is made.
  • Full task test:race timed out at 600 seconds; it is not green.
  • No live-provider test has run yet; a retry is planned.

Review

No blockers found.

@JAORMX
JAORMX marked this pull request as ready for review October 16, 2026 08:08
@JAORMX JAORMX closed this in #2378 Oct 16, 2026
@JAORMX JAORMX reopened this Oct 16, 2026
@JAORMX
JAORMX merged commit 022b9f1 into main Oct 16, 2026
97 of 100 checks passed
@JAORMX
JAORMX deleted the fix/provider-error-diagnostics-20261016 branch October 16, 2026 12:27
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 20, 2026
2 tasks
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