Merge remote-tracking branch 'origin/main' into feat/mcp-progress-updates

This commit is contained in:
tanzhenxin 2026-02-09 10:18:35 +08:00
commit 4e89c99216
41 changed files with 1153 additions and 219 deletions

View file

@ -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 */}

View file

@ -49,13 +49,6 @@ export const McpStatus: React.FC<McpStatusProps> = ({
return (
<Box flexDirection="column">
<Text>{t('No MCP servers configured.')}</Text>
<Text>
{t('Please view MCP documentation in your browser:')}{' '}
<Text color={theme.text.link}>
https://goo.gle/gemini-cli-docs-mcp
</Text>{' '}
{t('or use the cli /docs command')}
</Text>
</Box>
);
}