Skip to content

test(sdk): type-check live request payloads#479

Merged
jiashuoz merged 2 commits into
mainfrom
codex/sdk-live-typechecks
Jul 15, 2026
Merged

test(sdk): type-check live request payloads#479
jiashuoz merged 2 commits into
mainfrom
codex/sdk-live-typechecks

Conversation

@jiashuoz

Copy link
Copy Markdown
Member

Summary

Update both SDK live suites to use the current text request field instead of removed body, and make stale request shapes fail during normal test runs. TypeScript now type-checks source plus tests; Python runs mypy against its typed live suite in CI.

Client surface checklist

  • TypeScript SDK live send/reply requests use text
  • Python SDK live send/reply requests use typed models with text
  • TypeScript tests are included in a strict no-emit type-check
  • Python live tests are covered by mypy in CI

No server, OpenAPI, CLI, or MCP behavior changes are included.

Operational risk

Test and CI-only changes. The stricter gates may expose future stale examples before runtime; they do not change published SDK runtime behavior.

Test plan

  • npm run build --workspace @e2a/sdk
  • npm test --workspace @e2a/sdk — 155 passed
  • npm run test:live --workspace @e2a/sdk — collected, 4 skipped without live credentials
  • mypy — no issues
  • pytest tests/ -q — 277 passed, 18 skipped

Note: uv lock --check panicked in the local macOS system-configuration library; the committed lock installed successfully and powered the passing Python suite.

@jiashuoz jiashuoz marked this pull request as ready for review July 14, 2026 23:25
@jiashuoz jiashuoz merged commit 16ea21d into main Jul 15, 2026
15 checks 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