Skip to content

fix codegen client compatibility - #1

Merged
fergusean merged 1 commit into
mainfrom
agent/fix-codegen-client-compatibility
Jul 21, 2026
Merged

fix codegen client compatibility#1
fergusean merged 1 commit into
mainfrom
agent/fix-codegen-client-compatibility

Conversation

@fergusean

Copy link
Copy Markdown
Contributor

Summary

  • correct RequestResult so async request wrappers return one promise of the possible result shapes
  • add regression coverage ensuring optional-upload requests without a file use JSON
  • update error-handling examples for responses that may be unavailable after network failures
  • bump the package to 2.9.1

Root cause

The legacy client generator selected multipart encoding for endpoints that also accepted JSON, causing nested request fields to arrive as strings unless a file activated the _payload upload adapter. The current generator selects JSON when the optional upload is omitted. During the consumer upgrade, the v2.9.0 RequestResult conditional type also exposed an incompatible union-of-promises shape for normal async wrappers.

Validation

  • yarn format
  • yarn lint
  • yarn test:typecheck
  • yarn build

Co-authored-by: Codex <codex@openai.com>
@fergusean
fergusean marked this pull request as ready for review July 21, 2026 16:16
@fergusean
fergusean merged commit 338b1ae into main Jul 21, 2026
1 check passed
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