Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent/system_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition only runs after _inject is true. In default auto mode, _inject is derived from TOOL_USE_ENFORCEMENT_MODELS, which currently omits mimo (agent/prompt_builder.py:302), so this addition is unreachable for a normal MiMo session. Please add mimo to that tuple and cover the auto path with a regression test.

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'])
Expand Down