Skip to content

fix(adapters): preserve gateway JSON parse context#1

Open
xy200303 wants to merge 1 commit into
RerankerGuo:feat/cross-platform-adapter-235from
xy200303:fix/gateway-client-parse-error
Open

fix(adapters): preserve gateway JSON parse context#1
xy200303 wants to merge 1 commit into
RerankerGuo:feat/cross-platform-adapter-235from
xy200303:fix/gateway-client-parse-error

Conversation

@xy200303

@xy200303 xy200303 commented Jul 9, 2026

Copy link
Copy Markdown

Summary

  • Adds GatewayMemoryClientParseError for successful Gateway responses that cannot be parsed as JSON.
  • Preserves the request path, HTTP status, and raw response body so platform adapter integrations can diagnose malformed Gateway responses.
  • Exports the new error type from both adapter barrels and the package entry point.

Relationship to upstream work

Verification

  • npm install --no-package-lock --ignore-scripts
  • npm test -- src/adapters/gateway-client/gateway-client.test.ts
  • git diff --check upstream/pr/316...HEAD

Signed-off-by: xy200303 <3483421977@qq.com>
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