Skip to content

Handle paid Tempo session SSE fetches#643

Closed
parvahuja wants to merge 1 commit into
wevm:mainfrom
parvahuja:parv/payment-aware-sse-session-fetch
Closed

Handle paid Tempo session SSE fetches#643
parvahuja wants to merge 1 commit into
wevm:mainfrom
parvahuja:parv/payment-aware-sse-session-fetch

Conversation

@parvahuja

@parvahuja parvahuja commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Added a private client response hook for methods that need to adapt successful paid fetch responses.
  • Used that hook for Tempo session SSE responses so payment control events can post top-up and voucher credentials while callers receive the application stream.
  • Added focused coverage for the fetch hook and the Tempo session SSE response path.

Why

Paid Tempo session SSE streams can request additional vouchers after the initial paid retry has already returned a 200 event stream. Fetch.from previously returned that stream directly, so callers using payment-aware fetch could receive payment control events without the client posting the required voucher credentials.

Validation

  • VITE_TEMPO_NETWORK=none pnpm exec vp test --run src/tempo/session/client/Transports.test.ts
  • VITE_TEMPO_NETWORK=none pnpm exec vp test --run src/client/internal/Fetch.test.ts -t "lets methods wrap post-payment responses"
  • pnpm check:types
  • pnpm check
  • git diff --check

@pkg-pr-new

pkg-pr-new Bot commented Jul 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@643

commit: c30d9bc

@parvahuja parvahuja force-pushed the parv/payment-aware-sse-session-fetch branch from a523f04 to c30d9bc Compare July 14, 2026 01:27
@parvahuja

Copy link
Copy Markdown
Contributor Author

Closing in favor of a narrower SessionManager account-resolution change.

@parvahuja parvahuja closed this Jul 14, 2026
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