omarchy-send/internal/discovery
28allday ff67bd6a71 Probe known and Tailscale peers in headless send
runHeadlessSend only ran multicast discovery, so `--to <alias> --message`
could not reach a peer that is only routable over the tailnet (or another
subnet), even though the TUI and quick-send paths could via watchRemotes.
Start the same watcher in the headless path: known peers from config plus
online Tailscale peers are unicast-probed, the probe handshake records the
peer, and FindPeer picks it up like any multicast discovery.

Verified live against a tailnet-only peer (different subnet, DERP-relayed):
discovered and message delivered. TestFindPeerViaProbe covers the
composition Probe -> NotePeer -> PeerFound -> FindPeer.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 12:18:04 +01:00
..
discovery.go Add remote-peer support over Tailscale and unicast probing 2026-06-02 21:47:52 +01:00
discovery_test.go Initial commit: Omarchy-Send v0.1.0 2026-05-27 19:26:08 +01:00
find_test.go Headless one-shot message send + desktop notifications on incoming 2026-05-29 14:13:43 +01:00
probe_test.go Probe known and Tailscale peers in headless send 2026-06-06 12:18:04 +01:00