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

**URL:** <https://forum.cursor.com/t/agent-model-claude-opus-4-7-max-always-resetting-to-300k-context/161714>\
**Category:** Bug Reports\
**Tags:** cli, max-mode, anthropic\
**Created:** [May 27, 2026, 4:59pm UTC](https://forum.cursor.com/t/agent-model-claude-opus-4-7-max-always-resetting-to-300k-context/161714 "2026-05-27T16:59:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jubi](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jubi/32/108131_2.png) [@jubi](https://forum.cursor.com/u/jubi)\
**Post date:** [May 27, 2026, 4:59pm UTC](https://forum.cursor.com/t/agent-model-claude-opus-4-7-max-always-resetting-to-300k-context/161714/1 "2026-05-27T16:59:44Z")

</div>

### 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 [jubishop@gmail.com](mailto:jubishop@gmail.com)

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [May 28, 2026, 1:30am UTC](https://forum.cursor.com/t/agent-model-claude-opus-4-7-max-always-resetting-to-300k-context/161714/7 "2026-05-28T01:30:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jubi](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jubi/32/108131_2.png) [@jubi](https://forum.cursor.com/u/jubi)\
**Post date:** [May 28, 2026, 4:35am UTC](https://forum.cursor.com/t/agent-model-claude-opus-4-7-max-always-resetting-to-300k-context/161714/8 "2026-05-28T04:35:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 18, 2026, 12:03am UTC](https://forum.cursor.com/t/agent-model-claude-opus-4-7-max-always-resetting-to-300k-context/161714/10 "2026-07-18T00:03:02Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
