fix(sdk): type SSE event payloads by opencode-agent[bot] · Pull Request #34170 · anomalyco/opencode · GitHub
Skip to content

fix(sdk): type SSE event payloads#34170

Closed
opencode-agent[bot] wants to merge 1 commit into
devfrom
sdk-generation-dev-check
Closed

fix(sdk): type SSE event payloads#34170
opencode-agent[bot] wants to merge 1 commit into
devfrom
sdk-generation-dev-check

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • patch Effect OpenAPI generation for data-mode StreamSse responses so the OpenAPI media schema is the JSON payload schema, not the raw SSE data: line string wrapper
  • keep the existing SSE wire metadata (x-effect-stream) intact for clients that need transport semantics
  • regenerate legacy JS SDK v2 types so V2Event and SessionDurableEvent remain the public payload unions
  • update the TUI consumer from the temporary generated V2Event1 name to V2Event

Validation

  • minimal Effect/OpenAPI SSE route now emits payload component schema instead of contentSchema string wrapper
  • real OpenAPI check: /api/event references #/components/schemas/V2Event, only V2Event exists, and it is the union; /api/session/{sessionID}/event references SessionDurableEvent
  • bun run build from packages/sdk/js
  • bun typecheck from packages/sdk/js
  • bun typecheck from packages/tui
  • bun run check:generated from packages/client
  • pre-push bun turbo typecheck (29/29 tasks)

@kitlangton kitlangton marked this pull request as ready for review June 27, 2026 04:30
Patch Effect OpenAPI generation so data-mode SSE responses expose their JSON payload schema instead of the raw data-line string wrapper. Regenerate legacy SDK types so V2Event and SessionDurableEvent remain the public payload unions.

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
@opencode-agent opencode-agent Bot force-pushed the sdk-generation-dev-check branch from bc9c086 to 6dbd516 Compare June 27, 2026 04:55
@opencode-agent

Copy link
Copy Markdown
Contributor Author

@opencode-agent opencode-agent Bot closed this Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant