claude-code - 💡(How to fix) Fix [BUG] /model picker on Bedrock only shows one model per family, ignoring availableModels in settings.json [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52310Fetched 2026-04-24 06:10:34
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×5

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

Environment

  • Claude Code version: (latest)
  • Provider: AWS Bedrock (CLAUDE_CODE_USE_BEDROCK=1)
  • Platform: Linux

Description

When using Claude Code via Bedrock, the /model picker only shows one model per family
(Sonnet, Opus, Haiku), determined by the ANTHROPIC_DEFAULT_* env vars. Additional models listed in availableModels in settings.json from the same family are silently deduplicated
and never appear in the picker.

What Should Happen?

Expected Behavior

All models listed in availableModels should appear as selectable options in the picker,
regardless of family overlap.

Actual Behavior

Only three entries appear — one per family, each pinned to the ANTHROPIC_DEFAULT_* env var:

  1. Default Use the default model (currently Sonnet 4.6)
  2. Custom Sonnet model
  3.  Custom Opus model   ← always ANTHROPIC_DEFAULT_OPUS_MODEL, not other opus variants
  4. Custom Haiku model

Models like global.anthropic.claude-opus-4-7 that belong to the same family as the default
are never shown, even when explicitly listed in availableModels.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

  1. Set CLAUDE_CODE_USE_BEDROCK=1 and configure ANTHROPIC_DEFAULT_OPUS_MODEL=global.anthropic.claude-opus-4-6-v1
  2. Add both global.anthropic.claude-opus-4-7 and global.anthropic.claude-opus-4-6-v1 to availableModels in ~/.claude/settings.json
  3. Run /model inside Claude Code

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.118

Platform

AWS Bedrock

Operating System

Other Linux

Terminal/Shell

PyCharm terminal

Additional Information

No response

extent analysis

TL;DR

The issue can be fixed by modifying the logic that populates the model picker to include all models listed in availableModels, regardless of family overlap.

Guidance

  • Review the code responsible for populating the /model picker and identify where the deduplication logic is applied.
  • Modify this logic to include all models from availableModels, rather than filtering out models based on the ANTHROPIC_DEFAULT_* env vars.
  • Verify that the modified code correctly displays all expected models in the picker.
  • Test the modified code with different combinations of models and env vars to ensure the fix is robust.

Example

No code snippet is provided as the issue does not include specific code references.

Notes

The root cause of the issue appears to be related to the deduplication logic applied when populating the model picker. The fix will depend on the specific implementation details of this logic.

Recommendation

Apply workaround: Modify the code responsible for populating the model picker to include all models from availableModels. This will ensure that all expected models are displayed in the picker, regardless of family overlap.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING