PR #12060 BOLT-1244 — address remaining Cursor Bugbot finding (multiple_battery_devices counts DOW links not distinct batteries)
completedPR #12060 / branch BOLT-1244/domains-program. Slava asked to fix Cursor and CodeRabbit issues. 5 of 6 review threads already RESOLVED in c58f8e7. 1 OPEN Cursor thread remains on resolveDeviceMapping.ts:91-102: multiple_battery_devices is raised when more than one deviceOnWorkspaceId resolves to a battery, not when there is more than one distinct deviceId. Multiple workspace links to the same battery (allowed by DeviceOnWorkspace uniqueness on deviceId, workspaceId, referenceId) or duplicate IDs in deviceOnWorkspaceIds can block mapping with a false multi-battery error. Fix: dedupe batteryMappings by deviceId before the >1 check; pick the first DOW link for the chosen deviceId.
Event Timeline
created
status_change
in_progress → completed