Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Train W1 (#6460): keep the plan-model doc comment on codexPlanModelRefused
milind-soni37987887785a
diff --git a/server/drivers/codex-errors.ts b/server/drivers/codex-errors.tsindex 4169ba5644..8432814904 100644--- a/server/drivers/codex-errors.ts+++ b/server/drivers/codex-errors.ts@@ -67,13 +67,13 @@ export function codexLimitFacts(raw: string, route: CodexRoute, codexErrorInfo?:// "The 'gpt-6.1-sol' model is not supported when using Codex with a ChatGPT account."const PLAN_MODEL_REFUSED = /model is not supported when using Codex with a ChatGPT account/i;-/** A ChatGPT plan turn refused because the signed-in account can't use the selected model. */// A ChatGPT plan takes only text, image and file input (2026-11-17 report on OpenMausBot 0.1.169): it refuses a request// that carries audio with this code, and Codex keeps that audio in the saved session it resends every turn.export function codexPlanUnsupportedInput(raw: string, route: CodexRoute): boolean {return route === "plan" && raw.includes("subscription_sharing_unsupported_capability");}+/** A ChatGPT plan turn refused because the signed-in account can't use the selected model. */export function codexPlanModelRefused(value: string, route: CodexRoute): boolean {return route === "plan" && PLAN_MODEL_REFUSED.test(value);}