Skip to content

Commit baae0d9

Browse files
committed
fix(statusline): show raw model code names instead of formatted display names
Display model IDs as-is (e.g. "glm-5.1", "claude-opus-4-5-20251101") rather than transforming them to human-readable names. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 12fbed5 commit baae0d9

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

statusline/scripts/format-status.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -383,20 +383,8 @@ function formatTasks(metrics: SessionMetrics): string | null {
383383

384384
function formatModel(model?: string): string | null {
385385
if (!model) return null;
386-
387-
// Format GLM models
388-
if (model.startsWith("glm-")) {
389-
return `Model: GLM ${model.replace("glm-", "")}`;
390-
}
391-
392-
// Format Anthropic models: "claude-opus-4-5-20251101" -> "Opus 4.5"
393-
const short = model
394-
.replace(/^claude-/, "")
395-
.replace(/-\d{8}$/, "")
396-
.replace(/-(\d)-(\d)$/, " $1.$2")
397-
.replace(/-(\d)$/, " $1");
398-
const capitalized = short.replace(/\b(\w)/g, (_, c) => c.toUpperCase());
399-
return `Model: ${capitalized}`;
386+
// Show raw model code name as-is (e.g. "glm-5.1", "claude-opus-4-5-20251101")
387+
return model;
400388
}
401389

402390
function formatDuration(duration?: string): string | null {

0 commit comments

Comments
 (0)