Skip to content

feat(session): add pluggable channel store#571

Draft
parvahuja wants to merge 1 commit into
wevm:mainfrom
parvahuja:parv/session-channel-store
Draft

feat(session): add pluggable channel store#571
parvahuja wants to merge 1 commit into
wevm:mainfrom
parvahuja:parv/session-channel-store

Conversation

@parvahuja

Copy link
Copy Markdown
Contributor

Summary

Session channels were only tracked inside a manager instance, so hosts could not persist reusable channels across restarts or share channel state with their own account layer.

This added a generic channelStore for Tempo sessions. mppx stores reusable channel entries by payment scope, resumes them after a 402 reveals the scope, evicts stale stored entries once, and keeps the default behavior in memory when no store is supplied.

Validation

  • pnpm test src/tempo/session/client/CredentialState.test.ts src/tempo/session/client/SessionManager.test.ts src/tempo/session/client/Session.test.ts
  • VITE_TEMPO_NETWORK=none pnpm test src/tempo/session/
  • pnpm check:types
  • pnpm check:ci
  • pnpm audit --ignore-registry-errors
  • git diff --check origin/main...HEAD

@pkg-pr-new

pkg-pr-new Bot commented Jun 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 3eda1ae

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