Skip to content

Conversation

@Larkooo
Copy link
Contributor

@Larkooo Larkooo commented Dec 23, 2025

Note

Introduces a spending-limit step into the RegisterSession flow and hardens transaction handling.

  • New SpendingLimitPage gated by hasApprovalPolicies; verified sessions start at "spending-limit", otherwise "summary"
  • Step management with defaultStep, step state, and handleSpendingLimitConfirm to proceed
  • Adds isConnecting and error state; wraps registerSession in try/catch/finally and surfaces errors to SpendingLimitPage
  • Keeps existing transaction preparation via registerSessionCalldata; unchanged wait logic but bounded by success states
  • Imports hasApprovalPolicies to detect token approval policies and route the flow accordingly

Written by Cursor Bugbot for commit 18c191b. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Dec 23, 2025

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

Project Deployment Review Updated (UTC)
controller-example-next Ready Ready Preview Dec 23, 2025 7:15pm
keychain Ready Ready Preview Dec 23, 2025 7:15pm
keychain-storybook Ready Ready Preview Dec 23, 2025 7:15pm

setError(e as Error);
} finally {
setIsConnecting(false);
}
Copy link

Choose a reason for hiding this comment

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

Registration error swallowing prevents display in ExecutionContainer

The onRegisterSession function catches errors but does not re-throw them, causing the ExecutionContainer to assume the operation succeeded. Consequently, errors occurring during registration are swallowed and not displayed to the user on the summary page, as the local error state is only consumed by the non-rendered SpendingLimitPage.

Additional Locations (1)

Fix in Cursor Fix in Web

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