Tests reproduce the exact error: "TypeError: Cannot read properties of undefined (reading 'name')"
occurring in DeviceInfo component when props.device is undefined.
Root cause scenarios tested:
- DeviceInfo component receives undefined device prop
- SystemStatsPanel passes undefined device when devices array is empty
- API response malformation leading to missing device data
- Edge cases with corrupted or missing SystemStats data
Sentry URL: https://comfy-org.sentry.io/issues/6804418395/?project=4509681221369857
Tests currently fail as expected, proving the bug exists.
Next: implement defensive programming to handle undefined device props.