Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

556 B
Raw Blame
import { atom } from 'jotai';
import { atomFamily } from 'jotai/utils';
import type { Family } from '../steer/family';

/**
 * True while the backend reported the stateful code sandbox is cold-booting
 * for this tool call (`on_sandbox_starting` SSE event). Keyed by
 * `tool_call_id`; `ExecuteCode`/`BashCall` swap their in-progress label to a
 * "starting sandbox" message while set. Cleared when the tool call's run
 * step completes.
 */
export const sandboxStartingByToolCallId: Family<boolean> = atomFamily((_toolCallId: string) =>
  atom(false),
);