Skip to content

Comments

Add friendly name fallback for raw Bedrock model IDs#182

Draft
kesensoy wants to merge 1 commit intosirmalloc:mainfrom
kesensoy:feat/friendly-model-names-fallback
Draft

Add friendly name fallback for raw Bedrock model IDs#182
kesensoy wants to merge 1 commit intosirmalloc:mainfrom
kesensoy:feat/friendly-model-names-fallback

Conversation

@kesensoy
Copy link

@kesensoy kesensoy commented Feb 18, 2026

Summary

  • When Claude Code uses AWS Bedrock as its backend, the display_name in the status line JSON is set to the raw model ID (e.g., global.anthropic.claude-opus-4-6-v1[1m]) rather than a friendly name. This causes the full Bedrock identifier to be
    displayed.
  • Adds a getFriendlyModelName() parser that converts raw model ID strings into user-friendly names (e.g., Opus 4.6 (1M context)). The parser is always applied — if the name is already friendly, it passes through unchanged.
  • Filed upstream: anthropics/claude-code issue requesting global. prefixed models get proper display_name values.

Supported formats

Claude 4+ (family-major-minor):

Input Output
global.anthropic.claude-opus-4-6-v1[1m] Opus 4.6 (1M context)
global.anthropic.claude-opus-4-6-v1 Opus 4.6
us.anthropic.claude-sonnet-4-6[1m] Sonnet 4.6 (1M context)
us.anthropic.claude-sonnet-4-5-20250929-v1:0 Sonnet 4.5
anthropic.claude-haiku-4-5-20251001-v1:0 Haiku 4.5

Claude 3.x (major-minor-family):

Input Output
anthropic.claude-3-5-haiku-20241022-v1:0 Haiku 3.5
anthropic.claude-3-7-sonnet-20250219-v1:0 Sonnet 3.7
anthropic.claude-3-5-sonnet-20241022-v2:0 Sonnet 3.5
anthropic.claude-3-opus-20240229-v1:0 Opus 3

Test plan

  • 35 unit tests covering all Bedrock model ID format variations
  • Manual verification with piped JSON input
  • TypeScript type check and ESLint pass (no new warnings)

@kesensoy kesensoy marked this pull request as draft February 18, 2026 23:13
When Claude Code sends a model ID (either as a raw string or as an
object whose display_name is the raw ID), parse it into a user-friendly
name. Handles both Claude 4+ format (claude-{family}-{major}-{minor})
and Claude 3.x format (claude-{major}-{minor}-{family}), with all
Bedrock prefixes (global.anthropic., us.anthropic., anthropic.) and
[1m] context suffix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kesensoy kesensoy force-pushed the feat/friendly-model-names-fallback branch from a529f25 to 3946c13 Compare February 18, 2026 23:19
@kesensoy kesensoy marked this pull request as ready for review February 18, 2026 23:23
@kesensoy kesensoy marked this pull request as draft February 19, 2026 01:50
@EthanJStark
Copy link
Contributor

@kesensoy Tested and working locally, tysm! 🙌🏼

EthanJStark pushed a commit to EthanJStark/ccstatusline that referenced this pull request Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants