Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

424 B
Raw Blame
import type { Bot } from '../../../shared/models.ts'

/** Matches --working-duration in thread.css. */
export const workingExitMs = 420

/** Preserve the last live bot through exit, until its animation has finished. */
export function workingTransition(current: Bot, previous: Bot, visible: boolean, mounted: boolean) {
  const active = visible ? current : previous
  return { active, indicator: mounted ? active : null }
}