Skip to content

fix(api): allow null raw message before review approval#478

Merged
jiashuoz merged 1 commit into
mainfrom
codex/fix-nullable-raw-message
Jul 15, 2026
Merged

fix(api): allow null raw message before review approval#478
jiashuoz merged 1 commit into
mainfrom
codex/fix-nullable-raw-message

Conversation

@jiashuoz

Copy link
Copy Markdown
Member

Summary

Correct the shared message-detail contract for outbound review drafts: raw_message remains required but is nullable until approval composes canonical MIME. Regenerate both SDK models and add server/SDK regressions for the lifecycle.

Client surface checklist

  • Go handler + integration tests
  • OpenAPI spec + generated types refreshed (make generate-sdk-check is clean)
  • TypeScript SDK generated base regenerated
  • Python SDK generated base regenerated
  • Tests at each affected surface

No migration, CLI, or MCP behavior changes are required: storage already intentionally keeps review drafts in body_text/body_html, and all clients consume the shared generated message model.

Operational risk

Contract-only correction. No delivery, persistence, billing, authentication, or notification behavior changes. Generated clients now accept the value the server already emits.

Test plan

  • go test ./internal/httpapi -count=1
  • make spec-check
  • make generate-sdk-check
  • npm run build --workspace @e2a/sdk
  • npm test --workspace @e2a/sdk — 155 passed
  • sdks/python/.venv/bin/pytest sdks/python/tests/ -q — 277 passed, 18 skipped

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