Skip to content

RFC: Product Session Restore Host API#71

Open
replghost wants to merge 2 commits into
mainfrom
feat/rfc-0016-session-restore
Open

RFC: Product Session Restore Host API#71
replghost wants to merge 2 commits into
mainfrom
feat/rfc-0016-session-restore

Conversation

@replghost
Copy link
Copy Markdown
Contributor

@replghost replghost commented May 14, 2026

Summary

Adds RFC 0016 for product session restore plus the matching TrUAPI interface shape.

The RFC defines a small host lifecycle signal plus product-storage convention for restoring hosted product state after app switching, backgrounding, host restart, memory pressure, or OS process eviction.

Scope

  • RFC 0016 / product session restore only
  • Uses existing scoped local storage for the session blob
  • Adds the host session lifecycle subscription in rust/crates/truapi
  • Regenerates @parity/truapi TypeScript, playground metadata, explorer metadata, and examples
  • No CoinPayment/RFC17 changes in this PR

Validation

  • cargo fmt -p truapi
  • ./scripts/codegen.sh
  • npm run build --prefix js/packages/truapi
  • npm run typecheck:examples --prefix js/packages/truapi
  • npm test --prefix js/packages/truapi
  • cargo test -p truapi
  • git diff --check

@replghost replghost requested a review from a team May 14, 2026 01:45
@replghost replghost force-pushed the feat/rfc-0016-session-restore branch 2 times, most recently from e1de3db to 25802a5 Compare May 14, 2026 11:37
@replghost replghost force-pushed the feat/rfc-0016-session-restore branch from 25802a5 to 6a40228 Compare May 14, 2026 12:11
@filvecchiato
Copy link
Copy Markdown
Collaborator

@TarikGul @replghost @pgherveou From what I can see, I believe this PR belong to product-sdk, do you agree?

@filvecchiato filvecchiato added rfc w3s w3s essential and removed w3s w3s essential labels May 15, 2026
@filvecchiato filvecchiato changed the title RFC 0016: Product Session Restore Host API RF: Product Session Restore Host API Jun 4, 2026
@filvecchiato filvecchiato changed the title RF: Product Session Restore Host API RFC: Product Session Restore Host API Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants