I looked into why:
We need to call utilities.writeObject(objectLookup, objectName, objectID)
to store the mapping of objectName->ID immediately when the object gets created. Currently it waits for you to add a target image or restart the server. Otherwise, utilities.readObject(objectName)
returns null so the tool doesn't know which object to attach to (in if (req.body.action === 'new')
of webServer.post(objectInterfaceFolder, ...
)