mirror of
https://github.com/koush/scrypted.git
synced 2026-06-20 08:30:30 +01:00
Two runtime regressions from the strict-mode migration (range 125db2e..c6be722) where a real runtime guard was replaced by a non-null assertion: - services/cluster-fork.ts: findPluginDevice(...)!._id threw and aborted fork() when the plugin device was not found. Restored ?._id so options.id stays undefined (it is only a worker-affinity hint). - plugin/plugin-host-api.ts: onDevicesChanged() coerced a missing optional 'devices' field to [], turning a fail-safe throw into mass (cascading) removal of all of a provider's devices. Restored fail-fast on missing devices. Both compile under strictNullChecks. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>