Skip to content

Fix clipboard sync toggle and Wayland viewer clipboard; release 9.4.2 - #179

Merged
manhpham90vn merged 5 commits into
mainfrom
fix/clipboard-sync-live-and-wayland
Dec 6, 2026
Merged

manhpham90vn merged 5 commits into
mainfrom
fix/clipboard-sync-live-and-wayland

Conversation

@manhpham90vn

Copy link
Copy Markdown
Collaborator

Fixes #168.

Clipboard

  • Live toggle on hosts. HostEngine read clipboardSync only when sharing started, so ticking Sync clipboard text on a host that was already sharing had no effect until sharing restarted; reconnecting a viewer did not help. HostEngine::SetClipboardSync now applies it to running sessions (on the net thread, each tick), and the Windows, Linux and macOS hosts call it when settings are saved (macOS through the new dh_share_set_clipboard_sync).
  • Wayland viewer. Wayland compositors let a client set the selection only while it has keyboard focus. The Linux viewer polled every second and dropped host text that arrived after the user switched away. The new core ClipboardInbox holds that text and the viewer writes it on focus-in; on Wayland the viewer reads the local clipboard only while focused. X11 behaviour is unchanged.
  • docs/SPECIFICATION T-18 updated in all three languages.

Android release

deploy.yml / fastlane android release now submit the build straight to the production track (release_status: completed), with changelogs/default.txt as the "What's new" text. A manual run can choose alpha or internal. The old internal-then-promote path is gone. docs/BUILD updated in all three languages.

Release 9.4.2

VERSION, packaging/release-notes/v9.4.2.md, the Play changelog and the iOS review source link.

Testing

  • make test, make test-all (core + platform + integration): pass
  • make lint (format + dead code), make lint-tidy: pass
  • make build-macos: succeeded
  • actionlint on deploy.yml, ruby -c on the Fastfile: OK
  • Not run locally: the Linux GTK and Windows builds (CI covers them), and a manual check of clipboard sync between a Windows host and a Wayland Linux viewer.

🤖 Generated with Claude Code

manhpham90vn and others added 3 commits December 6, 2026 15:53
…land writes until focus

The host read clipboard sync only when sharing started, so ticking it while a
share was running did nothing until sharing restarted. HostEngine now takes the
toggle live and the Windows, Linux and macOS hosts apply it on save.

A Linux viewer on Wayland may write the clipboard only while it has keyboard
focus; text from the host that arrived after the user switched away was dropped.
ClipboardInbox keeps it and the viewer writes it on focus-in.

Fixes #168

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tagged releases now upload straight to production for review instead of the
internal track. A manual deploy run can still pick alpha or internal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Perf and lag report - pull request vs base commit, same runner, 50% tolerance

  • core_perf: 37 rows · biggest slowdown terminal/scrollback-scaling +13.4% · biggest speedup stream/terminal-records-64k -26.7% · 0 beyond budget
  • platform_perf: 6 rows · biggest slowdown quic/datagram-delivery +1.4% · biggest speedup quic/poll-idle -0.4% · 0 beyond budget
  • coverage: core lines 96.53% (min 90.00%) branches 87.56% (min 80.00%)
core_perf drift
=== core performance suite (offline: no network, no GPU) ===
release build only - debug and sanitizer numbers say nothing about production speed
baseline: /home/runner/work/_temp/base-core.txt (37 measurements, tolerance 50%)

workload                               cost per unit           throughput     allocations            vs baseline

--- video ---
video/packetize                               1694 ns/frame      70848.1 MB/s    0.00 alloc/frame       +1.6%
video/packetize-with-fec                      4258 ns/frame      28181.9 MB/s    0.00 alloc/frame       +4.5%
video/reassemble-in-order                     93.6 ns/packet     12450.6 MB/s    1.03 alloc/packet      -0.4%
video/reassemble-out-of-order                 97.1 ns/packet     12000.9 MB/s    1.03 alloc/packet      -0.1%
video/reassemble-fec-recovery                332.9 ns/packet      3500.1 MB/s    1.29 alloc/packet      -0.0%
video/plan-nack                               3927 ns/plan                      54.00 alloc/plan        +0.4%
video/downscale-1080p-to-720p              5828326 ns/frame       1423.1 MB/s    0.00 alloc/frame       -0.0%
video/frame-mailbox-handoff                   12.3 ns/frame                      0.00 alloc/frame       +0.6%
video/packetize-scaling                       19.6 ns/KB         4.0x work ->  4.06x time    +2.6%
video/reassemble-scaling                      9834 ns/frame      4.0x work ->  4.00x time    +1.6%

--- transfer ---
transfer/crc32-streamed                     136097 ns/chunk        481.5 MB/s    0.00 alloc/chunk       -0.1%
transfer/send-and-receive                    69352 ns/chunk        235.3 MB/s    0.02 alloc/chunk       -0.3%
transfer/send-and-receive-scaling            69444 ns/chunk      4.0x work ->  3.98x time    +0.1%

--- terminal ---
terminal/vt-parse-plain                      13225 ns/KB            77.4 MB/s    0.00 alloc/KB          +4.2%
terminal/vt-parse-coloured                   11159 ns/KB            91.8 MB/s    0.00 alloc/KB          +1.8%
terminal/screen-write-80x24                  25985 ns/KB            39.4 MB/s    1.22 alloc/KB         +10.1%
terminal/screen-write-200x50                 21861 ns/KB            46.8 MB/s    0.69 alloc/KB          +7.3%
terminal/snapshot-200x50                     14528 ns/snapshot                   1.00 alloc/snapshot    +0.0%
terminal/render-200x50                       51402 ns/render                    10.00 alloc/render      +0.5%
terminal/screen-write-scaling                25580 ns/KB         4.0x work ->  4.79x time    +7.3%
terminal/scrollback-scaling                  27935 ns/KB         4.0x work ->  4.82x time   +13.4%

--- wire, audio and control ---
wire/build-video-packet                       15.2 ns/packet     78582.0 MB/s    0.00 alloc/packet      -6.5%
wire/parse-video-packet                      7.751 ns/packet    154562.9 MB/s    0.00 alloc/packet      -0.2%
wire/build-parse-input-events                 12.2 ns/event       1598.3 MB/s    0.00 alloc/event       -0.2%
audio/jitter-buffer-push-pop                  31.3 ns/frame       2557.4 MB/s    2.00 alloc/frame       -2.3%
transport/retransmit-cache                    51.5 ns/packet     23271.4 MB/s    0.03 alloc/packet      +2.2%
control/video-pacer                          3.541 ns/frame                      0.00 alloc/frame       +0.4%
audio/jitter-buffer-scaling                   29.7 ns/frame      4.0x work ->  4.01x time    +0.3%

--- audio playback ring ---
audio/pcm-ring-put-take                      17767 ns/frame        216.1 MB/s    0.00 alloc/frame       -0.1%
audio/pcm-ring-overflow-drop                  8863 ns/frame        433.3 MB/s    0.00 alloc/frame       -0.2%
audio/pcm-ring-scaling                       17768 ns/frame      4.0x work ->  4.00x time    -0.2%

--- input path (queue -> wire -> apply) ---
input/mouse-move-round-trip                   33.8 ns/event                      0.08 alloc/event       -0.3%
input/key-tap-round-trip                     365.9 ns/tap                        0.00 alloc/tap         -0.7%
input/mouse-move-scaling                      33.0 ns/event      4.0x work ->  3.91x time    +0.3%

--- record stream (terminal + transfer framing) ---
stream/terminal-records-64k                   16.5 ns/record     31129.4 MB/s    0.00 alloc/record     -26.7%
stream/bulk-records-64k                      452.3 ns/record     36229.6 MB/s    0.00 alloc/record      +1.3%
stream/record-drain-scaling                   42.1 ns/KB         4.0x work ->  4.03x time   -20.2%

=== PASS: 37 measurements within budget ===
platform_perf drift
=== platform performance suite (loopback sockets, real QUIC) ===
release build only - debug and sanitizer numbers say nothing about production speed
baseline: /home/runner/work/_temp/base-platform.txt (6 measurements, tolerance 50%)

workload                               cost per unit           throughput     allocations            vs baseline

--- quic over loopback ---
quic/handshake                            20659390 ns/handshake                  82.00 alloc/handshake    +0.4%
quic/terminal-record-delivery                 9046 ns/record        56.6 MB/s    9.00 alloc/record      +0.9%
quic/stream-throughput-64k                    3088 ns/KB           331.6 MB/s    1.17 alloc/KB          +0.7%
quic/datagram-delivery                        3904 ns/datagram     307.4 MB/s    1.44 alloc/datagram    +1.4%
quic/poll-idle                             1059910 ns/poll                       3.00 alloc/poll        -0.4%
quic/stream-drain-scaling                     6286 ns/KB         4.0x work ->  1.56x time    +1.1%

=== PASS: 6 measurements within budget ===
lag under cross-load (this pull request only)
[load] a 32 MB upload rides alongside the video without stalling it...
        idle 27.9 fps (worst gap 20 ms) -> busy 28.2 fps (worst gap 20 ms), 32 MB in 1525 ms, deepest file lane 0
[load] keystrokes still reach the host with an upload in flight...
        five events injected 2 ms after they were queued
[load] audio keeps arriving with an upload in flight...
[load] skipped: this machine opened no audio output device
[lag] a terminal flood rides alongside the video without stalling it...
        flood moved 1428835 terminal bytes/redraws, video 27.9 -> 28.4 fps, worst video gap 20 ms, worst terminal gap 0 ms
[lag] a keystroke's echo crosses a bulk-flooded link promptly...
        the shell answered 4 ms after the keystrokes

manhpham90vn and others added 2 commits December 6, 2026 16:07
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@manhpham90vn
manhpham90vn merged commit 102418a into main Dec 6, 2026
43 checks passed
@manhpham90vn
manhpham90vn deleted the fix/clipboard-sync-live-and-wayland branch December 6, 2026 09:38
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.

[BUG?] Copying doesnt copy to client clipboard :s

1 participant