Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
Summary: When a subagent/agent definition declares a model: value the CLI can’t resolve (e.g. a foreign alias like sonnet/opus/haiku from a Claude-Code agent pack, or a typo), cursor-agent does not error or warn. It silently runs that subagent on the current session model. If the session is on a frontier model (e.g. gpt-5.4-medium), autonomous fan-out routes onto the expensive model with no indication.
Impact: A multi-agent run I expected to be on cheap models silently ran ~32 subagents on gpt-5.4-medium, billing ~$1,637 in ~90 minutes. The agents’ frontmatter requested cheaper models, but the unresolved IDs fell back to the session model.
Steps to Reproduce
- Create an agent with model: some-unknown-model-id in its frontmatter.
- Start a session on a frontier model.
- Have the agent spawn that subagent (Task/Subagent).
- Observe: the subagent runs on the session’s frontier model; no warning that the requested model was unresolved.
Expected Behavior
Error or warn on an unresolvable model ID, and/or refuse to auto-route subagents onto a more expensive model than requested without confirmation.
Operating System
Linux
Version Information
2026.06.15-18-00-12-6f5a2cf
For AI issues: which model did you use?
gpt-5.4-medium
Does this stop you from using Cursor
No - Cursor works, but with this issue