Skip to content

feat(mobile): add owned WalletConnect account sessions - #1332

Merged
sidhujag merged 14 commits into
masterfrom
codex/native-dapp-connections
Nov 8, 2026
Merged

sidhujag merged 14 commits into
masterfrom
codex/native-dapp-connections

Conversation

@sidhujag

@sidhujag sidhujag commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Scope

Adds the first native WalletConnect slice on the shared dapp-session foundation in #1330 and message-approval foundation in #1331.

  • Uses official Core, SignClient and Utils 2.26.0 with an explicit protected-storage adapter and Pali Mobile's public project ID.
  • Adds Connected apps review, explicit account/network consent, saved sessions and revocation.
  • Advertises only eth_chainId, net_version, eth_accounts and eth_requestAccounts. Signing approvals remain the next implementation slice.
  • Binds permissions to the wallet, authenticated peer key and topic. Reported website metadata is labelled accordingly.
  • Commits account removal and affected grant retirement together through guarded SQLite multi-record CAS. Preserves unrelated grants and transport records.
  • Preserves connection records through password recovery and retires asynchronous controllers before wallet-removal snapshots.
  • Keeps the extension's shared permission and request-limit policy. No SDK signing changes or package patches.

Validation

  • 70 focused repository, SQLite, transport and controller tests passed.
  • 142 runtime, catalogue and imported-account tests passed.
  • The complete mobile run passed 1,637 tests and exposed nine stale factory-fixture failures. The two fixtures were updated and all 20 tests in the affected files passed on rerun.
  • Mobile TypeScript and changed-file ESLint passed. Four Connected apps browser component tests passed, including 320px, large text, expiry/cancellation and delayed clipboard completion.
  • Android and iOS Metro/Hermes exports passed. This establishes bundling, not native execution of the protocol SDK.
  • Live Node-host qualification passed actual relay pairing, account approval, all four public RPC methods, durable revocation and disconnected-request refusal with disposable protocol keys and a synthetic address. Its SQLite adapter was plaintext test storage, not native SQLCipher qualification.
  • Fresh baseline and candidate dependency audits contain the same nine low advisory entries and no moderate, high or critical entries. Ninety dependency entries were added, with no existing package version changes.

Integration and qualification gates

This account-session foundation is ready for code review. The original native resource-retirement gate is addressed by later stack work, including #1394, #1397 and #1400. Those changes must be composed and qualified before release; they are not claimed to be present in this earlier head.

Live native pairing, interruption/restart and physical-device acceptance remain outstanding. QR scanning and mobile message/transaction approval screens are outside this first slice.

@vercel

vercel Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pali-wallet Ready Ready Preview Nov 8, 2026 7:56am UTC

Request Review

Base automatically changed from codex/shared-message-approvals to master November 8, 2026 05:01
@sidhujag

sidhujag commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

@codex review

Please review current head ea3b7b8. This draft has not had an automatic code review. It now includes the merged shared foundations and the CI formatting correction. The documented native transport retirement and native qualification gates still hold the merge.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T18:10:20.632807Z 86d5e5f Draft marked ready
🔒 Security Review ❌ Failed 2026-11-08T18:08:26.650655Z
We couldn’t complete this review. Comment @codex security review to try again.
86d5e5f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ea3b7b8b55

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/mobile/src/storage/sqlite.ts Resolved

Copy link
Copy Markdown
Member

@codex review

Please review current head 5d36ce1. The reported ordinary-retirement omission is fixed with a required, awaited connection disposer and release/replacement/failure regressions. The pre-release schema finding has a scope disposition in its thread. The documented SDK resource-retirement gate still holds the native merge.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5d36ce1237

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Member

@codex review

Please review current head 8618a7b. It fixes the removal-cancel lifecycle finding, retains confirmation/outcome ownership, and adds real controller/storage plus actual parent-screen regressions. The native SDK resource-retirement gate remains open.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8618a7b8b8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sidhujag

sidhujag commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

@codex review

Please review c0cf720 with the Android focus-resume fix and its parent-screen regressions. The prior finding is fixed in c1c8a90; the current follow-up updates the recovery workflow contract test to validate the split browser jobs and fail-closed required aggregate. This request is from sidhujag.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: c0cf720066

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sidhujag

sidhujag commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

The terminal-lifetime fixes are now available for upstream review in WalletConnect/walletconnect-utils#283 and WalletConnect/walletconnect-monorepo#7391. Combined source verification passes 46 lifecycle tests and 13 provider/WebSocket tests, plus TypeScript. The native terminal-transport and published-dependency adoption gates remain open, so this PR remains draft.

@vercel

vercel Bot commented Nov 8, 2026

Copy link
Copy Markdown

Deployment failed for project pali-wallet with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/sidhujags-projects?upgradeToPro=build-rate-limit

@sidhujag

sidhujag commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b2ecf900bd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sidhujag

sidhujag commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 867ed50fec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sidhujag

sidhujag commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 86d5e5f5ef

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sidhujag
sidhujag marked this pull request as ready for review November 8, 2026 18:08
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@sidhujag
sidhujag merged commit 5f9c77a into master Nov 8, 2026
55 of 59 checks passed
@sidhujag
sidhujag deleted the codex/native-dapp-connections branch November 8, 2026 22:23

This branch was successfully deployed

1 active deployment
Preview – pali-wallet — 86d5e5f5 Deployed Nov 8, 2026 by vercel[bot]
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.

2 participants