Skip to content

feat: backport wallet-sdk heartbeat (#22948) to v4-next#22956

Merged
Thunkar merged 3 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-22948-v4-next
May 5, 2026
Merged

feat: backport wallet-sdk heartbeat (#22948) to v4-next#22956
Thunkar merged 3 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-22948-v4-next

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

@AztecBot AztecBot commented May 5, 2026

Backport of #22948 to v4-next.

Original PR

Implements a liveness check on wallets, avoiding promises hanging forever. Due to proving taking a long time, the global backwards compatible timer is set to 5min (since every request can refresh the timer), but once we deprecate v4 we can tighten it.

Closes:

Conflict resolution

The cherry-pick produced a single modify/delete conflict on docs/examples/webapp-tutorial/test-extension/src/background.ts — that tutorial example file exists only on next, not on v4-next. All 8 wallet-sdk source files applied cleanly. The conflict was resolved by dropping the docs/example file (it's not part of v4-next); the wallet-sdk content is identical to the original PR.

Three-commit history preserved per backport guidelines:

  1. feat: wallet-sdk heartbeat (#22948) — original cherry-pick, with the tutorial file added (as left in tree by git)
  2. fix: resolve cherry-pick conflicts in webapp-tutorial background.ts — remove the tutorial file
  3. (no build-fix commit needed — all foundation/aztec.js imports resolve cleanly on v4-next)

Detailed analysis: https://gist.github.com/AztecBot/78418f5937bd4b60a797ea26f477479d

ClaudeBox log: https://claudebox.work/s/da6b542d03dd5623?run=1

Thunkar and others added 2 commits May 5, 2026 15:14
Implements a liveness check on wallets, avoiding promises hanging
forever. Due to proving taking a long time, the global backwards
compatible timer is set to 5min (since every request can refresh the
timer), but once we deprecate `v4` we can tighten it. This will be hell
to test on real browsers with things like tabs sleeping, but that is out
of scope for this initial version.

Closes
https://linear.app/aztec-labs/issue/F-510/audit-143-silent-error-swallowing-in-wallet-extension-decryption
Closes
https://linear.app/aztec-labs/issue/F-511/audit-142-extensionwalletpostmessage-has-no-timeout-requests-hang
@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels May 5, 2026
@Thunkar Thunkar marked this pull request as ready for review May 5, 2026 15:55
@Thunkar Thunkar requested a review from nventuro as a code owner May 5, 2026 15:55
@Thunkar Thunkar enabled auto-merge May 5, 2026 15:56
@Thunkar Thunkar merged commit 40ba340 into backport-to-v4-next-staging May 5, 2026
12 of 17 checks passed
@Thunkar Thunkar deleted the claudebox/backport-22948-v4-next branch May 5, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants