Skip to content

fix: Normalize dateless model IDs and fix display truncation#56

Merged
dcramer merged 1 commit intomainfrom
fix/model-name-normalization
Feb 19, 2026
Merged

fix: Normalize dateless model IDs and fix display truncation#56
dcramer merged 1 commit intomainfrom
fix/model-name-normalization

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Feb 19, 2026

normalizeModelName did not handle model IDs without date suffixes (e.g. claude-opus-4-6), causing them to pass through unchanged. The UserTable display code then truncated these to just 2 hyphen-separated segments via .split('-').slice(0, 2).join('-'), turning opus-4-6 into opus-4.

Adds regex patterns for dateless claude-{family}-{major}-{minor} and claude-{family}-{major} formats. Removes the lossy split/slice/join display logic in favor of showing the already-normalized model name directly.

normalizeModelName did not handle model IDs without date suffixes
(e.g. claude-opus-4-6), causing them to pass through unchanged.
The UserTable display code then truncated these to just 2 hyphen
segments, turning opus-4-6 into opus-4.

Add regex patterns for dateless claude-{family}-{major}-{minor} and
claude-{family}-{major} formats. Remove the lossy split/slice/join
display logic in favor of showing the already-normalized model name.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dcramer dcramer marked this pull request as ready for review February 19, 2026 22:25
@dcramer dcramer merged commit 8ea49fd into main Feb 19, 2026
9 checks passed
@dcramer dcramer deleted the fix/model-name-normalization branch February 19, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant