You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Devices panel says "Unplugged" under every attached USB device that has no serial-port link, even while it is plugged in #654
web/src/usb.tsx (the row for a device that is attached to the current machine or app) uses the missing /dev/serial/by-id path as the sign that the device is gone:
But path is only set by listHostUsb() (omarchyd/usb.mjs) when udev created a /dev/serial/by-id/usb-* link for the device. Only serial adapters get one. The panel lists every USB device that is not a hub, mass-storage or boot keyboard or mouse (isExcluded), so a webcam or a Bluetooth adapter shows up and can be attached to a machine, but its path is always null. Machines do not need a path: they attach by vendor and product id (hostdevXml).
Result: after attaching such a device to a machine, its row permanently reads "Unplugged" although usb.list just enumerated it from sysfs. It also means the label cannot tell the two states apart: the extra row that list() in createUsb builds for a bound device that sysfs no longer lists is also built with path: null.
How to reproduce
I ran listHostUsb() and createUsb in-process on a fake sysfs holding one device (idVendor 046d, idProduct 0825, product "Webcam C270", bDeviceClass ef) and no /dev/serial/by-id. listHostUsb() returns path: null for it. After usb.attach to a machine, usb.list returns the device with bound set and path: null, so the panel's here && !d.path is true. I did not run the panel in a browser.
Actual: "Unplugged" under a device that is plugged in and enumerated.
Expected: no label while it is present; "Unplugged" only when the server no longer lists it.
Suggested fix
Have usb.list say whether the host currently sees the device (for example present: true/false, false for the rows built from bindings only) and show "Unplugged" from that flag.
Activity
calledtoconstruct commentedon Nov 22, 2026
Working to resolve this.
No open pull request references this issue, and no one has commented that they are working on it.
#163, #653, #472, #797, #204, #205, #206, #207, #806, #798, #264, #258, #238, and #360 share storage, setup, and new machines with this and will land in one pull request.
🤖 Generated with Grok 4.7
calledtoconstruct commentedon Nov 22, 2026
Thanks @nixfred. A plugged-in device with no by-id path is not labeled Unplugged. This ships in #876.
🤖 Generated with Grok 4.7