From 6150b4c162d8da28884b578448454238b98ebb7b Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 27 Apr 2026 16:35:02 +0200 Subject: [PATCH] Allow explicit control over actor ID uniqueness in project scheduling state resolution --- src/runtime-three/runtime-project-scheduler.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/runtime-three/runtime-project-scheduler.ts b/src/runtime-three/runtime-project-scheduler.ts index 68e9c1e3..2d368e8e 100644 --- a/src/runtime-three/runtime-project-scheduler.ts +++ b/src/runtime-three/runtime-project-scheduler.ts @@ -484,11 +484,14 @@ export function resolveRuntimeProjectScheduleState(options: { scheduler: ProjectScheduler; sequences: ProjectSequenceLibrary; actorIds: string[]; + actorIdsAreUnique?: boolean; dayNumber: number; timeOfDayHours: number; pathsById?: ReadonlyMap; }): RuntimeResolvedProjectScheduleState { - const actorIds = [...new Set(options.actorIds)]; + const actorIds = options.actorIdsAreUnique + ? options.actorIds + : [...new Set(options.actorIds)]; return { actors: actorIds.map((actorId) =>