9 Commits
Author SHA1 Message Date
zarzet 9b17fd2c61 feat(link): offer only what the Link host announces
Hosts announce their platform and optional features (downloads, opening
links, file changes). The phone remembers them and hides the actions a
host lacks, and shows a phone icon for a phone host. Older hosts that
announce nothing keep every action.
2026-11-17 03:09:29 +07:00
zarzet b889dabbb4 feat(link): add computer library visibility toggle 2026-11-06 21:27:48 +07:00
zarzet ac42470758 fix(link): refresh phone catalogs after desktop file deletion 2026-11-04 01:28:52 +07:00
zarzet a5e8077419 fix(link): keep Android phones available in the background 2026-10-31 23:56:12 +07:00
zarzet 0624bc72b2 fix(link): refresh paired device addresses after network changes 2026-10-31 23:28:38 +07:00
zarzet a940b07911 fix(link): recover discovery after network changes
Refresh discovery when interfaces change or the app returns to the foreground. Retry failed and unexpectedly stopped browsers with bounded backoff, and report Bonjour policy denial as a local network permission failure.

Validation: 82 related tests pass; targeted analyzer and formatting checks pass. Two Devices handoff tests also fail on the unchanged baseline.
2026-10-28 23:55:15 +07:00
zarzet d41731fb69 fix(link): keep the notification on the desktop's song in the background
The phone closed its session with the desktop in the background, so
Next and Previous from the notification reached the desktop but the
song it moved to never came back, and the notification kept the old
one (Pause looked right only because it is shown before the desktop
answers). The session now stays connected in the background while the
desktop plays in the phone's place.
2026-10-25 14:13:37 +07:00
zarzet 931386dfe6 fix(link): keep playback usable while the desktop is out of reach
A failed connection attempt now moves playback back to the phone, so
songs picked meanwhile no longer wait for a desktop that cannot answer.

A new song abandons a source still preparing on the phone's player
instead of queueing behind the plugin's 30 second prepare timeout, so a
local song plays at once after a network song that hangs.

While the session cannot reach the desktop its Library songs check the
server with a short connect before playing and fail within seconds
instead of waiting the 20 second network timeout.
2026-10-25 13:02:11 +07:00
zarzet 32fc942a04 feat(link): add the phone client for desktop discovery and pairing
Phones find Mornye on a computer over mDNS (bonsoir, _mornye._tcp),
pair with its 6-digit PIN and keep a live session with the chosen
desktop.

- Pinned HTTPS: first contact records the presented certificate and
  checks it against info and the mDNS fingerprint; later requests and
  the WebSocket accept only that SHA-256.
- Pairing posts the PIN proof, maps bad_proof, pairing_closed and 429
  to clear errors, saves a Subsonic API-key network connection, adds it
  to Library and scans it. Re-pairing replaces the key in place.
- LinkClientSession: Bearer JSON get/post with timeouts and
  LinkException mapping, WebSocket hello/welcome, backoff from 1 s
  doubling to 30 s, pause in the background, reconnect when discovery
  sees the desktop again, address updates when it moves.
- LinkClientController publishes the active session through
  linkActiveClientProvider and rescans on catalog.changed.
- Settings entry "Mornye on your computer" on Android and iOS with
  nearby and paired computers, PIN and manual address dialogs, forget,
  and local network permission, Wi-Fi and certificate warnings.
- iOS NSBonjourServices and the Android multicast permission.
2026-10-25 02:37:07 +07:00