Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
-- Migration 137: Auto-restart-adopted toggle for embedded services
--
-- When a supervisor's probeBeforeSpawn finds a healthy instance already
-- listening on its port, it adopts that process instead of spawning a new
-- one. An adopted process has no piped stdout/stderr (nothing was spawned to
-- pipe from), so the Logs panel stays empty for its entire lifetime unless
-- it's replaced with a real spawn.
--
-- `auto_restart_adopted` lets an operator opt in, per tool, to having the
-- supervisor kill an adopted process immediately and spawn a fresh one it
-- actually owns — trading one restart for working log capture going
-- forward. Defaults to 0 (off): adoption-without-restart is already the
-- safe, non-disruptive default behavior, and killing a process the operator
-- didn't ask to be killed should be opt-in, not automatic.
ALTER TABLE version_manager
ADD COLUMN auto_restart_adopted INTEGER NOT NULL DEFAULT 0;