Skip to content

Commit 7553739

Browse files
RyanLee-Devclaude
andcommitted
style: remove source annotations from status bar
Key and region are now shown plainly without (file)/(default) labels. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent eb13031 commit 7553739

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/output/status-bar.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,18 @@ export function maybeShowStatusBar(config: Config, token: string, model?: string
2020
if (config.quiet || printed || !process.stderr.isTTY) return;
2121
printed = true;
2222

23-
const filePath = config.configPath ? tildePath(config.configPath) : '~/.minimax/config.json';
24-
const regionSrc = config.fileRegion ? `${config.fileRegion} (file)` : 'global (default)';
25-
const keySrc = config.apiKey ? '(flag)' : '(file)';
26-
const maskedKey = maskToken(token);
27-
const modelStr = model ? ` ${dim}|${reset} ${dim}Model:${reset} ${mmPurple}${model}${reset}` : '';
23+
const filePath = config.configPath ? tildePath(config.configPath) : '~/.minimax/config.json';
24+
const region = config.fileRegion ?? 'global';
25+
const maskedKey = maskToken(token);
26+
const modelStr = model ? ` ${dim}|${reset} ${dim}Model:${reset} ${mmPurple}${model}${reset}` : '';
2827

2928
process.stderr.write(
3029
`${bold}${mmBlue}MINIMAX${reset} ` +
3130
`${dim}${filePath}${reset} ` +
3231
`${dim}|${reset} ` +
33-
`${dim}Region:${reset} ${mmCyan}${regionSrc}${reset} ` +
32+
`${dim}Region:${reset} ${mmCyan}${region}${reset} ` +
3433
`${dim}|${reset} ` +
35-
`${dim}Key:${reset} ${mmPink}${maskedKey}${reset} ${dim}${keySrc}${reset}` +
34+
`${dim}Key:${reset} ${mmPink}${maskedKey}${reset}` +
3635
`${modelStr}\n`,
3736
);
3837
}

0 commit comments

Comments
 (0)