Skip to content

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

588 B
Raw Blame
-- #7274: generalize session affinity TTL to all providers, not just Codex.
-- Carries the existing 'codexSessionAffinityTtlMs' setting value over to the
-- new generic 'sessionAffinityTtlMs' key so existing Codex users keep their
-- configured TTL after the rename (backward-compatible, additive, idempotent
-- per this repo's key_value migration conventions — see 014_unified_log_artifacts.sql).
INSERT OR IGNORE INTO key_value (namespace, key, value)
SELECT 'settings', 'sessionAffinityTtlMs', value
FROM key_value
WHERE namespace = 'settings' AND key = 'codexSessionAffinityTtlMs';