Skip to content

Commit a78c143

Browse files
committed
fix(blocks): use comma-separated model names to prevent table layout issues
Changed formatModels function to use comma separation instead of newlines when displaying multiple model names in the blocks table. This prevents table rows from being split across multiple lines, maintaining proper column alignment and improving readability. The change affects only the visual presentation - functionality remains the same. Model names are now displayed as: "claude-opus-4-20250514, <synthetic>, claude-sonnet-4-20250514" instead of being split across separate lines.
1 parent 934d60e commit a78c143

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/commands/blocks.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ function formatModels(models: string[]): string {
5151
if (models.length === 1) {
5252
return models[0] ?? '-';
5353
}
54-
return models.join('\n');
54+
// Use comma separation instead of newlines to prevent table layout issues
55+
return models.join(', ');
5556
}
5657

5758
function parseTokenLimit(value: string | undefined, maxFromAll: number): number | undefined {

0 commit comments

Comments
 (0)