Skip to content

fix(harmony): resume local GenUI generation after background - #8

Merged
wgqqqqq merged 4 commits into
mainfrom
wgq/harmony-genui-model-setup
Nov 23, 2026
Merged

wgqqqqq merged 4 commits into
mainfrom
wgq/harmony-genui-model-setup

Conversation

@wgqqqqq

@wgqqqqq wgqqqqq commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Keep Local GenUI provider streams alive while the Harmony ability is backgrounded.
  • Release the temporary background lease when the app returns to the foreground.
  • Cancel the turn with a logged failure if the platform lease expires, avoiding a stuck generation state.

Verification

  • pnpm run harmony:architecture
  • node --test src/apps/mobile/harmonyos/tools/tests/local-genui-owner.test.cjs src/apps/mobile/harmonyos/tools/tests/session-navigation.test.cjs
  • HarmonyOS ArkTS compile and signed HAP build
  • Installed and launched the signed HAP on device 5ZU0226202001116

The working tree contains pre-existing uncommitted iOS edits. They are not part of this PR.

@wgqqqqq
wgqqqqq merged commit 2cf3a4a into main Nov 23, 2026
3 checks passed
@wgqqqqq
wgqqqqq deleted the wgq/harmony-genui-model-setup branch November 23, 2026 13:16
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