Records the last-used model for the entry named name (no-op when absent).
name
void updateModel(String name, String modelId) { find(name)?.modelId = modelId; }