/**
 * Resolves the profile a new chat starts with: the backend marks exactly one
 * profile per response via the "Default Agent Profile" setting (isDefault),
 * with the first profile as a safety fallback for older backends.
 */
export function resolveDefaultProfile(profiles) {
    return profiles.find((profile) => profile.isDefault) ?? profiles[0];
}
//# sourceMappingURL=agentProfileDefaults.js.map