Devices: fixes from review round 7

- Removing every headset leaves none in use (commands fail at once) instead of
  falling back to the `frame` alias.
- ssh goes to the IP that answered for IPv6 too, with a link-local address's
  interface (verified: frame.local over fe80::…%en9 on the real Frame).
- Find results only show in the panel of the headset they were for.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
saphidandClaude Opus 5.5 committed 2026-09-28 22:35:43 +10:00
1 parent ba33d2ff40
commit 51ef5d8283
5 files changed
+62 -17

No files matched your search

+1 -1
View File
@@ -2812,7 +2812,7 @@ async function findOn(where, d, btn) {
dv.found = { where, dev: d.id, data: await api(`/api/devices/${where}?id=${encodeURIComponent(d.id)}`) };
} catch (e) { dv.found = { where, dev: d.id, error: e.message }; }
finally { btn.disabled = false; }
renderFound(d);
if (dv.sel === d.id) renderFound(d); // another headset may be showing by now
}
function renderFound(d) {
const f = dv.found, el = $("dvFound");