diff --git a/src/backend/engine.c b/src/backend/engine.c index 033e14f..1867356 100644 --- a/src/backend/engine.c +++ b/src/backend/engine.c @@ -2886,11 +2886,13 @@ sp_engine_open(struct sp_engine **out, const struct sp_engine_opts *o, local.kind = ch.d->kind; local.key_env = ch.d->key_env; sp_usage_set_active(ch.d->id); - } else if (strchr(saved, '/') == NULL) { - /* a model of the endpoint the run was configured with */ - snprintf(saved_model, sizeof(saved_model), "%s", saved); - local.model = saved_model; } else { + /* + * A selector that no longer resolves (a legacy bare + * "main", a model the config dropped) must not be + * pasted onto the running endpoint as a model name. + * Fall back to the config default instead. + */ sp_logf("session", "saved model '%s' is gone; " "using the default", saved); saved[0] = '\0';