Skip to content

fix(harmonyos): hide copy action while assistant is streaming - #3641

Merged
wgqqqqq merged 1 commit into
openBitFun:mainfrom
wgqqqqq:wgq/mobile-copy-visibility
Oct 31, 2026
Merged

wgqqqqq merged 1 commit into
openBitFun:mainfrom
wgqqqqq:wgq/mobile-copy-visibility

Conversation

@wgqqqqq

@wgqqqqq wgqqqqq commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Problem

On HarmonyOS, an assistant reply can already contain partial text while the turn is still streaming or finalizing. The copy action appeared during that window, so users could copy an incomplete answer.

Fix

Only show the assistant copy action when the message is settled (done, completed, success, sent, or an empty legacy status), has non-empty content, and is not streaming or finalizing. User messages and in-progress states remain excluded.

Validation

  • NODE_PATH=/Users/user/workspace/BitFun/node_modules node --test tools/tests/assistant-message-copy-visibility.test.cjs tools/tests/assistant-message-copy-menu.test.cjs tools/tests/streaming-markdown.test.cjs
  • pnpm run harmony:architecture
  • git diff --check
  • HarmonyOS HAP compile/package completed; signing was blocked by the local keystore password configuration (Init keystore failed, error 11014003).

@wgqqqqq
wgqqqqq merged commit 16c7c18 into openBitFun:main Oct 31, 2026
9 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