Skip to content

fix(ohos): use tauri::async_runtime::spawn in scheduler to fix stuck … - #164

Merged
SWangHash merged 1 commit into
mainfrom
wc/bugfix3
Jul 30, 2026
Merged

fix(ohos): use tauri::async_runtime::spawn in scheduler to fix stuck …#164
SWangHash merged 1 commit into
mainfrom
wc/bugfix3

Conversation

@SWangHash

Copy link
Copy Markdown
Owner

…second-round turn

The desktop entry pub fn run() creates a local tokio runtime that gets dropped after _run() returns on OHOS, which cancels all okio::spawn tasks including
un_outcome_handler. Once the outcome receiver is dropped, the channel becomes closed so the coordinator cannot notify the scheduler of turn completion. The scheduler then keeps a stale �ctive_turns entry, forcing subsequent submits into the queue forever.

Switching scheduler spawns to auri::async_runtime::spawn keeps them on Tauri's long-lived runtime.

Summary

Fixes #

Type and Areas

Type:

Areas:

Motivation / Impact

Verification

Reviewer Notes

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

…second-round turn

The desktop entry pub fn run() creates a local tokio runtime that gets dropped after _run() returns on OHOS, which cancels all 	okio::spawn tasks including 
un_outcome_handler. Once the outcome receiver is dropped, the channel becomes closed so the coordinator cannot notify the scheduler of turn completion. The scheduler then keeps a stale �ctive_turns entry, forcing subsequent submits into the queue forever.

Switching scheduler spawns to 	auri::async_runtime::spawn keeps them on Tauri's long-lived runtime.
@SWangHash
SWangHash merged commit c30ef1b into main Jul 30, 2026
0 of 2 checks passed
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.

1 participant