From 022f0c4a600c3faaee395e225db73e54609acc76 Mon Sep 17 00:00:00 2001 From: Zedong Yang Date: Mon, 8 Jun 2026 14:28:24 +0800 Subject: [PATCH] feat: add MiMo to OPENAI_MODEL_EXECUTION_GUIDANCE injection list MiMo exhibits the same tool-calling failure modes as GPT/Grok: stopping after a stub, describing plans instead of executing, and answering from memory instead of using tools. Add 'mimo' to the model-name check so it receives the full execution discipline guidance ( + ). --- agent/system_prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/system_prompt.py b/agent/system_prompt.py index 4038716df4874..d6931ad629305 100644 --- a/agent/system_prompt.py +++ b/agent/system_prompt.py @@ -179,7 +179,7 @@ def build_system_prompt_parts(agent: Any, system_message: Optional[str] = None) # Also applied to xAI Grok — same failure modes (claims completion # without tool calls, suggests workarounds instead of using # existing tools, replies with plans instead of executing). - if "gpt" in _model_lower or "codex" in _model_lower or "grok" in _model_lower: + if "gpt" in _model_lower or "codex" in _model_lower or "grok" in _model_lower or "mimo" in _model_lower: stable_parts.append(OPENAI_MODEL_EXECUTION_GUIDANCE) has_skills_tools = any(name in agent.valid_tool_names for name in ['skills_list', 'skill_view', 'skill_manage'])