Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

438 B
Raw Blame
const MODEL_PICKER_CONTENT_SELECTOR = "[data-model-picker-content]";

/**
 * Model-picker visibility is already represented by the mounted popover.
 * Shortcut arbitration reads that source directly instead of mirroring it in
 * a second React or external store.
 */
export function isModelPickerOpen(): boolean {
  return (
    typeof document !== "undefined" &&
    document.querySelector(MODEL_PICKER_CONTENT_SELECTOR) !== null
  );
}