[BUG] VSCode Extension: /model command output inconsistent across sessions

Status Fixed / completed
Reported on v2.1.220
Maintainer reply None cached
Activity 1 comment · opened Aug 7, 2026 · closed Aug 7, 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?

The /model sonnet command produces different outputs in different VSCode extension sessions, both in the native GUI.

Session 1 output:
Set model to arn:aws:bedrock:us-east-1:ACCOUNT-ID:application-inference-profile/PROFILE-ID for this session only

Session 2 output:
Set model to Sonnet 4.6 for this session only

Expected behavior:
The /model command should produce consistent output regardless of which session it's run in. Either always show the resolved ARN or always show the friendly model name, but the behavior should be deterministic.

Impact:
When using AWS Bedrock models, the inconsistency makes it difficult to verify which backend is actually being used.

What Should Happen?

Expected behavior:
The /model command should produce consistent output regardless of which session it's run in. Either always show the resolved ARN or always show the friendly model name, but the behavior should be deterministic.

Error Messages/Logs

Steps to Reproduce

Prerequisites:

  • VSCode Claude Code native extension installed (latest version)
  • Workspace with .claude/settings.json containing:

{
"env": {
"CLAUDE_CODE_USE_BEDROCK": "1",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "arn:aws:bedrock:us-east-1:ACCOUNT-ID:application-inference-profile/PROFILE-ID"
}
}

  • AWS credentials configured and authenticated

Steps:

  1. Open Claude Code in VSCode
  2. Start a new session (Session 1)
  3. Type /model sonnet and press Enter
  4. Note the output message
  5. Start a new session (Session 2) in the same workspace
  6. Type /model sonnet and press Enter
  7. Note the output message
  8. Compare the two outputs

Expected Result:
Both sessions show the same output format for the same /model command.

Actual Result:
Session 1 displays the full ARN:
"Set model to arn:aws:bedrock:us-east-1:ACCOUNT-ID:application-inference-profile/PROFILE-ID for this session only"

Session 2 displays the friendly name:
"Set model to Sonnet 4.6 for this session only"

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.220 (Claude Code)

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗