Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(ai): support collapsing and expanding selected skill chips (#12864)

lxk955c344e14c8349
diff --git a/apps/desktop/src/components/editor/AiAssistant.vue b/apps/desktop/src/components/editor/AiAssistant.vue
index 1373320f24..07d7c0d4fa 100644
--- a/apps/desktop/src/components/editor/AiAssistant.vue
+++ b/apps/desktop/src/components/editor/AiAssistant.vue
@@ -54,8 +54,10 @@ import {
Bot,
Camera,
Check,
+ ChevronDown,
ChevronLeft,
ChevronRight,
+ ChevronUp,
Clock,
Hourglass,
CircleSlash,
@@ -1043,6 +1045,17 @@ watch([skillStateKey, () => selectedSkillChips.value.map((chip) => chip.id).join
conversationSkillHintSeen.add(key);
skillHintLatch.value = { key, id: chips[0].id, name: chips[0].name };
});
+const selectedSkillsCollapsed = ref(false);
+const loadedSelectedSkillsCount = computed(() => selectedSkillChips.value.filter((chip) => chip.loaded).length);
+
+watch(
+ () => selectedSkillChips.value.length,
+ (len) => {
+ if (len === 0) {
+ selectedSkillsCollapsed.value = false;
+ }
+ },
+);
// Minting the unsaved chat's id on its first send (or when queueing) is not a
// conversation switch: move the unsaved chat's skill state onto the id it just
// adopted, or the brand-new id would read as a fresh conversation (Req 14) and
@@ -7509,31 +7522,62 @@ async function openExternalUrl(url: string) {
<!-- Req 13: a chip has two states (idle / loaded in this conversation)
and clicking its body force-loads the skill. Removal therefore needs
its own control — one button cannot both load and remove. -->
- <div v-if="selectedSkillChips.length" class="mb-1.5 flex flex-wrap gap-1">
- <span v-for="chip in selectedSkillChips" :key="chip.id" class="inline-flex max-w-full items-center rounded border bg-muted/60 text-[11px] text-foreground/90" :class="chip.unavailable ? 'border-destructive/50 text-destructive' : chip.loaded ? 'border-emerald-500/60' : 'border-border/80'">
+ <div v-if="selectedSkillChips.length" class="mb-1.5 flex flex-wrap items-center gap-1">
+ <template v-if="selectedSkillsCollapsed">
<button
type="button"
- class="ai-skill-chip flex min-w-0 items-center gap-1 py-0.5 pl-1.5 pr-1 hover:bg-muted disabled:cursor-not-allowed"
- :disabled="skillCapabilityUnavailable || chip.loaded"
- :title="chip.loaded ? t('ai.skillsLoadedState') : skillCapabilityUnavailable ? t('ai.skillsUnsupportedForCliProvider') : t('ai.skillsPreload')"
- @click="preloadSkill(chip.id)"
+ class="ai-skills-expand-toggle inline-flex max-w-full items-center gap-1.5 rounded border border-border/80 bg-muted/60 px-2 py-0.5 text-[11px] text-foreground/90 hover:bg-muted"
+ :title="t('ai.skillsExpand')"
+ :aria-label="t('ai.skillsExpand')"
+ @click="selectedSkillsCollapsed = false"
>
- <Loader2 v-if="skillPreloadPending.includes(chip.id)" class="h-3 w-3 shrink-0 animate-spin" />
- <Check v-else-if="chip.loaded" class="h-3 w-3 shrink-0 text-emerald-600 dark:text-emerald-400" />
- <AlertTriangle v-else-if="chip.unavailable" class="h-3 w-3 shrink-0" />
- <Layers v-else class="h-3 w-3 shrink-0 text-primary" />
- <span class="truncate" :title="chip.description || chip.name">{{ chip.name }}</span>
- <span class="shrink-0 text-[9px] text-muted-foreground">{{ t(chip.source === "custom" ? "ai.skillsGroupCustom" : "ai.skillsGroupDefault") }}</span>
- <span v-if="chip.loaded" class="shrink-0 text-[9px] font-medium text-emerald-600 dark:text-emerald-400">{{ t("ai.skillsLoadedState") }}</span>
+ <Layers class="h-3 w-3 shrink-0 text-primary" />
+ <span class="truncate font-medium">{{ t("ai.skillsSelectedCount", { count: selectedSkillChips.length }) }}</span>
+ <span v-if="loadedSelectedSkillsCount > 0" class="shrink-0 text-[9px] font-medium text-emerald-600 dark:text-emerald-400"> ({{ loadedSelectedSkillsCount }}/{{ selectedSkillChips.length }} {{ t("ai.skillsLoadedState") }}) </span>
+ <ChevronDown class="h-3 w-3 shrink-0 text-muted-foreground" />
</button>
- <button type="button" class="ai-skill-chip-remove shrink-0 py-0.5 pl-0.5 pr-1.5 hover:text-destructive" :aria-label="t('common.remove')" :title="t('common.remove')" @click="removeSelectedSkill(chip.id)">
- <X class="h-3 w-3 shrink-0" />
+ </template>
+ <template v-else>
+ <span
+ v-for="chip in selectedSkillChips"
+ :key="chip.id"
+ class="inline-flex max-w-full items-center rounded border bg-muted/60 text-[11px] text-foreground/90"
+ :class="chip.unavailable ? 'border-destructive/50 text-destructive' : chip.loaded ? 'border-emerald-500/60' : 'border-border/80'"
+ >
+ <button
+ type="button"
+ class="ai-skill-chip flex min-w-0 items-center gap-1 py-0.5 pl-1.5 pr-1 hover:bg-muted disabled:cursor-not-allowed"
+ :disabled="skillCapabilityUnavailable || chip.loaded"
+ :title="chip.loaded ? t('ai.skillsLoadedState') : skillCapabilityUnavailable ? t('ai.skillsUnsupportedForCliProvider') : t('ai.skillsPreload')"
+ @click="preloadSkill(chip.id)"
+ >
+ <Loader2 v-if="skillPreloadPending.includes(chip.id)" class="h-3 w-3 shrink-0 animate-spin" />
+ <Check v-else-if="chip.loaded" class="h-3 w-3 shrink-0 text-emerald-600 dark:text-emerald-400" />
+ <AlertTriangle v-else-if="chip.unavailable" class="h-3 w-3 shrink-0" />
+ <Layers v-else class="h-3 w-3 shrink-0 text-primary" />
+ <span class="truncate" :title="chip.description || chip.name">{{ chip.name }}</span>
+ <span class="shrink-0 text-[9px] text-muted-foreground">{{ t(chip.source === "custom" ? "ai.skillsGroupCustom" : "ai.skillsGroupDefault") }}</span>
+ <span v-if="chip.loaded" class="shrink-0 text-[9px] font-medium text-emerald-600 dark:text-emerald-400">{{ t("ai.skillsLoadedState") }}</span>
+ </button>
+ <button type="button" class="ai-skill-chip-remove shrink-0 py-0.5 pl-0.5 pr-1.5 hover:text-destructive" :aria-label="t('common.remove')" :title="t('common.remove')" @click="removeSelectedSkill(chip.id)">
+ <X class="h-3 w-3 shrink-0" />
+ </button>
+ </span>
+ <button
+ type="button"
+ class="ai-skills-collapse-toggle inline-flex items-center gap-1 rounded border border-border/80 bg-muted/60 px-1.5 py-0.5 text-[11px] text-muted-foreground hover:bg-muted hover:text-foreground"
+ :title="t('ai.skillsCollapse')"
+ :aria-label="t('ai.skillsCollapse')"
+ @click="selectedSkillsCollapsed = true"
+ >
+ <ChevronUp class="h-3 w-3 shrink-0" />
+ <span>{{ t("ai.skillsCollapse") }}</span>
</button>
- </span>
+ </template>
</div>
<!-- Req 14: one one-time hint per conversation while nothing selected has
been loaded yet. Clicking it is the same force-load as the chip. -->
- <div v-if="showSkillHint" class="mb-1.5">
+ <div v-if="showSkillHint && !selectedSkillsCollapsed" class="mb-1.5">
<button type="button" class="ai-skill-hint inline-flex max-w-full items-center gap-1 rounded border border-primary/40 bg-primary/5 px-1.5 py-0.5 text-left text-[11px] text-primary hover:bg-primary/10" :title="t('ai.skillsPreload')" @click="preloadHintedSkill">
<Sparkles class="h-3 w-3 shrink-0" />
<span class="truncate">{{ skillHintText }}</span>
diff --git a/apps/desktop/src/components/editor/__tests__/AiAssistant.mount.spec.ts b/apps/desktop/src/components/editor/__tests__/AiAssistant.mount.spec.ts
index d8486e06c6..73b205312e 100644
--- a/apps/desktop/src/components/editor/__tests__/AiAssistant.mount.spec.ts
+++ b/apps/desktop/src/components/editor/__tests__/AiAssistant.mount.spec.ts
@@ -1859,4 +1859,56 @@ describe("AiAssistant mount", () => {
expect(popover.querySelector(".ai-skill-duplicate-note")).toBeNull();
expect(errors.map(String)).toEqual([]);
});
+
+ it("supports collapsing and expanding selected skill chips to conserve composer space", async () => {
+ configureSkillCatalog();
+ const { errors, container } = await mountPanel(true, POSTGRES, configureAiPanel);
+
+ await selectSkill(container);
+ expect(container.querySelectorAll(".ai-skill-chip").length).toBe(1);
+ const collapseButton = container.querySelector<HTMLButtonElement>(".ai-skills-collapse-toggle");
+ expect(collapseButton).not.toBeNull();
+ expect(collapseButton?.textContent).toContain(i18n.global.t("ai.skillsCollapse"));
+ expect(container.querySelector(".ai-skills-expand-toggle")).toBeNull();
+
+ // Collapse
+ collapseButton!.click();
+ await settle();
+
+ expect(container.querySelectorAll(".ai-skill-chip").length).toBe(0);
+ expect(container.querySelector(".ai-skills-collapse-toggle")).toBeNull();
+ const expandButton = container.querySelector<HTMLButtonElement>(".ai-skills-expand-toggle");
+ expect(expandButton).not.toBeNull();
+ expect(expandButton?.textContent).toContain(i18n.global.t("ai.skillsSelectedCount", { count: 1 }));
+
+ // Expand
+ expandButton!.click();
+ await settle();
+
+ expect(container.querySelectorAll(".ai-skill-chip").length).toBe(1);
+ expect(container.querySelector(".ai-skills-collapse-toggle")).not.toBeNull();
+ expect(container.querySelector(".ai-skills-expand-toggle")).toBeNull();
+ expect(errors.map(String)).toEqual([]);
+ });
+
+ it("displays loaded status in collapsed expand button when skills are loaded", async () => {
+ configureSkillCatalog();
+ configureSkillRead();
+ const { errors, container } = await mountPanel(true, POSTGRES, configureAiPanel);
+
+ await selectSkill(container);
+ skillChip(container)!.click();
+ await settle();
+ expect(skillChip(container)!.textContent).toContain(i18n.global.t("ai.skillsLoadedState"));
+
+ // Collapse
+ container.querySelector<HTMLButtonElement>(".ai-skills-collapse-toggle")!.click();
+ await settle();
+
+ const expandButton = container.querySelector<HTMLButtonElement>(".ai-skills-expand-toggle");
+ expect(expandButton).not.toBeNull();
+ expect(expandButton?.textContent).toContain(i18n.global.t("ai.skillsLoadedState"));
+
+ expect(errors.map(String)).toEqual([]);
+ });
});
diff --git a/apps/desktop/src/i18n/locales/az.ts b/apps/desktop/src/i18n/locales/az.ts
index 845fd87303..63ed734b6d 100644
--- a/apps/desktop/src/i18n/locales/az.ts
+++ b/apps/desktop/src/i18n/locales/az.ts
@@ -3528,6 +3528,9 @@ export default withEnglishFallback({
skillsLoadedState: "Yükləndi",
skillsPreloadHint: "Seçdiyiniz «{name}» skili bu söhbətdə hələ istifadə edilməyib · İndi yükləmək üçün klikləyin",
skillsPreloadFailed: "Skill yüklənə bilmədi",
+ skillsCollapse: "Seçilmiş skill-ləri yığışdır",
+ skillsExpand: "Seçilmiş skill-ləri genişləndir",
+ skillsSelectedCount: "{count} skill seçildi",
templateSelectorEmpty: "Şablon yoxdur. Əlavə etmək üçün İdarə et düyməsinə klikləyin.",
templateSelectorTooLong: "Seçilmiş şablonlar ümumi məzmun limitini ({max} simvol) aşır. Davam etmək üçün bəzilərinin seçimini ləğv edin.",
templateSetDefault: "Standart olaraq təyin et",
diff --git a/apps/desktop/src/i18n/locales/en.ts b/apps/desktop/src/i18n/locales/en.ts
index b46414ce1d..1137e90fde 100644
--- a/apps/desktop/src/i18n/locales/en.ts
+++ b/apps/desktop/src/i18n/locales/en.ts
@@ -4445,6 +4445,9 @@ export default {
skillsLoadedState: "Loaded",
skillsPreloadHint: "The skill “{name}” you selected has not been used in this conversation · Click to load it now",
skillsPreloadFailed: "Could not load the skill",
+ skillsCollapse: "Collapse selected skills",
+ skillsExpand: "Expand selected skills",
+ skillsSelectedCount: "{count} skills selected",
templateSelectorEmpty: "No templates. Click Manage to add.",
templateSelectorTooLong: "Selected templates exceed the total content limit ({max} characters). Deselect some to continue.",
templateSetDefault: "Set as default",
diff --git a/apps/desktop/src/i18n/locales/es.ts b/apps/desktop/src/i18n/locales/es.ts
index 5068e10368..7e0550580e 100644
--- a/apps/desktop/src/i18n/locales/es.ts
+++ b/apps/desktop/src/i18n/locales/es.ts
@@ -4074,6 +4074,9 @@ export default withEnglishFallback({
skillsLoadedState: "Cargada",
skillsPreloadHint: "La skill «{name}» que seleccionaste aún no se ha usado en esta conversación · Haz clic para cargarla ahora",
skillsPreloadFailed: "No se pudo cargar la skill",
+ skillsCollapse: "Contraer skills seleccionadas",
+ skillsExpand: "Expandir skills seleccionadas",
+ skillsSelectedCount: "{count} skills seleccionadas",
templateSelectorEmpty: "Sin plantillas. Haz clic en Gestionar para añadir.",
templateSelectorTooLong: "Las plantillas seleccionadas superan el límite total de contenido ({max} caracteres). Deselecciona algunas para continuar.",
templateSetDefault: "Establecer como predeterminada",
diff --git a/apps/desktop/src/i18n/locales/id.ts b/apps/desktop/src/i18n/locales/id.ts
index 150a48dfa2..3496638ce4 100644
--- a/apps/desktop/src/i18n/locales/id.ts
+++ b/apps/desktop/src/i18n/locales/id.ts
@@ -3846,6 +3846,9 @@ export default withEnglishFallback({
skillsReasonInvalidFrontmatter: "Frontmatter SKILL.md tidak memiliki name/description atau tidak valid",
skillsReasonUnreadable: "SKILL.md tidak dapat dibaca",
skillsTotalTrimmed: "Beberapa skill yang dipilih melebihi batas konten gabungan ({max} karakter) dan dilewati untuk pengiriman ini.",
+ skillsCollapse: "Ciutkan skill yang dipilih",
+ skillsExpand: "Perluas skill yang dipilih",
+ skillsSelectedCount: "{count} skill dipilih",
templateSelectorEmpty: "Tidak ada template. Klik Kelola untuk menambahkan.",
templateSelectorTooLong: "Template yang dipilih melebihi batas total konten ({max} karakter). Batalkan pilihan beberapa untuk melanjutkan.",
templateSetDefault: "Jadikan default",
diff --git a/apps/desktop/src/i18n/locales/it.ts b/apps/desktop/src/i18n/locales/it.ts
index f378cd15cc..7c1a2af660 100644
--- a/apps/desktop/src/i18n/locales/it.ts
+++ b/apps/desktop/src/i18n/locales/it.ts
@@ -3832,6 +3832,9 @@ export default withEnglishFallback({
skillsLoadedState: "Caricata",
skillsPreloadHint: "La skill «{name}» che hai selezionato non è ancora stata usata in questa conversazione · Fai clic per caricarla ora",
skillsPreloadFailed: "Impossibile caricare la skill",
+ skillsCollapse: "Comprimi skill selezionate",
+ skillsExpand: "Espandi skill selezionate",
+ skillsSelectedCount: "{count} skill selezionate",
templateSelectorEmpty: "Nessun modello. Clicca Gestisci per aggiungerne.",
templateSelectorTooLong: "I modelli selezionati superano il limite totale di contenuto ({max} caratteri). Deseleziona alcuni per continuare.",
templateSetDefault: "Imposta come predefinito",
diff --git a/apps/desktop/src/i18n/locales/ja.ts b/apps/desktop/src/i18n/locales/ja.ts
index d3d8f73836..771438509d 100644
--- a/apps/desktop/src/i18n/locales/ja.ts
+++ b/apps/desktop/src/i18n/locales/ja.ts
@@ -3953,6 +3953,9 @@ export default withEnglishFallback({
skillsLoadedState: "読み込み済み",
skillsPreloadHint: "選択した Skill「{name}」はこの会話でまだ使用されていません · クリックして今すぐ読み込む",
skillsPreloadFailed: "Skill を読み込めませんでした",
+ skillsCollapse: "選択した Skill を折りたたむ",
+ skillsExpand: "選択した Skill を展開",
+ skillsSelectedCount: "{count} 個の Skill を選択中",
templateSelectorEmpty: "テンプレートがありません。「管理」をクリックして追加してください。",
templateSelectorTooLong: "選択されたテンプレートの合計が上限({max}文字)を超えています。選択を解除してください。",
templateSetDefault: "デフォルトに設定",
diff --git a/apps/desktop/src/i18n/locales/ko.ts b/apps/desktop/src/i18n/locales/ko.ts
index 12232b8679..4b940a0828 100644
--- a/apps/desktop/src/i18n/locales/ko.ts
+++ b/apps/desktop/src/i18n/locales/ko.ts
@@ -3992,6 +3992,9 @@ export default withEnglishFallback({
skillsLoadedState: "불러옴",
skillsPreloadHint: "선택한 Skill 「{name}」은(는) 이 대화에서 아직 사용되지 않았습니다 · 클릭하여 지금 불러오기",
skillsPreloadFailed: "Skill 을(를) 불러올 수 없습니다",
+ skillsCollapse: "선택한 Skill 접기",
+ skillsExpand: "선택한 Skill 펼치기",
+ skillsSelectedCount: "{count}개 Skill 선택됨",
templateSelectorEmpty: "템플릿이 없습니다. 추가하려면 관리를 클릭하세요.",
templateSelectorTooLong: "선택한 템플릿이 전체 내용 한도를 초과합니다 ({max}자). 계속하려면 일부를 선택 해제하세요.",
templateSetDefault: "기본값으로 설정",
diff --git a/apps/desktop/src/i18n/locales/pl.ts b/apps/desktop/src/i18n/locales/pl.ts
index 4619832cd1..7c9eed1fe0 100644
--- a/apps/desktop/src/i18n/locales/pl.ts
+++ b/apps/desktop/src/i18n/locales/pl.ts
@@ -3915,6 +3915,9 @@ export default withEnglishFallback({
skillsLoadedState: "Załadowana",
skillsPreloadHint: "Wybrana umiejętność „{name}” nie była jeszcze używana w tej rozmowie · Kliknij, aby ją wczytać",
skillsPreloadFailed: "Nie udało się wczytać umiejętności",
+ skillsCollapse: "Zwiń wybrane umiejętności",
+ skillsExpand: "Rozwiń wybrane umiejętności",
+ skillsSelectedCount: "Wybrano {count} umiejętności",
templateSelectorEmpty: "Brak szablonów. Kliknij Zarządzaj, aby dodać.",
templateSelectorTooLong: "Wybrane szablony przekraczają łączny limit treści ({max} znaków). Odznacz część, aby kontynuować.",
templateSetDefault: "Ustaw jako domyślny",
diff --git a/apps/desktop/src/i18n/locales/pt-BR.ts b/apps/desktop/src/i18n/locales/pt-BR.ts
index f70bd25eac..66614f5c64 100644
--- a/apps/desktop/src/i18n/locales/pt-BR.ts
+++ b/apps/desktop/src/i18n/locales/pt-BR.ts
@@ -3920,6 +3920,9 @@ export default withEnglishFallback({
skillsLoadedState: "Carregada",
skillsPreloadHint: "A skill “{name}” que você selecionou ainda não foi usada nesta conversa · Clique para carregá-la agora",
skillsPreloadFailed: "Não foi possível carregar a skill",
+ skillsCollapse: "Recolher skills selecionadas",
+ skillsExpand: "Expandir skills selecionadas",
+ skillsSelectedCount: "{count} skills selecionadas",
templateSelectorEmpty: "Nenhum modelo. Clique em Gerenciar para adicionar.",
templateSelectorTooLong: "Os modelos selecionados excedem o limite total de conteúdo ({max} caracteres). Desmarque alguns para continuar.",
templateSetDefault: "Definir como padrão",
diff --git a/apps/desktop/src/i18n/locales/ru.ts b/apps/desktop/src/i18n/locales/ru.ts
index 157c85050b..d43bff9249 100644
--- a/apps/desktop/src/i18n/locales/ru.ts
+++ b/apps/desktop/src/i18n/locales/ru.ts
@@ -4157,6 +4157,9 @@ export default withEnglishFallback({
skillsLoadedState: "Загружен",
skillsPreloadHint: "Выбранный навык «{name}» ещё не использовался в этом диалоге · Нажмите, чтобы загрузить его сейчас",
skillsPreloadFailed: "Не удалось загрузить навык",
+ skillsCollapse: "Свернуть выбранные навыки",
+ skillsExpand: "Развернуть выбранные навыки",
+ skillsSelectedCount: "Выбрано навыков: {count}",
templateSelectorEmpty: "Шаблонов нет. Нажмите «Управление», чтобы добавить.",
templateSelectorTooLong: "Выбранные шаблоны превышают общий лимит содержимого ({max} символов). Снимите выделение с некоторых, чтобы продолжить.",
templateSetDefault: "Сделать по умолчанию",
diff --git a/apps/desktop/src/i18n/locales/th.ts b/apps/desktop/src/i18n/locales/th.ts
index dd01354b18..c5e9f34fcc 100644
--- a/apps/desktop/src/i18n/locales/th.ts
+++ b/apps/desktop/src/i18n/locales/th.ts
@@ -4356,6 +4356,9 @@ export default withEnglishFallback({
skillsLoadedState: "โหลดแล้ว",
skillsPreloadHint: "Skill “{name}” ที่คุณเลือกยังไม่ได้ใช้ในการสนทนานี้ · คลิกเพื่อโหลดตอนนี้",
skillsPreloadFailed: "โหลด Skill ไม่ได้",
+ skillsCollapse: "ยุบ Skill ที่เลือก",
+ skillsExpand: "ขยาย Skill ที่เลือก",
+ skillsSelectedCount: "เลือกแล้ว {count} Skill",
templateSelectorEmpty: "ไม่มี Template คลิก Manage เพื่อเพิ่ม",
templateSelectorTooLong: "Template ที่เลือกมีเนื้อหารวมเกินขีดจำกัด ({max} ตัวอักษร) ยกเลิกการเลือกบางรายการเพื่อดำเนินการต่อ",
templateSetDefault: "ตั้งเป็นค่าเริ่มต้น",
diff --git a/apps/desktop/src/i18n/locales/tr.ts b/apps/desktop/src/i18n/locales/tr.ts
index 278a4a83b4..05491a2edb 100644
--- a/apps/desktop/src/i18n/locales/tr.ts
+++ b/apps/desktop/src/i18n/locales/tr.ts
@@ -3498,6 +3498,9 @@ export default withEnglishFallback({
skillsLoadedState: "Yüklendi",
skillsPreloadHint: "Seçtiğiniz «{name}» skill'i bu sohbette henüz kullanılmadı · Şimdi yüklemek için tıklayın",
skillsPreloadFailed: "Skill yüklenemedi",
+ skillsCollapse: "Seçili skill'leri daralt",
+ skillsExpand: "Seçili skill'leri genişlet",
+ skillsSelectedCount: "{count} skill seçildi",
templateSelectorEmpty: "Şablon yok. Eklemek için Yönet'e tıklayın.",
templateSelectorTooLong: "Seçili şablonlar toplam içerik sınırını aşıyor ({max} karakter). Devam etmek için bazılarının seçimini kaldırın.",
templateSetDefault: "Varsayılan yap",
diff --git a/apps/desktop/src/i18n/locales/zh-CN.ts b/apps/desktop/src/i18n/locales/zh-CN.ts
index 98c77428ec..dd89785be5 100644
--- a/apps/desktop/src/i18n/locales/zh-CN.ts
+++ b/apps/desktop/src/i18n/locales/zh-CN.ts
@@ -4373,6 +4373,9 @@ export default withEnglishFallback({
skillsLoadedState: "已加载",
skillsPreloadHint: "你选择的 Skill「{name}」本次对话尚未被 AI 使用 · 点此立即加载",
skillsPreloadFailed: "无法加载该 Skill",
+ skillsCollapse: "收起已选 Skill",
+ skillsExpand: "展开已选 Skill",
+ skillsSelectedCount: "已选 {count} 个 Skill",
templateSelectorEmpty: "暂无模板,请点击管理添加。",
templateSelectorTooLong: "已选模板内容合计超过限制(最多 {max} 字符),请取消部分勾选。",
templateSetDefault: "设为默认",
diff --git a/apps/desktop/src/i18n/locales/zh-TW.ts b/apps/desktop/src/i18n/locales/zh-TW.ts
index 50217daba0..56cce15983 100644
--- a/apps/desktop/src/i18n/locales/zh-TW.ts
+++ b/apps/desktop/src/i18n/locales/zh-TW.ts
@@ -3831,6 +3831,9 @@ export default withEnglishFallback({
skillsLoadedState: "已載入",
skillsPreloadHint: "你選擇的 Skill「{name}」本次對話尚未被 AI 使用 · 點此立即載入",
skillsPreloadFailed: "無法載入該 Skill",
+ skillsCollapse: "收起已選 Skill",
+ skillsExpand: "展開已選 Skill",
+ skillsSelectedCount: "已選 {count} 個 Skill",
templateSelectorEmpty: "尚無範本,請點擊管理以新增。",
templateSelectorTooLong: "已選範本內容合計超過限制(最多 {max} 字元),請取消部分選取。",
templateSetDefault: "設為預設",