Skip to content

Port rest of component wrappers#1697

Closed
NickeZ wants to merge 10 commits intoBitBoxSwiss:masterfrom
NickeZ:maint/async-engine-u2f
Closed

Port rest of component wrappers#1697
NickeZ wants to merge 10 commits intoBitBoxSwiss:masterfrom
NickeZ:maint/async-engine-u2f

Conversation

@NickeZ
Copy link
Copy Markdown
Collaborator

@NickeZ NickeZ commented Nov 26, 2025

Port component wrappers to use Futures instead of callbacks

@NickeZ NickeZ force-pushed the maint/async-engine-u2f branch 3 times, most recently from 9bfb62a to 566c1db Compare November 26, 2025 10:54
@NickeZ NickeZ force-pushed the maint/async-engine-u2f branch 6 times, most recently from 4c13e74 to f37f299 Compare November 26, 2025 12:57
@NickeZ NickeZ force-pushed the maint/async-engine-u2f branch from f37f299 to 13a2e7a Compare November 26, 2025 13:26
Comment thread src/rust/bitbox02-rust/src/bb02_async.rs
Comment thread src/rust/bitbox02/src/ui/ui.rs
Comment thread src/rust/bitbox02/src/ui/ui.rs
result_cell: &ResultCell<R>,
) -> Result<R, Error> {
component.screen_stack_push();
pub async fn with_cancel<F, T, E, GEN>(title: &str, future_generator: GEN) -> Result<T, Error>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This rewrite is incorrect. Before, the cancel confirm prompt is added as a component on top of the still-running wrapped component (e.g. showing recovery words), so when rejecting the cancel prompt, you return where you were, e.g. at word number 22 of the recovery words.

With this rewrite, the underlying UI future is dropped and restarted, so customer starts back at the beginning.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fixed in #1788

@benma
Copy link
Copy Markdown
Collaborator

benma commented Feb 17, 2026

I believe all of this has now been split into individual PRs and merged, so I'm closing this.

@benma benma closed this Feb 17, 2026
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