Ledger UI Enhancement: Auto-open apps, improved error messages, and transaction display fixes#3541
Closed
Copilot wants to merge 1 commit intoledgerUiFixfrom
Closed
Ledger UI Enhancement: Auto-open apps, improved error messages, and transaction display fixes#3541Copilot wants to merge 1 commit intoledgerUiFixfrom
Copilot wants to merge 1 commit intoledgerUiFixfrom
Conversation
Copilot
AI
changed the title
[WIP] Improve Ledger UI with user-friendly messages and auto app connection
Ledger UI Enhancement: Auto-open apps, improved error messages, and transaction display fixes
Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Ticket: CP-13165 CP-13167 CP-13173
Enhances Ledger integration with automatic app switching, consolidated error handling, and activity screen fixes for ERC20 transactions.
Key Changes:
Auto-open Ledger apps: Sends APDU commands to automatically open Avalanche/Solana apps during connection setup and transaction approval. Best-effort approach—fails gracefully if device is locked or app is already open.
Consolidated error handling: Centralized error message mapping in
handleLedgerErrorutility. Maps Ledger error codes (0x6a80, 0x6985, 0x6511, etc.) to user-friendly messages. Added support for transport race conditions ("Ledger is processing another request") and disconnected device errors.Single approval invocation: Uses React
useRefto prevent duplicate transaction approval attempts when Ledger reconnects during approval flow.ERC20 transaction display: Fixed activity screen to correctly show ERC20 sent transactions.
Technical Implementation:
Added comprehensive unit tests covering APDU construction, status code parsing, and error scenarios.
Screenshots/Videos
Auto connect app in ledger
https://github.com/user-attachments/assets/bf2d086e-4aac-4bfb-839f-291dec7da506
CP-13165: ERC20 transaction display

CP-13167: Transport race condition error

CP-13173: Disconnected device error

Testing
Dev Testing (if applicable)
QA Testing (if applicable)
Checklist
Please check all that apply (if applicable)
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.