Skip to content

refactor(sessions): delegate requests and administration to mppx#63

Open
gakonst wants to merge 5 commits into
mainfrom
georgios/mppx-session-manager
Open

refactor(sessions): delegate requests and administration to mppx#63
gakonst wants to merge 5 commits into
mainfrom
georgios/mppx-session-manager

Conversation

@gakonst

@gakonst gakonst commented Jul 20, 2026

Copy link
Copy Markdown

Summary

  • delegate Tempo session bootstrap, recovery, voucher accounting, top-ups, receipts, discovery, reconciliation, and close flows to MPPx
  • use the MPPx Node SQLite ChannelStore at ~/.tempo/wallet/channels.db
  • use the MPPx Node Tempo Wallet resolver for active-account and access-key selection from ~/.tempo/wallet/store.json
  • retain the exact access key authorized by an existing durable channel across cold processes
  • keep the legacy wallet session path only for pre-TIP-1034 rows
  • preserve wallet-cli HTTP retry, redirect, proxy, explicit private-key, and interactive-provider behavior

Dependency

Pinned to immutable MPPx preview commit 0c7afa0 from wevm/mppx#713 until its public Node wallet and session-administration helpers are released.

Proof

Current main failed the managed bootstrap regression before retrying the protected request. This branch passes with GET -> HEAD -> GET, delegating bootstrap and rehydration to MPPx. A fresh wallet-cli process also synced the same live mainnet channels.db to the same five TIP-1034 rows reported by MPPx and mpp-rs, including two active OpenAI WebSocket sessions and three recovered orphan sessions. The active OpenAI session retained access key 0x060e…8ff5 even though a different key appears first in store.json.

Validation:

  • 118 tests passed
  • application and test TypeScript projects passed
  • format and lint passed
  • shared-store compatibility test passed
  • real mainnet session sync passed
  • commits have GitHub-verified signatures

@gakonst
gakonst force-pushed the georgios/mppx-session-manager branch from 90fec77 to 5484d35 Compare July 20, 2026 19:44
@gakonst
gakonst marked this pull request as ready for review July 20, 2026 19:44
Comment thread package.json Outdated
"accounts": "0.14.11",
"incur": "0.4.8",
"mppx": "0.8.9",
"mppx": "https://pkg.pr.new/mppx@8b64593",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm updating to use newest package since it's released

@alexrisch alexrisch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me like less code

@gakonst gakonst changed the title refactor(request): delegate payment sessions to mppx refactor(sessions): delegate requests and administration to mppx Jul 24, 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.

3 participants