fix: resolveCodexImportMachineId fails with multiple online machines (#1147)

This commit is contained in:
李余通
2026-08-04 11:00:01 +08:00
committed by GitHub
parent 8e34e7599b
commit a03bad15e3
+1 -1
View File
@@ -931,7 +931,7 @@ function resolveCodexImportMachineId(
const resolved = resolveImportMachineId(cwd, namespace, engine)
if (resolved) return resolved
}
return onlineMachines.length === 1 ? onlineMachines[0].id : null
return onlineMachines.length >= 1 ? onlineMachines[0].id : null
}
function asRemoteCodexSessions(value: unknown, requireMessages: boolean): RemoteCodexSession[] {