mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
Merge remote-tracking branch 'origin/main' into feat/mcp-progress-updates
This commit is contained in:
commit
4e89c99216
41 changed files with 1153 additions and 219 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 */}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue