Skip to content

Refactor WinUI clipboard text copies#339

Merged
shanselman merged 1 commit into
masterfrom
refactor/shared-clipboard-helper
May 13, 2026
Merged

Refactor WinUI clipboard text copies#339
shanselman merged 1 commit into
masterfrom
refactor/shared-clipboard-helper

Conversation

@shanselman
Copy link
Copy Markdown
Contributor

Summary

  • add a shared ClipboardHelper.CopyText for WinUI text clipboard writes
  • replace repeated DataPackage/Clipboard.SetContent snippets across App, pages, windows, dialogs, onboarding, and chat
  • preserve the existing chat timeline Clipboard.Flush() behavior via an optional helper flag

Testing

  • uild.ps1`
  • dotnet test .ests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore
  • dotnet test .ests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore

Add a shared ClipboardHelper for text copy operations and route existing WinUI clipboard writes through it while preserving the chat timeline flush behavior and App.CopyTextToClipboard API.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@shanselman shanselman merged commit 256f08b into master May 13, 2026
20 checks passed
@shanselman shanselman deleted the refactor/shared-clipboard-helper branch May 13, 2026 20:52
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