Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
ui(agent): unify skill naming and icon across editor and mentions (#2818)
lyingbug24560046cefc
diff --git a/frontend/src/components/Input-field.vue b/frontend/src/components/Input-field.vueindex f39dbbcc2..c74fc5a22 100644--- a/frontend/src/components/Input-field.vue+++ b/frontend/src/components/Input-field.vue@@ -41,7 +41,7 @@ import {type AgentNotReadyReasonKey,} from '@/utils/agent-readiness';import { formatLocalizedList } from '@/utils/format-list';-import type { MentionItem, MentionItemType, MentionRequestItem } from '@/types/mention';+import { SKILL_ICON, type MentionItem, type MentionItemType, type MentionRequestItem } from '@/types/mention';const route = useRoute();const router = useRouter();@@ -667,7 +667,7 @@ const getMentionIcon = (item: MentionItem) => {case 'file': return 'file';case 'tag': return 'tag';case 'mcp': return 'tools';- case 'skill': return 'bookmark';+ case 'skill': return SKILL_ICON;default: return 'folder';}};diff --git a/frontend/src/components/MentionSelector.vue b/frontend/src/components/MentionSelector.vueindex 14e2dc814..01abb67a9 100644--- a/frontend/src/components/MentionSelector.vue+++ b/frontend/src/components/MentionSelector.vue@@ -265,7 +265,7 @@ import { getKnowledgeBaseById } from '@/api/knowledge-base';import { getKnowledgeDetails } from '@/api/knowledge-base';import { useOrganizationStore } from '@/stores/organization';import { useSettingsStore } from '@/stores/settings';-import type { MentionItem, MentionItemType } from '@/types/mention';+import { SKILL_ICON, type MentionItem, type MentionItemType } from '@/types/mention';type DetailState = { loading: boolean; error?: string; data?: any };@@ -317,7 +317,7 @@ const mentionGroupDefs = computed<Array<{ type: MentionItemType; label: string;{ type: 'kb', label: t('common.knowledgeBase'), icon: 'folder' },{ type: 'tag', label: '标签', icon: 'tag' },{ type: 'mcp', label: 'MCP', icon: 'tools' },- { type: 'skill', label: 'Skills', icon: 'bookmark' },+ { type: 'skill', label: t('common.skill'), icon: SKILL_ICON },{ type: 'file', label: t('common.file'), icon: 'file' },]);diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.tsindex de2b7a5ab..b92e2b7fc 100755--- a/frontend/src/i18n/locales/en-US.ts+++ b/frontend/src/i18n/locales/en-US.ts@@ -1009,20 +1009,20 @@ export default {fallbackPrompt: 'Fallback Prompt',fallbackPromptPlaceholder: 'Leave empty to use default prompt',skillsConfig: 'Skills',- skillsConfigDesc: 'Choose the sandbox that runs skill scripts, then pick which Skills from that sandbox the Agent can use. The Skill list follows the selected sandbox.',- skillsSelection: 'Skills Selection',- skillsSelectionDesc: 'Choose which Skills the Agent can use. The list comes from the sandbox selected above.',+ skillsConfigDesc: 'Choose the sandbox that runs skill scripts, and which skills from that sandbox the agent can use.',+ skillsSelection: 'Available skills',+ skillsSelectionDesc: 'The list comes from skills installed in the selected sandbox.',skillsAll: 'All',skillsSelected: 'Selected',skillsNone: 'Disabled',- selectSkills: 'Select Skills',- selectSkillsDesc: 'Choose which Skills to enable',- noSkillsAvailable: 'This sandbox has no preloaded Skills. Install them in Skill Sandbox settings.',- skillsNeedSandbox: 'Select a sandbox first. Available Skills come from the skills installed in that sandbox.',- goSandboxSettings: 'Configure in Skill Sandbox settings',- sandboxBackend: 'Sandbox config',- sandboxBackendDefault: 'Disable sandbox',- sandboxBackendHint: 'Skill scripts run in the selected sandbox. They stay disabled until a config is chosen; if that config is deleted, skill execution will fail.',+ selectSkills: 'Select skills',+ selectSkillsDesc: 'Choose which skills to enable.',+ noSkillsAvailable: 'This sandbox has no skills installed.',+ skillsNeedSandbox: 'Select a sandbox first.',+ goSandboxSettings: 'Manage sandboxes',+ sandboxBackend: 'Sandbox',+ sandboxBackendDefault: 'Disabled',+ sandboxBackendHint: 'Skill scripts do not run until a sandbox is selected.',sandboxBackendMissing: 'Config deleted',sandboxNoConfigs: 'This workspace has no sandbox yet, so skill scripts will not run.',skillsInfoTitle: 'How Skills and the sandbox work together',@@ -2073,6 +2073,7 @@ export default {saveFailed: 'Save failed',operationFailed: 'Operation failed',file: 'File',+ skill: 'Skills',knowledgeBase: 'Knowledge Base',noResult: 'No results',remove: 'Remove',diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.tsindex 46e24219d..56caa509d 100755--- a/frontend/src/i18n/locales/ko-KR.ts+++ b/frontend/src/i18n/locales/ko-KR.ts@@ -4457,6 +4457,7 @@ export default {saveFailed: '저장 실패',operationFailed: '작업 실패',file: '파일',+ skill: '스킬',knowledgeBase: '지식베이스',noResult: '결과 없음',remove: '제거',@@ -5593,25 +5594,25 @@ export default {fallbackResponsePlaceholder: '죄송합니다. 이 질문에는 답변해 드릴 수 없습니다.',fallbackPrompt: '폴백 프롬프트',fallbackPromptPlaceholder: '시스템 기본 프롬프트를 사용하려면 비워 두세요.',- skillsConfig: '스킬 Skills',- skillsConfigDesc: '스킬 스크립트가 실행될 샌드박스를 선택한 뒤, 해당 샌드박스에서 Agent가 사용할 Skills를 구성합니다. 사용 가능한 Skills는 선택한 샌드박스에 따라 달라집니다.',- skillsSelection: 'Skills 선택',- skillsSelectionDesc: 'Agent가 사용할 수 있는 Skills 범위를 선택하세요. 목록은 위에서 선택한 샌드박스에 설치된 스킬에서 가져옵니다.',+ skillsConfig: '스킬',+ skillsConfigDesc: '스킬 스크립트가 실행될 샌드박스와, 그 샌드박스에서 사용할 스킬을 지정합니다.',+ skillsSelection: '사용 가능한 스킬',+ skillsSelectionDesc: '목록은 선택한 샌드박스에 설치된 스킬에서 가져옵니다.',skillsAll: '전체',skillsSelected: '지정',skillsNone: '비활성화',- selectSkills: 'Skills 선택',- selectSkillsDesc: '활성화할 Skills 선택',- noSkillsAvailable: '이 샌드박스에 사전 설치된 Skills가 없습니다. 스킬 샌드박스 설정에서 설치할 수 있습니다.',- skillsNeedSandbox: '먼저 샌드박스 설정을 선택하세요. 사용 가능한 Skills는 해당 샌드박스에 설치된 스킬에서 가져옵니다.',- goSandboxSettings: '스킬 샌드박스 설정에서 구성',- sandboxBackend: '샌드박스 설정',- sandboxBackendDefault: '샌드박스 사용 안 함',- sandboxBackendHint: '스킬 스크립트는 선택한 샌드박스에서 실행됩니다. 선택하지 않으면 실행되지 않으며, 선택한 설정이 삭제되면 스킬 실행이 실패합니다.',+ selectSkills: '스킬 선택',+ selectSkillsDesc: '사용할 스킬을 선택하세요.',+ noSkillsAvailable: '이 샌드박스에 설치된 스킬이 없습니다.',+ skillsNeedSandbox: '먼저 실행 샌드박스를 선택하세요.',+ goSandboxSettings: '샌드박스 관리',+ sandboxBackend: '실행 샌드박스',+ sandboxBackendDefault: '사용 안 함',+ sandboxBackendHint: '선택하지 않으면 스킬 스크립트가 실행되지 않습니다.',sandboxBackendMissing: '설정이 삭제됨',sandboxNoConfigs: '이 워크스페이스에 샌드박스가 없어 스킬 스크립트가 실행되지 않습니다.',- skillsInfoTitle: 'Skills와 샌드박스는 어떻게 연동되나요?',- skillsInfoContent: 'Skills는 사전 설치된 전문 지식 모듈이며, 스크립트는 선택한 샌드박스에서 격리 실행됩니다. 목록은 해당 샌드박스에 설치된 스킬에서 가져옵니다. 세션 샌드박스가 한 번 만들어지면 첨부 파일, 산출물, 회수는 그 설정에 고정되며, 여기서 바꾸면 이후에 새로 만들어지는 세션에만 영향을 줍니다.'+ skillsInfoTitle: '스킬과 샌드박스는 어떻게 연동되나요?',+ skillsInfoContent: '스킬은 사전 설치된 전문 지식 모듈이며, 스크립트는 선택한 샌드박스에서 격리 실행됩니다. 목록은 해당 샌드박스에 설치된 스킬에서 가져옵니다. 세션 샌드박스가 한 번 만들어지면 첨부 파일, 산출물, 회수는 그 설정에 고정되며, 여기서 바꾸면 이후에 새로 만들어지는 세션에만 영향을 줍니다.'},messages: {created: '에이전트가 성공적으로 생성되었습니다.',diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.tsindex 4a154f336..6c89be639 100755--- a/frontend/src/i18n/locales/ru-RU.ts+++ b/frontend/src/i18n/locales/ru-RU.ts@@ -4457,6 +4457,7 @@ export default {saveFailed: 'Ошибка сохранения',operationFailed: 'Операция не выполнена',file: 'Файл',+ skill: 'Навыки',knowledgeBase: 'База знаний',noResult: 'Нет результатов',remove: 'Удалить',@@ -5593,21 +5594,21 @@ export default {fallbackResponsePlaceholder: 'Sorry, I cannot answer this question.',fallbackPrompt: 'Fallback Prompt',fallbackPromptPlaceholder: 'Leave empty to use default prompt',- skillsConfig: 'Skills',- skillsConfigDesc: 'Выберите песочницу для скриптов навыков и настройте Skills, доступные агенту в этой песочнице. Список Skills зависит от выбранной песочницы.',- skillsSelection: 'Выбор Skills',- skillsSelectionDesc: 'Выберите диапазон Skills, доступных агенту. Список берётся из навыков, установленных в выбранной выше песочнице.',+ skillsConfig: 'Навыки',+ skillsConfigDesc: 'Выберите песочницу для скриптов навыков и навыки, доступные агенту в этой песочнице.',+ skillsSelection: 'Доступные навыки',+ skillsSelectionDesc: 'Список берётся из навыков, установленных в выбранной песочнице.',skillsAll: 'Все',skillsSelected: 'Выбранные',skillsNone: 'Отключено',- selectSkills: 'Выбрать Skills',- selectSkillsDesc: 'Выберите Skills для активации',- noSkillsAvailable: 'В этой песочнице нет предустановленных Skills. Их можно установить в настройках песочницы навыков.',- skillsNeedSandbox: 'Сначала выберите конфигурацию песочницы. Доступные Skills берутся из навыков, установленных в этой песочнице.',- goSandboxSettings: 'Настроить в параметрах песочницы навыков',- sandboxBackend: 'Конфигурация песочницы',- sandboxBackendDefault: 'Не использовать песочницу',- sandboxBackendHint: 'Скрипты навыков выполняются в выбранной песочнице. Без выбора они не запускаются; если конфигурация удалена, выполнение навыков завершится ошибкой.',+ selectSkills: 'Выбрать навыки',+ selectSkillsDesc: 'Отметьте навыки, которые нужно включить.',+ noSkillsAvailable: 'В этой песочнице нет установленных навыков.',+ skillsNeedSandbox: 'Сначала выберите песочницу.',+ goSandboxSettings: 'Управление песочницами',+ sandboxBackend: 'Песочница',+ sandboxBackendDefault: 'Не использовать',+ sandboxBackendHint: 'Без выбора скрипты навыков не запускаются.',sandboxBackendMissing: 'Конфигурация удалена',sandboxNoConfigs: 'В этом пространстве ещё нет песочницы, поэтому скрипты навыков не выполняются.',skillsInfoTitle: 'Как связаны Skills и песочница?',diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.tsindex 6dd82afd7..23fe226a0 100755--- a/frontend/src/i18n/locales/zh-CN.ts+++ b/frontend/src/i18n/locales/zh-CN.ts@@ -4459,6 +4459,7 @@ export default {saveFailed: '保存失败',operationFailed: '操作失败',file: '文件',+ skill: '技能',knowledgeBase: '知识库',noResult: '无结果',remove: '移除',@@ -5595,25 +5596,25 @@ export default {fallbackResponsePlaceholder: '抱歉,我无法回答这个问题。',fallbackPrompt: '兜底提示词',fallbackPromptPlaceholder: '留空使用系统默认提示词',- skillsConfig: '技能 Skills',- skillsConfigDesc: '选择技能脚本运行的沙箱,并配置该沙箱中可供 Agent 使用的 Skills。可用 Skills 会随所选沙箱变化。',- skillsSelection: 'Skills 选择',- skillsSelectionDesc: '选择 Agent 可以使用的 Skills 范围。列表来自上方所选沙箱中已安装的技能。',+ skillsConfig: '技能',+ skillsConfigDesc: '指定技能脚本的运行沙箱,以及该沙箱中可供使用的技能。',+ skillsSelection: '可用技能',+ skillsSelectionDesc: '列表来自所选沙箱已安装的技能。',skillsAll: '全部',skillsSelected: '指定',skillsNone: '禁用',- selectSkills: '选择 Skills',- selectSkillsDesc: '选择要启用的 Skills',- noSkillsAvailable: '该沙箱暂无预装 Skills,可在技能沙箱设置中安装。',- skillsNeedSandbox: '请先选择沙箱配置。可用 Skills 来自该沙箱已安装的技能。',- goSandboxSettings: '去技能沙箱设置中配置',- sandboxBackend: '沙箱配置',- sandboxBackendDefault: '不启用沙箱',- sandboxBackendHint: '技能脚本在所选沙箱中执行。未选择时不会执行技能脚本;所选配置被删除后,技能执行会失败。',+ selectSkills: '选择技能',+ selectSkillsDesc: '勾选要启用的技能。',+ noSkillsAvailable: '该沙箱尚未安装技能。',+ skillsNeedSandbox: '请先选择运行沙箱。',+ goSandboxSettings: '管理沙箱',+ sandboxBackend: '运行沙箱',+ sandboxBackendDefault: '不启用',+ sandboxBackendHint: '未选择时不会执行技能脚本。',sandboxBackendMissing: '配置已删除',- sandboxNoConfigs: '当前空间还没有沙箱配置,技能脚本不会执行。',- skillsInfoTitle: 'Skills 与沙箱如何联动?',- skillsInfoContent: 'Skills 是预装的专业知识模块,脚本在所选沙箱中隔离执行。可用列表来自该沙箱已安装的技能;同一会话的沙箱一旦创建,后续附件、产物与销毁都会锁定在创建时那份配置上,改沙箱只影响之后新建的会话。'+ sandboxNoConfigs: '当前空间还没有沙箱,技能脚本不会执行。',+ skillsInfoTitle: '技能与沙箱如何联动?',+ skillsInfoContent: '技能是预装的专业知识模块,脚本在所选沙箱中隔离执行。可用列表来自该沙箱已安装的技能;同一会话的沙箱一旦创建,后续附件、产物与销毁都会锁定在创建时那份配置上,改沙箱只影响之后新建的会话。'},messages: {created: '智能体创建成功',diff --git a/frontend/src/types/mention.ts b/frontend/src/types/mention.tsindex 47167a1d2..be0ac99d9 100644--- a/frontend/src/types/mention.ts+++ b/frontend/src/types/mention.ts@@ -1,5 +1,8 @@export type MentionItemType = 'kb' | 'file' | 'tag' | 'mcp' | 'skill';+/** TDesign icon for Skills in the agent editor, @-mention menu, and chat chips. */+export const SKILL_ICON = 'system-code';+export interface MentionItem {id: string;name: string;diff --git a/frontend/src/views/agent/AgentEditorModal.test.mjs b/frontend/src/views/agent/AgentEditorModal.test.mjsindex f7991315b..27b56780d 100644--- a/frontend/src/views/agent/AgentEditorModal.test.mjs+++ b/frontend/src/views/agent/AgentEditorModal.test.mjs@@ -113,6 +113,7 @@ test('skills and sandbox share one editor section', () => {const navItems = source.match(/const navItems = computed\(\(\) => \{([\s\S]*?)^\}\);/m)?.[1]assert.ok(navItems, 'expected to find the nav items computed')assert.match(navItems, /key: 'skills'/)+ assert.match(navItems, /icon: SKILL_ICON/)assert.doesNotMatch(navItems, /key: 'sandbox'/)const capabilityGroup = source.match(/pickItems\(\['multimodal', 'tools', 'mcp', 'skills'\]\)/)@@ -123,6 +124,6 @@ test('skills and sandbox share one editor section', () => {assert.match(source, /sandbox: 'skills'/)assert.match(source, /formData\.config\.sandbox_config_id/)assert.match(source, /:disabled="!hasSandboxSelected"/)- assert.match(source, /name="help-circle"/)+ assert.match(source, /sandbox-option/)assert.doesNotMatch(source, /skill-info-box/)})diff --git a/frontend/src/views/agent/AgentEditorModal.vue b/frontend/src/views/agent/AgentEditorModal.vueindex 6baad5a9d..cab8dd12d 100644--- a/frontend/src/views/agent/AgentEditorModal.vue+++ b/frontend/src/views/agent/AgentEditorModal.vue@@ -1260,70 +1260,70 @@</div></div>- <!-- Skills + 技能沙箱(仅 Agent 模式):可用 Skills 取决于所选沙箱 -->+ <!-- 技能:脚本跑在所选沙箱里,可用列表也来自这份配置 --><div v-show="currentSection === 'skills' && isAgentMode" class="section"><div class="section-header">- <div class="section-header-title">- <h2>{{ $t('agent.editor.skillsConfig') }}</h2>- <t-popup placement="bottom-start" trigger="hover" :overlay-inner-style="{ maxWidth: '380px' }">- <button type="button" class="hint-trigger"- :aria-label="$t('agent.editor.skillsInfoTitle')">- <t-icon name="help-circle" size="16px" />- </button>- <template #content>- <div class="hint-popover">- <p class="hint-popover__title">{{ $t('agent.editor.skillsInfoTitle') }}</p>- <p class="hint-popover__text">{{ $t('agent.editor.skillsInfoContent') }}</p>- </div>- </template>- </t-popup>- </div>+ <h2>{{ $t('agent.editor.skillsConfig') }}</h2><p class="section-description">{{ $t('agent.editor.skillsConfigDesc') }}</p></div><div class="settings-group">- <!-- 沙箱配置:技能脚本运行环境,同时决定下方 Skills 列表 --><div class="setting-row"><div class="setting-info"><label>{{ $t('agent.editor.sandboxBackend') }}</label><p class="desc">{{ $t('agent.editor.sandboxBackendHint') }}</p></div>- <div class="setting-control" style="flex-direction: column; align-items: flex-end;">- <t-select v-model="formData.config.sandbox_config_id"- :placeholder="$t('agent.editor.sandboxBackendDefault')" style="width: 280px">+ <div class="setting-control sandbox-select-control">+ <t-select+ v-model="formData.config.sandbox_config_id"+ :placeholder="$t('agent.editor.sandboxBackendDefault')"+ class="sandbox-config-select"+ filterable+ :popup-props="{ overlayClassName: 'sandbox-config-select-popup' }"+ ><t-option value="" :label="$t('agent.editor.sandboxBackendDefault')" />- <t-option v-for="cfg in sandboxConfigOptions" :key="cfg.id" :value="cfg.id"- :label="`${cfg.name} (${backendLabel(cfg.sandbox_type)})`" />+ <t-option+ v-for="cfg in sandboxConfigOptions"+ :key="cfg.id"+ :value="cfg.id"+ :label="cfg.name"+ >+ <div class="sandbox-option">+ <span class="sandbox-option__name">{{ cfg.name }}</span>+ <span v-if="cfg.sandbox_type" class="sandbox-option__type">{{ backendLabel(cfg.sandbox_type) }}</span>+ </div>+ </t-option></t-select><a href="javascript:void(0)" class="go-settings-link"@click.prevent="uiStore.openSettings('sandbox')">{{ $t('agent.editor.goSandboxSettings') }}</a>+ <p v-if="sandboxConfigOptions.length === 0" class="desc empty-hint">+ {{ $t('agent.editor.sandboxNoConfigs') }}+ </p></div></div>- <div v-if="sandboxConfigOptions.length === 0" class="setting-row">- <div class="setting-info">- <p class="desc empty-hint">{{ $t('agent.editor.sandboxNoConfigs') }}</p>- </div>- </div>-- <!-- Skills 选择模式:未选沙箱时只能保持禁用,列表来自所选沙箱 --><div class="setting-row"><div class="setting-info"><label>{{ $t('agent.editor.skillsSelection') }}</label><p class="desc">{{ $t('agent.editor.skillsSelectionDesc') }}</p></div>- <div class="setting-control">+ <div class="setting-control sandbox-select-control"><t-radio-group v-model="skillsSelectionMode"><t-radio-button value="all" :disabled="!hasSandboxSelected">{{ $t('agent.editor.skillsAll') }}</t-radio-button><t-radio-button value="selected" :disabled="!hasSandboxSelected">{{ $t('agent.editor.skillsSelected') }}</t-radio-button><t-radio-button value="none">{{ $t('agent.editor.skillsNone') }}</t-radio-button></t-radio-group>+ <p v-if="!hasSandboxSelected && sandboxConfigOptions.length > 0" class="desc empty-hint">+ {{ $t('agent.editor.skillsNeedSandbox') }}+ </p>+ <p v-else-if="hasSandboxSelected && skillOptions.length === 0" class="desc empty-hint">+ {{ $t('agent.editor.noSkillsAvailable') }}+ </p></div></div>- <!-- 选择指定 Skills --><div v-if="skillsSelectionMode === 'selected' && skillOptions.length > 0"class="setting-row setting-row-vertical"><div class="setting-info">@@ -1342,17 +1342,6 @@</t-checkbox-group></div></div>-- <div v-if="!hasSandboxSelected && sandboxConfigOptions.length > 0" class="setting-row">- <div class="setting-info">- <p class="desc empty-hint">{{ $t('agent.editor.skillsNeedSandbox') }}</p>- </div>- </div>- <div v-else-if="hasSandboxSelected && skillOptions.length === 0" class="setting-row">- <div class="setting-info">- <p class="desc empty-hint">{{ $t('agent.editor.noSkillsAvailable') }}</p>- </div>- </div></div></div>@@ -1750,6 +1739,7 @@ import PromptTemplateSelector from '@/components/PromptTemplateSelector.vue';import ModelSelector from '@/components/ModelSelector.vue';import KBParserSettings, { type ParserEngineRule } from '@/views/knowledge/settings/KBParserSettings.vue';import AgentShareSettings from '@/components/AgentShareSettings.vue';+import { SKILL_ICON } from '@/types/mention';import { listEmbedChannels } from '@/api/embed';import { getRootZoom, rectToCssPx } from '@/utils/zoom';import { integrationSectionKey } from '@/config/settingsRoute';@@ -2345,7 +2335,7 @@ const navItems = computed(() => {if (isAgentMode.value) {items.push({ key: 'tools', icon: 'tools', label: t('agent.editor.toolsConfig') });items.push({ key: 'mcp', icon: 'server', label: t('agentEditor.mcp.label') });- items.push({ key: 'skills', icon: 'lightbulb', label: t('agent.editor.skillsConfig') });+ items.push({ key: 'skills', icon: SKILL_ICON, label: t('agent.editor.skillsConfig') });}// 发布(仅编辑模式)if (editorMode.value === 'edit' && editorAgent.value?.id && !editorAgent.value?.is_builtin && !authStore.isLiteMode) {@@ -5018,6 +5008,37 @@ const handleSave = async () => {}}+.sandbox-select-control {+ flex-direction: column;+ align-items: flex-end;+}++.sandbox-config-select {+ width: 280px;+}++.sandbox-option {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ width: 100%;+ min-width: 0;+}++.sandbox-option__name {+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.sandbox-option__type {+ flex-shrink: 0;+ color: var(--td-text-color-placeholder);+ font-size: 12px;+}+// 名称输入框带头像预览.name-input-wrapper {display: flex;@@ -6095,6 +6116,13 @@ const handleSave = async () => {}}+.sandbox-config-select-popup {+ .t-select-option {+ height: auto;+ padding: 6px 10px;+ }+}+.agent-type-option {display: flex;flex-direction: column;diff --git a/frontend/src/views/chat/components/botmsg.vue b/frontend/src/views/chat/components/botmsg.vueindex 32c72e9cd..0f6584209 100644--- a/frontend/src/views/chat/components/botmsg.vue+++ b/frontend/src/views/chat/components/botmsg.vue@@ -130,6 +130,7 @@ import { refreshMarkdownEnhancements } from '@/utils/markdownEnhancements';import { useChatCitationPopover } from '@/composables/useChatCitationPopover';import { useTypewriter } from '@/composables/useTypewriter';import { vStableHtml } from '@/directives/stableHtml';+import { SKILL_ICON } from '@/types/mention';ensureMermaidInitialized();@@ -141,7 +142,7 @@ const mentionTagClass = (item) => {const mentionTagIcon = (item) => {if (item.type === 'tag') return 'tag';if (item.type === 'mcp') return 'tools';- if (item.type === 'skill') return 'bookmark';+ if (item.type === 'skill') return SKILL_ICON;return 'file';};diff --git a/frontend/src/views/chat/components/usermsg.vue b/frontend/src/views/chat/components/usermsg.vueindex 6dd0f2e44..c85c6e0e5 100644--- a/frontend/src/views/chat/components/usermsg.vue+++ b/frontend/src/views/chat/components/usermsg.vue@@ -53,6 +53,7 @@ import picturePreview from '@/components/picture-preview.vue';import { useI18n } from 'vue-i18n';import { useChatAttachmentPreviewDrawer } from '@/composables/useChatAttachmentPreviewDrawer';import { isPreviewableAttachment, resolveAttachmentFileType } from '@/utils/attachmentPreview';+import { SKILL_ICON } from '@/types/mention';const { t } = useI18n();@@ -64,7 +65,7 @@ const mentionTagClass = (item) => {const mentionTagIcon = (item) => {if (item.type === 'tag') return 'tag';if (item.type === 'mcp') return 'tools';- if (item.type === 'skill') return 'bookmark';+ if (item.type === 'skill') return SKILL_ICON;return 'file';};