Files
scrypted/server
merritt925 2c1ccfbca7 fix: restore null-tolerance lost in strictNullChecks migration (#2060)
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>
2026-06-01 15:09:47 -07:00
..
2025-01-23 09:23:13 -08:00
2024-12-28 13:08:22 -08:00
2021-09-09 17:48:39 -07:00
2024-08-24 18:12:00 -07:00
2024-08-24 18:12:00 -07:00
2026-04-02 13:33:12 -07:00
2026-04-02 13:33:12 -07:00