mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 23:42:03 +00:00
fix ui
This commit is contained in:
parent
7b63b24773
commit
b15b9b7ef4
2 changed files with 9 additions and 16 deletions
|
|
@ -153,10 +153,10 @@ export function extensionConsentString(
|
|||
const output: string[] = [];
|
||||
if (originSource !== 'QwenCode') {
|
||||
output.push(
|
||||
`⚠️ ${t(
|
||||
t(
|
||||
'You are installing an extension from {{originSource}}. Some features may not work perfectly with Qwen Code.',
|
||||
{ originSource },
|
||||
)}`,
|
||||
),
|
||||
);
|
||||
}
|
||||
const mcpServerEntries = Object.entries(extensionConfig.mcpServers || {});
|
||||
|
|
@ -230,6 +230,7 @@ export const requestConsentOrFail = async (
|
|||
if (!options) return;
|
||||
const {
|
||||
extensionConfig,
|
||||
originSource = 'QwenCode',
|
||||
commands = [],
|
||||
skills = [],
|
||||
subagents = [],
|
||||
|
|
@ -243,6 +244,7 @@ export const requestConsentOrFail = async (
|
|||
commands,
|
||||
skills,
|
||||
subagents,
|
||||
originSource,
|
||||
);
|
||||
if (previousExtensionConfig) {
|
||||
const previousExtensionConsent = extensionConsentString(
|
||||
|
|
@ -250,6 +252,7 @@ export const requestConsentOrFail = async (
|
|||
previousCommands,
|
||||
previousSkills,
|
||||
previousSubagents,
|
||||
originSource,
|
||||
);
|
||||
if (previousExtensionConsent === extensionConsent) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue