mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
refactor(cli): change auth hint to model hint in header
Update the header info panel hint from '/auth to change' to '/model to change' to better reflect that this command switches models rather than authentication. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
5f8884b60c
commit
6a867ed4a4
1 changed files with 6 additions and 5 deletions
|
|
@ -106,10 +106,11 @@ export const Header: React.FC<HeaderProps> = ({
|
|||
availableInfoPanelWidth - infoPanelChromeWidth,
|
||||
);
|
||||
const authModelText = `${formattedAuthType} | ${model}`;
|
||||
const authHintText = ' (/auth to change)';
|
||||
const showAuthHint =
|
||||
const modelHintText = ' (/model to change)';
|
||||
const showModelHint =
|
||||
infoPanelContentWidth > 0 &&
|
||||
getCachedStringWidth(authModelText + authHintText) <= infoPanelContentWidth;
|
||||
getCachedStringWidth(authModelText + modelHintText) <=
|
||||
infoPanelContentWidth;
|
||||
|
||||
// Now shorten the path to fit the available space
|
||||
const tildeifiedPath = tildeifyPath(workingDirectory);
|
||||
|
|
@ -169,8 +170,8 @@ export const Header: React.FC<HeaderProps> = ({
|
|||
{/* Auth and Model line */}
|
||||
<Text>
|
||||
<Text color={theme.text.secondary}>{authModelText}</Text>
|
||||
{showAuthHint && (
|
||||
<Text color={theme.text.secondary}>{authHintText}</Text>
|
||||
{showModelHint && (
|
||||
<Text color={theme.text.secondary}>{modelHintText}</Text>
|
||||
)}
|
||||
</Text>
|
||||
{/* Directory line */}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue