Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
feat(models): update fallback model lists and centralize Codex reasoning options
cyh3e66d4bdc932
diff --git a/modules/agents/opencode/__init__.py b/modules/agents/opencode/__init__.pyindex 8f7d066b3..0d209040d 100644--- a/modules/agents/opencode/__init__.py+++ b/modules/agents/opencode/__init__.py@@ -10,10 +10,11 @@ Public entrypoints:from .agent import OpenCodeAgentfrom .server import OpenCodeServerManager-from .utils import build_reasoning_effort_options+from .utils import build_codex_reasoning_options, build_reasoning_effort_options__all__ = ["OpenCodeAgent","OpenCodeServerManager",+ "build_codex_reasoning_options","build_reasoning_effort_options",]diff --git a/modules/agents/opencode/utils.py b/modules/agents/opencode/utils.pyindex cfa745c6c..5a0cb79b3 100644--- a/modules/agents/opencode/utils.py+++ b/modules/agents/opencode/utils.py@@ -1,6 +1,7 @@-"""OpenCode helper utilities.+"""Agent helper utilities (reasoning options, model lists, etc.).Keep this module free of agent state. It should only contain pure helpers.+Shared by OpenCode and Codex backends for reasoning-effort option building."""from __future__ import annotations@@ -247,8 +248,7 @@ def build_opencode_model_option_items(model_items = list(models.items())elif isinstance(models, list):model_items = [- (entry, entry) if isinstance(entry, str) else (entry.get("id", ""), entry)- for entry in models+ (entry, entry) if isinstance(entry, str) else (entry.get("id", ""), entry) for entry in models]else:model_items = []@@ -312,3 +312,31 @@ def build_reasoning_effort_options(return optionsoptions.extend(_REASONING_FALLBACK_OPTIONS)return options+++# ---------------------------------------------------------------------------+# Codex reasoning options+# ---------------------------------------------------------------------------+# Codex supports a fixed set of reasoning effort levels. Unlike OpenCode+# (which derives options from live model metadata), these are static.+# Defined here so that every IM module shares a single source of truth.++_CODEX_REASONING_EFFORTS = ["minimal", "low", "medium", "high", "xhigh"]+++def build_codex_reasoning_options() -> List[Dict[str, str]]:+ """Return the canonical Codex reasoning-effort option list.++ The returned format mirrors ``build_reasoning_effort_options`` so that+ IM modules can render both OpenCode and Codex dropdowns with the same+ helper logic.+ """+ options: List[Dict[str, str]] = [{"value": "__default__", "label": "(Default)"}]+ for effort in _CODEX_REASONING_EFFORTS:+ options.append(+ {+ "value": effort,+ "label": _REASONING_VARIANT_LABELS.get(effort, effort.capitalize()),+ }+ )+ return optionsdiff --git a/modules/agents/opencode_agent.py b/modules/agents/opencode_agent.pyindex 824eafb0a..24ce6c07f 100644--- a/modules/agents/opencode_agent.py+++ b/modules/agents/opencode_agent.py@@ -11,11 +11,13 @@ Keep this module to preserve the public import path:from modules.agents.opencode import (OpenCodeAgent,OpenCodeServerManager,+ build_codex_reasoning_options,build_reasoning_effort_options,)__all__ = ["OpenCodeAgent","OpenCodeServerManager",+ "build_codex_reasoning_options","build_reasoning_effort_options",]diff --git a/modules/im/discord.py b/modules/im/discord.pyindex 708b9a9cd..fbdddf617 100644--- a/modules/im/discord.py+++ b/modules/im/discord.py@@ -13,6 +13,7 @@ from .formatters import DiscordFormatterfrom vibe.i18n import get_supported_languages, t as i18n_tfrom modules.agents.opencode.utils import (build_opencode_model_option_items,+ build_codex_reasoning_options,build_reasoning_effort_options,resolve_opencode_allowed_providers,resolve_opencode_default_model,@@ -1167,56 +1168,30 @@ class DiscordBot(BaseIMClient):model_select.callback = codex_model_callbackself.add_item(model_select)- reasoning_options = [- discord.SelectOption(- label=_prefixed_label(- "discord.labels.reasoningEffort",- self.outer._t("common.default"),- ),- value="__default__",- default=self.codex_reasoning in (None, "__default__"),- ),- discord.SelectOption(- label=_prefixed_label(- "discord.labels.reasoningEffort",- self.outer._t("reasoning.minimal"),- ),- value="minimal",- default=self.codex_reasoning == "minimal",- ),- discord.SelectOption(- label=_prefixed_label(- "discord.labels.reasoningEffort",- self.outer._t("reasoning.low"),- ),- value="low",- default=self.codex_reasoning == "low",- ),- discord.SelectOption(- label=_prefixed_label(- "discord.labels.reasoningEffort",- self.outer._t("reasoning.medium"),- ),- value="medium",- default=self.codex_reasoning == "medium",- ),- discord.SelectOption(- label=_prefixed_label(- "discord.labels.reasoningEffort",- self.outer._t("reasoning.high"),- ),- value="high",- default=self.codex_reasoning == "high",- ),- discord.SelectOption(- label=_prefixed_label(- "discord.labels.reasoningEffort",- self.outer._t("reasoning.xhigh"),- ),- value="xhigh",- default=self.codex_reasoning == "xhigh",- ),- ]+ codex_reasoning_entries = build_codex_reasoning_options()+ selected_cx_reasoning = (+ self.codex_reasoning if self.codex_reasoning not in (None, "__default__") else "__default__"+ )+ available_cx_reasoning = {entry.get("value") for entry in codex_reasoning_entries}+ if selected_cx_reasoning not in available_cx_reasoning:+ selected_cx_reasoning = "__default__"+ reasoning_options = []+ for entry in codex_reasoning_entries:+ value = entry.get("value")+ if not value:+ continue+ if value == "__default__":+ label = self.outer._t("common.default")+ else:+ translated = self.outer._t(f"reasoning.{value}")+ label = translated if translated != f"reasoning.{value}" else entry.get("label", value)+ reasoning_options.append(+ discord.SelectOption(+ label=_prefixed_label("discord.labels.reasoningEffort", label),+ value=value,+ default=value == selected_cx_reasoning,+ )+ )reasoning_select = discord.ui.Select(placeholder=self.outer._t("modal.routing.selectReasoningEffort"),options=reasoning_options,diff --git a/modules/im/slack.py b/modules/im/slack.pyindex 221272dfb..04a8e9cb8 100644--- a/modules/im/slack.py+++ b/modules/im/slack.py@@ -17,6 +17,7 @@ from .formatters import SlackFormatterfrom vibe.i18n import get_supported_languages, t as i18n_tfrom modules.agents.opencode.utils import (build_opencode_model_option_items,+ build_codex_reasoning_options,build_reasoning_effort_options,resolve_opencode_allowed_providers,resolve_opencode_provider_preferences,@@ -2575,13 +2576,24 @@ class SlackBot(BaseIMClient):"initial_option": initial_cx_model,}- # Build reasoning effort options- cx_reasoning_options = [- {"text": {"type": "plain_text", "text": self._t("common.default")}, "value": "__default__"},- {"text": {"type": "plain_text", "text": self._t("reasoning.low")}, "value": "low"},- {"text": {"type": "plain_text", "text": self._t("reasoning.medium")}, "value": "medium"},- {"text": {"type": "plain_text", "text": self._t("reasoning.high")}, "value": "high"},- ]+ # Build reasoning effort options from centralized Codex definition+ codex_reasoning_entries = build_codex_reasoning_options()+ cx_reasoning_options = []+ for entry in codex_reasoning_entries:+ value = entry.get("value")+ if not value:+ continue+ if value == "__default__":+ label = self._t("common.default")+ else:+ translated = self._t(f"reasoning.{value}")+ label = translated if translated != f"reasoning.{value}" else entry.get("label", value)+ cx_reasoning_options.append(+ {+ "text": {"type": "plain_text", "text": label},+ "value": value,+ }+ )# Find initial reasoninginitial_cx_reasoning = cx_reasoning_options[0]diff --git a/vibe/api.py b/vibe/api.pyindex a1734e728..10c7c3cdf 100644--- a/vibe/api.py+++ b/vibe/api.py@@ -766,6 +766,7 @@ def claude_models() -> dict:# Common full model names (latest versions)options: list[str] = ["claude-opus-4-6",+ "claude-sonnet-4-6","claude-opus-4-5","claude-sonnet-4-5","claude-haiku-4-5",@@ -930,11 +931,13 @@ def codex_models() -> dict:# Common OpenAI model names used with Codexoptions: list[str] = [- # GPT series- "gpt-5",- "gpt-5.1",- "gpt-5.2",+ # GPT series (newest first)+ "gpt-5.4",+ "gpt-5.3-codex","gpt-5.2-codex",+ "gpt-5.2",+ "gpt-5.1",+ "gpt-5",]config_path = Path.home() / ".codex" / "config.toml"