Skip to content

Windows: cross-platform clipboard + daemon spawn (#6, #7)#17

Merged
MasonStation merged 2 commits intomainfrom
windows-clipboard-daemon
Apr 22, 2026
Merged

Windows: cross-platform clipboard + daemon spawn (#6, #7)#17
MasonStation merged 2 commits intomainfrom
windows-clipboard-daemon

Conversation

@MasonStation
Copy link
Copy Markdown
Contributor

Third slice of #1 (Windows support) — Tier 2A.

Summary

Deliberate scope

Test plan

  • CI green on `ubuntu-latest` (watching for arboard linker issues — may need `libxcb*-dev`)
  • CI green on `macos-latest`
  • CI green on `windows-latest`

Closes #6
Closes #7

MasonStation and others added 2 commits April 22, 2026 13:41
Replaces three platform-specific shell-outs (pbcopy/xclip/xsel) with
a single arboard::Clipboard call. Adds Windows clipboard support as
a side-effect — previously 'phantom reveal --copy' returned false
on Windows and printed the secret to stdout instead.

Uses default-features = false to skip arboard's image-data support
(we only need text).

Does not change the 30-second auto-clear behavior — that remains
macOS-only via the bash+pbcopy hack and is tracked separately in #9
(cross-platform auto-clear needs a detached-process design rather
than a thread, since threads die with the parent).

Closes #6

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Windows has no process_group() equivalent. Uses CommandExt::creation_flags
with DETACHED_PROCESS (0x08) | CREATE_NO_WINDOW (0x08000000) so the
proxy survives the parent exiting and runs without a console window.

Unix behavior unchanged (still process_group(0)).

PID file mechanics already work cross-platform — Windows allows the
same atomic rename pattern used on Unix. The cfg(unix) block that
sets 0o600 on the PID file remains Unix-only; a Windows ACL
equivalent is a separate follow-up if needed.

Closes #7

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@MasonStation MasonStation merged commit abc6308 into main Apr 22, 2026
4 checks passed
@MasonStation MasonStation deleted the windows-clipboard-daemon branch April 22, 2026 17:46
This was referenced Apr 22, 2026
MasonStation added a commit that referenced this pull request Apr 22, 2026
First release with Windows support.

  - workspace version 0.4.0 -> 0.5.0
  - npm/package.json 0.4.0 -> 0.5.0
  - npm/bin/cli.js VERSION 0.4.0 -> 0.5.0
  - Cargo.lock refreshed (captures arboard tree from #17 and patch bumps)

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
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.

cli: add Windows daemon spawn path for phantom start cli: add Windows clipboard support for phantom reveal --copy

1 participant