Skip to content

fix(httpapi): handle corrupt v2 session messages#28633

Merged
nexxeln merged 1 commit into
devfrom
nxl/v2-session-decode-errors
May 21, 2026
Merged

fix(httpapi): handle corrupt v2 session messages#28633
nexxeln merged 1 commit into
devfrom
nxl/v2-session-decode-errors

Conversation

@nexxeln
Copy link
Copy Markdown
Member

@nexxeln nexxeln commented May 21, 2026

summary

  • replace v2 session message sync decoding with effectful typed decode failures
  • map corrupt projected messages on v2 message/context reads to safe UnknownError responses with refs
  • add runtime and OpenAPI coverage for v2 session read data errors

testing

  • bun test test/server/httpapi-session.test.ts test/server/httpapi-public-openapi.test.ts
  • bun typecheck
  • bun test ./test/server/httpapi-exercise/index.ts
  • bun turbo typecheck

@nexxeln nexxeln merged commit 9739d75 into dev May 21, 2026
10 of 11 checks passed
@nexxeln nexxeln deleted the nxl/v2-session-decode-errors branch May 21, 2026 11:00
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