[BUG] Linux CC fails to use 1M context if you have "opus" defined in settings

Resolved 💬 3 comments Opened Mar 14, 2026 by jhargis Closed May 4, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Can't get access to the 1M token context window.

What Should Happen?

● Update(~/.claude/settings.json)                                            
  ⎿  Added 1 line, removed 1 line                                                                                                     
      107    "feedbackSurveyState": {                                                                                                 
      108      "lastShownTime": 1754092392961                                                                                         
      109    },                                                                                                                       
      110 -  "model": "opus"                                                                                                          
      110 +  "model": "opus[1m]"                                                                                                      
      111  }

Prior to this edit, there was no way I could find to get 1M token context window access. I suspect when Opus is selected, it defaults to the 200k context and overrides the /model selector in the TUI.

After the patch, it works.

Error Messages/Logs

Steps to Reproduce

Set the model to "opus" in the global settings file and start CC.

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.76

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

Terminal used was Kitty

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗