`agent --model claude-opus-4-7-max` always resetting to 300k context

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

I can change it to 1m context using /models in the interactive prompt, but every time I restart it goes back to 300k. I see no way to default to 1m from the command prompt, and it’s annoying to have to reset it every time I launch. is there a config somewhere? or command line option im missing?

Steps to Reproduce

just run agent --model claude-opus-4-7-max

Expected Behavior

it stays set to the 1m context I had it set at recently.

Operating System

MacOS

Version Information

About Cursor CLI

CLI Version 2026.05.24-dda726e
Model Opus 4.7 300K Max
Subscription Tier Ultra
OS darwin (arm64)
Terminal ghostty
Shell fish
User Email [email protected]

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi Justin! Thanks for the post. I apologize for the inconvenience. However, I do have a solid workaround for you. Instead of passing in the model name when you re-open, just launch it with agent, no model specifier. It will remember your 1 million context window selection from the last time. The problem is that with the --model claude-opus-4-7-max specifier, there is no way to specify the 1 million context window so it defaults to the 300k one each time. By not passing the specifier, it remembers your last setting.

yes but the problem is I wanted simple command line aliases to launch agent with different specific models. so if I wanted to drop in to claude or codex or whatever it was just one alias entry into the terminal.