Skip to content

Fix/thp sync after send #20951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 21, 2025
Merged

Fix/thp sync after send #20951

merged 3 commits into from
Aug 21, 2025

Conversation

szymonlesisz
Copy link
Contributor

@szymonlesisz szymonlesisz commented Aug 21, 2025

Description

  1. ThpState was unsynchronized after Cancelling ButtonRequest, its because of missing line (probably during rebases) thpState?.sync('send', name); in AbstractApiTransport for the reference the same line is present in BridgeTransport. while doint the tests i also noticed that abortThpWorkflow didnt reject/abort pending device.currentRun promise and hungs forever.

  2. remove error from decodeSendAck - function which reads ThpAck after send, related to Ignore re-transmitted THP payloads on host trezor-firmware#5578 (comment) (FW will also ignore unexpected messages)

  3. complex tests of ThpState lifecycle when Cancel is called

🔍🖥️ Suite desktop test results: View in Currents

🔍🖥️ Suite web test results: View in Currents

🔍🖥️ Suite native android test results: View in Currents

@szymonlesisz szymonlesisz added the no-project This label is used to specify that PR doesn't need to be added to a project label Aug 21, 2025
@mroz22 mroz22 merged commit 3584e24 into develop Aug 21, 2025
98 of 104 checks passed
@mroz22 mroz22 deleted the fix/thp-sync-after-send branch August 21, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-project This label is used to specify that PR doesn't need to be added to a project
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants