Closing a product leaves its SSO request live on the paired host
Maintainers usually reply within 1 day
@decrypto21 is already working on this.
Since Sep 25, 2026.
Assessment
This issue has not been assessed yet.
Description
Closing a product leaves its SSO request live on the paired host
Follow-up to #263.
Problem
ProductRuntime::dispose() (truapi-server/src/host_core.rs:1551) aborts in-flight calls instead of cancelling them. The token never fires, so withdraw_request (pairing_host/sso_channel.rs:314) never runs and no SSO Cancel is sent. The phone keeps the prompt, and approving it still allocates or signs.
Reproduction
- A pairing host stays up; a product connected to it calls
resourceAllocation.request. The phone shows the sheet. - Kill the product process.
- The phone receives nothing; the sheet stays up.
An explicit abort() on the same setup closes the sheet within about 1 s.
Fix
- The dispatcher fires every in-flight token with
CancellationReason::Cancelled. dispose()calls that first, then aborts afterAUTHORITY_CANCEL_UNWIND_GRACE.- Test: dispose mid-SSO-call and assert a
Cancelstatement is submitted.
Related: #926, #933.
- Dominant language
- Swift
- Stars
- 10
- Forks
- 3
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 201
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from paritytech/host-rust-core
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
paritytech/host-rust-core#868 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
paritytech/host-rust-core#1049 ·
Maintainers usually reply within 1 day
-
Balance historyOpenR3+
Difficulty 5/5 Over a week Newbie friendliness 25/100
paritytech/host-rust-core#1044 ·
Maintainers usually reply within 1 day
-
Show vouchers in Connectivity indicatorPossibly taken @SabitKadyr claimed this 1 day ago. OpenR3+
paritytech/host-rust-core#1043 · 1 assignee ·
Maintainers usually reply within 1 day
-
R3+
Difficulty 5/5 Over a week Newbie friendliness 20/100
paritytech/host-rust-core#1042 ·
Maintainers usually reply within 1 day
All issues in paritytech/host-rust-core
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
openwatersio/slackwater-ios#535 ·
Maintainers usually reply within 1 day
-
area:dictation bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
uttrflow/uttrflow-swift#2721 · 2 comments ·
Maintainers usually reply within 1 day
-
[@capacitor/app] iOS: 'Expression implicitly coerced from String? to Any' warning in getAppLanguageOpentriage
Difficulty 1/5 Under an hour Newbie friendliness 88/100
ionic-team/capacitor-plugins#2604 ·
-
auth type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
googleapis/google-cloud-swift#1260 ·
Maintainers usually reply within 1 day