import type { CustomModelProfile } from './models' /** Freeze the selected profile's identity before a turn can outlive its settings. */ export function freezeAssistantModelMetadata(model: Pick): { modelId: string; modelName: string } { return { modelId: model.id, modelName: model.name } }