Skip to content

App Improvement#61

Merged
chcmedeiros merged 4 commits intomasterfrom
improvement
Apr 17, 2026
Merged

App Improvement#61
chcmedeiros merged 4 commits intomasterfrom
improvement

Conversation

@chcmedeiros
Copy link
Copy Markdown
Collaborator

  • Improve APDU checks

Introduce a `review_pending` flag to block new commands while the device is waiting for user approval. This prevents the host from mutating state or buffers during an asynchronous review window, addressing potential race conditions on transports like BLE.
Update Jest configuration to handle ESM-only dependencies like `get-port` and bump multiple devDependencies (including Zemu, Ledgerhq, and ESLint plugins) to their latest versions.
Update the main menu UI snapshots for various device models (Nano S, Nano S+, Nano X, Stax, Flex) to reflect recent changes.
Comment thread src/main.c
Move the `review_pending` flag logic from individual command handlers into the central APDU dispatcher. This ensures the lock is consistently acquired at the start of processing and automatically released upon any command completion (success or error) or transport reset, reducing the risk of the dispatcher becoming permanently locked.
@chcmedeiros chcmedeiros requested a review from 0xPxt April 17, 2026 13:02
@chcmedeiros chcmedeiros merged commit da79bc1 into master Apr 17, 2026
51 checks passed
@chcmedeiros chcmedeiros deleted the improvement branch April 17, 2026 13:29
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