diff --git a/README.md b/README.md index 888535ad..b0aff61d 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ | | | |---|---| -| **🗂️ File Management**
Lazy-loading tree, git status colors, live directory watch, global search, drag-and-drop upload, multi-select batch actions, dual-source "Open with" menu.
File tree with git colors
Context menu: Open with + Zip and download | **🌿 Changes**
Git lens + this-session AI-changes lens in one: hierarchical tree, stage / commit / history, unified diff rendering (intra-line highlights + syntax coloring).
Changes: hierarchical tree | +| **🗂️ File Management**
Lazy-loading tree, git status colors, live directory watch, global search, drag-and-drop upload, multi-select batch actions, dual-source "Open with" menu.
File tree with git colors
Context menu: Open with + Zip and download | **🌿 Git**
Git lens + this-session AI-changes lens in one: hierarchical tree, stage / commit / history, unified diff rendering (intra-line highlights + syntax coloring).
Git: hierarchical tree | | **📝 Editable Editor & Previews**
An editable CodeMirror (the stock preview is read-only), Markdown + Mermaid + floating outline, sandboxed HTML preview, `.jsonl` record cards, paged preview for huge files, streaming transfers with no size caps.
Markdown + Mermaid preview | **🧩 Tasks**
Live subagent topology (workflow graph / tree modes) + background task list: exit codes, live output, force-kill.
Tasks: subagent topology | | **💬 Side Chat (beta)**
Codex-style side threads: inherit the full parent context and run independently, realtime push, visible & revocable queue, per-thread model selection, one-click promotion to a top-level session.
Side Chat | **🖥️ Bottom Workbench**
A self-drawn bottom panel that coexists with the native right sidebar: drag-to-split panes, multiple terminal tabs, per-session persisted layout.
Dual workbench | diff --git a/README_ZH.md b/README_ZH.md index 5ef63303..865db951 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -22,7 +22,7 @@ | | | |---|---| -| **🗂️ 文件管理**
懒加载目录树、Git 变更着色、实时 watch 刷新、全局搜索、拖拽上传、多选批量操作、「打开方式」双源菜单。
文件树(Git 着色)
右键菜单:打开方式 + 打包下载 | **🌿 文件变动**
Git 视角 + 本轮 AI 改动视角合一:层级树、暂存 / 提交 / 历史、统一 diff 渲染(行内高亮 + 语法着色)。
文件变动:层级树 | +| **🗂️ 文件管理**
懒加载目录树、Git 变更着色、实时 watch 刷新、全局搜索、拖拽上传、多选批量操作、「打开方式」双源菜单。
文件树(Git 着色)
右键菜单:打开方式 + 打包下载 | **🌿 Git**
Git 视角 + 本轮 AI 改动视角合一:层级树、暂存 / 提交 / 历史、统一 diff 渲染(行内高亮 + 语法着色)。
Git:层级树 | | **📝 可编辑编辑器与预览**
可编辑的 CodeMirror(官方预览是只读)、Markdown + Mermaid + 浮动目录、HTML 沙箱预览、`.jsonl` 记录卡片、超大文件分页预览、传输无大小上限。
Markdown + Mermaid 预览 | **🧩 任务管理**
子代理拓扑实时预览(工作流图 / 树双模式)+ 后台任务清单:退出码、实时输出、强制终止。
任务页:子代理拓扑 | | **💬 侧边对话(beta)**
Codex 风格侧边线程:继承主会话完整上下文独立运行、实时推送、排队可见可撤回、每个线程独立选模型、一键提升为顶层会话。
侧边对话 | **🖥️ 底部工作台**
自绘底部面板与原生右侧栏同时展开:拖拽分栏、多终端页签、按会话持久化布局。
双工作台 | diff --git a/src/client/locales-ar.ts b/src/client/locales-ar.ts index 5d49a376..6b7132ca 100644 --- a/src/client/locales-ar.ts +++ b/src/client/locales-ar.ts @@ -234,7 +234,7 @@ export const ar: Record = { worktree: 'شجرة العمل', checkoutError: 'فشل تبديل الفرع', history: 'السجل', - changes: 'تغييرات الملفات', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'الجلسة', changesFilterAll: 'الكل', diff --git a/src/client/locales-de.ts b/src/client/locales-de.ts index bffbbe03..0a6dc38b 100644 --- a/src/client/locales-de.ts +++ b/src/client/locales-de.ts @@ -219,7 +219,7 @@ export const de: Record = { worktree: 'Worktree', checkoutError: 'Branchenwechsel fehlgeschlagen', history: 'Verlauf', - changes: 'Dateiänderungen', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Sitzung', changesFilterAll: 'Alle', diff --git a/src/client/locales-fr.ts b/src/client/locales-fr.ts index 8a2965be..48e7fa0f 100644 --- a/src/client/locales-fr.ts +++ b/src/client/locales-fr.ts @@ -226,7 +226,7 @@ export const fr: Record = { worktree: 'Arborescence de travail', checkoutError: 'Échec du changement de branche', history: 'Historique', - changes: 'Modifications', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Session', changesFilterAll: 'Tout', diff --git a/src/client/locales-hi.ts b/src/client/locales-hi.ts index b7ec789b..556b7c88 100644 --- a/src/client/locales-hi.ts +++ b/src/client/locales-hi.ts @@ -233,7 +233,7 @@ export const hi: Record = { worktree: 'वर्कट्री', checkoutError: 'ब्रांच स्विच विफल', history: 'इतिहास', - changes: 'फ़ाइल परिवर्तन', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'सेशन', changesFilterAll: 'सभी', diff --git a/src/client/locales-id.ts b/src/client/locales-id.ts index 570f3616..e83a8f60 100644 --- a/src/client/locales-id.ts +++ b/src/client/locales-id.ts @@ -231,7 +231,7 @@ export const id: Record = { worktree: 'Worktree', checkoutError: 'Beralih branch gagal', history: 'Riwayat', - changes: 'Perubahan berkas', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Sesi', changesFilterAll: 'Semua', diff --git a/src/client/locales-it.ts b/src/client/locales-it.ts index d0d96686..383cf4c8 100644 --- a/src/client/locales-it.ts +++ b/src/client/locales-it.ts @@ -224,7 +224,7 @@ export const it: Record = { worktree: 'Albero di lavoro', checkoutError: 'Cambio di ramo non riuscito', history: 'Cronologia', - changes: 'Modifiche', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Sessione', changesFilterAll: 'Tutti', diff --git a/src/client/locales-ja.ts b/src/client/locales-ja.ts index fb2ed832..23ad38eb 100644 --- a/src/client/locales-ja.ts +++ b/src/client/locales-ja.ts @@ -233,7 +233,7 @@ export const ja: Record = { worktree: 'ワークツリー', checkoutError: 'ブランチ切り替えに失敗', history: '履歴', - changes: 'ファイル変更', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'セッション', changesFilterAll: 'すべて', diff --git a/src/client/locales-ko.ts b/src/client/locales-ko.ts index e261b504..cc6922df 100644 --- a/src/client/locales-ko.ts +++ b/src/client/locales-ko.ts @@ -225,7 +225,7 @@ export const ko: Record = { worktree: '워크트리', checkoutError: '브랜치 전환 실패', history: '기록', - changes: '파일 변경', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: '세션', changesFilterAll: '모두', diff --git a/src/client/locales-nl.ts b/src/client/locales-nl.ts index 456f232e..e1204957 100644 --- a/src/client/locales-nl.ts +++ b/src/client/locales-nl.ts @@ -231,7 +231,7 @@ export const nl: Record = { worktree: 'Worktree', checkoutError: 'Wisselen van branch mislukt', history: 'Geschiedenis', - changes: 'Bestandswijzigingen', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Sessie', changesFilterAll: 'Alles', diff --git a/src/client/locales-pl.ts b/src/client/locales-pl.ts index 144400ed..dddab832 100644 --- a/src/client/locales-pl.ts +++ b/src/client/locales-pl.ts @@ -235,7 +235,7 @@ export const pl: Record = { worktree: 'Drzewo robocze', checkoutError: 'Przełączenie gałęzi nie powiodło się', history: 'Historia', - changes: 'Zmiany plików', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Sesja', changesFilterAll: 'Wszystko', diff --git a/src/client/locales-pt.ts b/src/client/locales-pt.ts index 38553497..c2bdb13d 100644 --- a/src/client/locales-pt.ts +++ b/src/client/locales-pt.ts @@ -216,7 +216,7 @@ export const pt: Record = { worktree: 'Worktree', checkoutError: 'Falha ao alternar de branch', history: 'Histórico', - changes: 'Alterações', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Sessão', changesFilterAll: 'Tudo', diff --git a/src/client/locales-ru.ts b/src/client/locales-ru.ts index 3e90ad71..5d1d8bf7 100644 --- a/src/client/locales-ru.ts +++ b/src/client/locales-ru.ts @@ -229,7 +229,7 @@ export const ru: Record = { worktree: 'Рабочее дерево', checkoutError: 'Сбой переключения ветки', history: 'История', - changes: 'Изменения файлов', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Сессия', changesFilterAll: 'Все', diff --git a/src/client/locales-sv.ts b/src/client/locales-sv.ts index 8ac41c05..ccfe3365 100644 --- a/src/client/locales-sv.ts +++ b/src/client/locales-sv.ts @@ -216,7 +216,7 @@ export const sv: Record = { worktree: 'Arbetsträd', checkoutError: 'Grenbyte misslyckades', history: 'Historik', - changes: 'Filändringar', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Session', changesFilterAll: 'Alla', diff --git a/src/client/locales-th.ts b/src/client/locales-th.ts index 045ac476..ecad7806 100644 --- a/src/client/locales-th.ts +++ b/src/client/locales-th.ts @@ -233,7 +233,7 @@ export const th: Record = { worktree: 'เวิร์กทรี', checkoutError: 'สลับ branch ล้มเหลว', history: 'ประวัติ', - changes: 'การเปลี่ยนแปลงไฟล์', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'เซสชัน', changesFilterAll: 'ทั้งหมด', diff --git a/src/client/locales-tr.ts b/src/client/locales-tr.ts index 1a6c8343..3742f297 100644 --- a/src/client/locales-tr.ts +++ b/src/client/locales-tr.ts @@ -233,7 +233,7 @@ export const tr: Record = { worktree: 'Çalışma ağacı', checkoutError: 'Dal değiştirme başarısız', history: 'Geçmiş', - changes: 'Dosya değişiklikleri', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Oturum', changesFilterAll: 'Tümü', diff --git a/src/client/locales-vi.ts b/src/client/locales-vi.ts index 4e590dd2..7416bf45 100644 --- a/src/client/locales-vi.ts +++ b/src/client/locales-vi.ts @@ -233,7 +233,7 @@ export const vi: Record = { worktree: 'Worktree', checkoutError: 'Chuyển branch thất bại', history: 'Lịch sử', - changes: 'Thay đổi tệp', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Phiên', changesFilterAll: 'Tất cả', diff --git a/src/client/locales-zh-HK.ts b/src/client/locales-zh-HK.ts index a6c299ac..5202c1d9 100644 --- a/src/client/locales-zh-HK.ts +++ b/src/client/locales-zh-HK.ts @@ -248,7 +248,7 @@ export const zhHK: Record = { worktree: '工作樹', checkoutError: '切換分支失敗', history: '歷史', - changes: '檔案變動', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: '本輪檔案', changesFilterAll: '全部', diff --git a/src/client/locales-zh-MO.ts b/src/client/locales-zh-MO.ts index 3cff37f7..cc40ca0b 100644 --- a/src/client/locales-zh-MO.ts +++ b/src/client/locales-zh-MO.ts @@ -248,7 +248,7 @@ export const zhMO: Record = { worktree: '工作樹', checkoutError: '切換分支失敗', history: '歷史', - changes: '檔案變動', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: '本輪檔案', changesFilterAll: '全部', diff --git a/src/client/locales-zh-TW.ts b/src/client/locales-zh-TW.ts index 453c7505..f9e57efb 100644 --- a/src/client/locales-zh-TW.ts +++ b/src/client/locales-zh-TW.ts @@ -248,7 +248,7 @@ export const zhTW: Record = { worktree: '工作樹', checkoutError: '切換分支失敗', history: '歷史', - changes: '檔案變動', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: '本輪檔案', changesFilterAll: '全部', diff --git a/src/client/locales.ts b/src/client/locales.ts index 89b3f726..a1ecb9cf 100644 --- a/src/client/locales.ts +++ b/src/client/locales.ts @@ -244,7 +244,7 @@ export const zh = { worktree: '工作树', checkoutError: '切换分支失败', history: '历史', - changes: '文件变动', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: '本轮文件', changesFilterAll: '全部', @@ -846,7 +846,7 @@ export const en: Record = { worktree: 'Worktree', checkoutError: 'Branch switch failed', history: 'History', - changes: 'Changes', + changes: 'Git', changesGitLens: 'Git', changesSessionLens: 'Session', changesFilterAll: 'All', diff --git a/tests/builtins.spec.ts b/tests/builtins.spec.ts index cf9fb8b7..63bf3105 100644 --- a/tests/builtins.spec.ts +++ b/tests/builtins.spec.ts @@ -65,6 +65,7 @@ describe('built-in tab registrations', () => { it('the git (changes) tab is a single-instance badge-carrying visible tab', () => { const { service } = setup() const changes = service.getTab('git') + expect(typeof changes?.title === 'function' ? changes.title() : changes?.title).toBe('Git') expect(changes?.single).toBe(true) expect(changes?.hidden).not.toBe(true) expect(changes?.badge).toBeDefined() diff --git a/tests/e2e/tree-scroll.e2e.ts b/tests/e2e/tree-scroll.e2e.ts index 0b2e4198..f531e67d 100644 --- a/tests/e2e/tree-scroll.e2e.ts +++ b/tests/e2e/tree-scroll.e2e.ts @@ -409,8 +409,11 @@ test('the explorer keeps its state across a tab switch and a conversation round // changes window) — asserted by the strip below, since the ACTIVE tab is // whichever the lane last showed. // The changes tab is where the unsaved message lives: it is the other claim - // `keepMounted` makes on #712's behalf. - const changesTab = page.locator('[data-sidebar-right-panel]:visible [role="tab"]').filter({ hasText: /Changes|文件变动/ }) + // `keepMounted` makes on #712's behalf. Matched through the host's tab STRIP, + // not by text alone: the title is a language-neutral "Git" and the tab's own + // lens switcher carries that same word, so an unscoped text filter would + // count two elements. + const changesTab = page.locator('[data-sidebar-right-panel]:visible [data-dockkit-strip] [role="tab"]').filter({ hasText: /Git/ }) await expect(changesTab, 'the changes tab survives the round trip').toHaveCount(1, { timeout: 30_000 }) await changesTab.first().click() const backCommitBox = page.locator('[data-sidebar-right-panel]:visible') diff --git a/tests/locales.spec.ts b/tests/locales.spec.ts index 258ef3ed..95f0db55 100644 --- a/tests/locales.spec.ts +++ b/tests/locales.spec.ts @@ -62,13 +62,13 @@ describe('locales (DSH i18n following)', () => { attachLocale(locale) locale.switchTo('zh') - expect(t('changes')).toBe('文件变动') + expect(t('explorer')).toBe('资源管理器') expect(isZh()).toBe(true) // Live switch: the service's active locale wins even though the // browser still asks for en-US. locale.switchTo('en') - expect(t('changes')).toBe('Changes') + expect(t('explorer')).toBe('Explorer') expect(isZh()).toBe(false) }) @@ -105,6 +105,14 @@ describe('locales (DSH i18n following)', () => { expect(LOCALE_NS).toBe('betterSidebar') }) + it('names the existing changes entry Git in every shipped locale', () => { + // Keep the translation key (and the git tab id) stable: this is display + // copy only. Check raw dictionaries so English fallback cannot hide a miss. + for (const [lang, dict] of Object.entries({ zh, en, ...localeDicts })) { + expect(dict.changes, lang).toBe('Git') + } + }) + it('keeps the zh and en dictionaries key-set-equal', () => { expect(Object.keys(en).sort()).toEqual(Object.keys(zh).sort()) }) @@ -219,7 +227,7 @@ describe('locales (better-locale override)', () => { attachBetterLocale(betterLocale) // 'changes' has no ja entry in this fake; should fall back to the en text. - expect(t('changes')).toBe('Changes') + expect(t('changes')).toBe('Git') }) it('falls back to the zh/en chain when no override is active', () => {