blob: cdf3aed3ee2aba0edb3c02127a9a3ca543d3b474 [file]
import { isDeepResearchSession, type SessionHeader } from '@maka/core/session';
export function runtimeHostSessionUnavailableReason(
header: Pick<SessionHeader, 'collaborationMode' | 'labels'>,
): string | undefined {
if (header.collaborationMode === 'plan') {
return 'Plan sessions are not yet supported by Runtime Host.';
}
if (isDeepResearchSession(header.labels)) {
return 'Deep Research sessions are not yet supported by Runtime Host.';
}
return undefined;
}