[BUG] VS Code extension /context command shows 200k instead of 1M when using [1m] model suffix

Resolved 💬 5 comments Opened Mar 20, 2026 by bullorbss-ship-it Closed May 22, 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?

When settings.json has "model": "claude-opus-4-6[1m]", the CLI correctly reports Opus 4.6 with 1M context window. However, the VS Code extension's /context command displays 15.6k / 200k (8%) — ignoring the [1m] suffix and showing the default 200k limit.

What Should Happen?

/context should show / 1M consistent with the CLI behavior

Error Messages/Logs

/context shows / 200k, suggesting the VS Code extension doesn't parse the [1m] suffix when calculating total context

Steps to Reproduce

Set "model": "claude-opus-4-6[1m]" in ~/.claude/settings.json
Open Claude Code in VS Code extension
Run /context
Observe it shows / 200k instead of / 1M

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

claude-opus-4-6[1m]

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Environment:

macOS (Darwin 23.4.0)
Model: claude-opus-4-6[1m]
CLI correctly shows 1M — issue is VS Code extension only

View original on GitHub ↗

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