Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(desktop): 修正启动时侧栏对话加载空态 (#468)

Dash7e717c5c40cc
diff --git a/apps/desktop/src/renderer/__tests__/deviceLinkDeviceListLoading.test.tsx b/apps/desktop/src/renderer/__tests__/deviceLinkDeviceListLoading.test.tsx
new file mode 100644
index 0000000000..d510007437
--- /dev/null
+++ b/apps/desktop/src/renderer/__tests__/deviceLinkDeviceListLoading.test.tsx
@@ -0,0 +1,36 @@
+// @vitest-environment jsdom
+
+import { renderHook, waitFor } from '@testing-library/react';
+import { afterEach, describe, expect, it, vi } from 'vitest';
+
+afterEach(() => {
+ vi.unstubAllGlobals();
+});
+
+describe('useDeviceLinkDeviceList initial request', () => {
+ it('marks a rejected initial device-list request as settled without fabricating an empty list', async () => {
+ const listDevices = vi.fn().mockRejectedValue(new Error('relay unavailable'));
+ vi.stubGlobal('electronAPI', {
+ deviceLink: {
+ listDevices,
+ onPresenceChanged: vi.fn(),
+ onStatusChanged: vi.fn(),
+ onControlTargetChanged: vi.fn(),
+ },
+ });
+
+ const {
+ useDeviceLinkDeviceList,
+ useDeviceLinkDeviceListSettled,
+ } = await import('@/features/device-link/useDeviceLinkDeviceList');
+ const { result } = renderHook(() => ({
+ devices: useDeviceLinkDeviceList(),
+ settled: useDeviceLinkDeviceListSettled(),
+ }));
+
+ expect(result.current).toEqual({ devices: null, settled: false });
+ await waitFor(() => expect(result.current.settled).toBe(true));
+ expect(result.current.devices).toBeNull();
+ expect(listDevices).toHaveBeenCalledTimes(1);
+ });
+});
diff --git a/apps/desktop/src/renderer/__tests__/dialogueSidebarSection.test.ts b/apps/desktop/src/renderer/__tests__/dialogueSidebarSection.test.ts
index 301e654746..743632ed1a 100644
--- a/apps/desktop/src/renderer/__tests__/dialogueSidebarSection.test.ts
+++ b/apps/desktop/src/renderer/__tests__/dialogueSidebarSection.test.ts
@@ -22,6 +22,19 @@ const dialogueSectionSource = readFileSync(
'utf8',
);
+const dateGroupedSectionSource = readFileSync(
+ resolve(
+ __dirname,
+ '..',
+ 'features',
+ 'cc-agent',
+ 'sidebar',
+ 'sections',
+ 'DateGroupedSessionsSection.tsx',
+ ),
+ 'utf8',
+);
+
const newMakerDraftRouteSource = readFileSync(
resolve(__dirname, '..', 'features', 'cc-agent', 'NewMakerDraftRoute.tsx'),
'utf8',
@@ -43,7 +56,27 @@ describe('Dialogue sidebar section', () => {
it('keeps the Dialogue section visible when it has no sessions', () => {
expect(dialogueSectionSource).not.toMatch(/sessions\.length\s*===\s*0\)\s*return\s+null/);
- expect(dialogueSectionSource).toContain("t('ccAgent.sidebar.noDialogues')");
+ expect(dialogueSectionSource).toContain("'ccAgent.sidebar.noDialogues'");
+ });
+
+ it('shows loading instead of the empty state until the initial session fetch settles', () => {
+ expect(sidebarSource.match(/isLoading=\{isLoadingSidebarSessions\}/g)).toHaveLength(2);
+ expect(sidebarSource).toContain(
+ 'useRemoteSessionBootstrapLoading(selectedMachineId)',
+ );
+ expect(sidebarSource).toContain(
+ 'sessionsHook.isLoading || remoteSessionBootstrapLoading',
+ );
+ expect(dialogueSectionSource).toContain('isLoading: boolean');
+ expect(dialogueSectionSource).toContain("'ccAgent.sidebar.loadingDialogues'");
+ expect(dialogueSectionSource).toMatch(
+ /isLoading\s*\?\s*'ccAgent\.sidebar\.loadingDialogues'\s*:\s*'ccAgent\.sidebar\.noDialogues'/,
+ );
+ expect(dateGroupedSectionSource).toContain('isLoading: boolean');
+ expect(dateGroupedSectionSource).toContain('!isLoading');
+ expect(dateGroupedSectionSource).toMatch(
+ /isLoading\s*\?\s*'ccAgent\.sidebar\.loadingDialogues'\s*:\s*'ccAgent\.sidebar\.dateGroup\.empty'/,
+ );
});
it('has a Dialogue-owned runtime sort setting instead of using project manual order or renderer storage', () => {
diff --git a/apps/desktop/src/renderer/__tests__/machineSwitcher.test.ts b/apps/desktop/src/renderer/__tests__/machineSwitcher.test.ts
index 463a0a7994..ee3121817f 100644
--- a/apps/desktop/src/renderer/__tests__/machineSwitcher.test.ts
+++ b/apps/desktop/src/renderer/__tests__/machineSwitcher.test.ts
@@ -13,7 +13,10 @@ import {
toggleMachineSelection,
} from '@/features/device-link/selectedMachineStore';
import { remoteProjectsStore } from '@/features/device-link/remoteProjectsStore';
-import { shouldShowSelectedMachineConnectingPlaceholder } from '@/features/device-link/useMachineSwitcher';
+import {
+ shouldShowSelectedMachineConnectingPlaceholder,
+ shouldWaitForRemoteSessionBootstrap,
+} from '@/features/device-link/useMachineSwitcher';
import { buildSwitcherDevices, selectableDeviceIds } from '@/features/device-link/switcherDevices';
import { compareDevicesByName } from '@/features/device-link/deviceSort';
import { applyDeviceRename } from '@/features/device-link/useDeviceLinkDeviceList';
@@ -380,6 +383,101 @@ describe('normalizeSelectedMachineId 配合可选中集(连接中可保留,被
});
});
+describe('shouldWaitForRemoteSessionBootstrap', () => {
+ const connecting = [{ deviceId: 'dev-a', name: 'Mac A', status: 'connecting' as const }];
+
+ it('所有机器:设备清单或在线远端首快照未落地 → 保持加载态', () => {
+ expect(
+ shouldWaitForRemoteSessionBootstrap({
+ selectedMachineId: MACHINE_ALL,
+ deviceListSettled: false,
+ devices: [],
+ syncedDevices: [],
+ }),
+ ).toBe(true);
+ expect(
+ shouldWaitForRemoteSessionBootstrap({
+ selectedMachineId: MACHINE_ALL,
+ deviceListSettled: true,
+ devices: connecting,
+ syncedDevices: [],
+ }),
+ ).toBe(true);
+ });
+
+ it('权威空快照已落地也算 bootstrap 完成,不把 0 会话误判成仍加载', () => {
+ expect(
+ shouldWaitForRemoteSessionBootstrap({
+ selectedMachineId: MACHINE_ALL,
+ deviceListSettled: true,
+ devices: connecting,
+ syncedDevices: [
+ { deviceId: 'dev-a', deviceName: 'Mac A', sessionCount: 0, connected: false },
+ ],
+ }),
+ ).toBe(false);
+ });
+
+ it('设备清单请求失败但已结算 → 不把未知设备列表当成永久加载', () => {
+ expect(
+ shouldWaitForRemoteSessionBootstrap({
+ selectedMachineId: MACHINE_ALL,
+ deviceListSettled: true,
+ devices: [],
+ syncedDevices: [],
+ }),
+ ).toBe(false);
+ });
+
+ it('仅本机不等待远端;混合选择只等待作用域内尚未同步的远端设备', () => {
+ expect(
+ shouldWaitForRemoteSessionBootstrap({
+ selectedMachineId: [MACHINE_LOCAL],
+ deviceListSettled: false,
+ devices: [],
+ syncedDevices: [],
+ }),
+ ).toBe(false);
+ expect(
+ shouldWaitForRemoteSessionBootstrap({
+ selectedMachineId: [MACHINE_LOCAL, 'dev-b'],
+ deviceListSettled: true,
+ devices: connecting,
+ syncedDevices: [],
+ }),
+ ).toBe(false);
+ expect(
+ shouldWaitForRemoteSessionBootstrap({
+ selectedMachineId: [MACHINE_LOCAL, 'dev-a'],
+ deviceListSettled: true,
+ devices: connecting,
+ syncedDevices: [],
+ }),
+ ).toBe(true);
+ });
+
+ it('被拒或已有断线缓存的设备不算等待中的首次 bootstrap', () => {
+ expect(
+ shouldWaitForRemoteSessionBootstrap({
+ selectedMachineId: MACHINE_ALL,
+ deviceListSettled: true,
+ devices: [{ deviceId: 'dev-a', name: 'Mac A', status: 'rejected' }],
+ syncedDevices: [],
+ }),
+ ).toBe(false);
+ expect(
+ shouldWaitForRemoteSessionBootstrap({
+ selectedMachineId: MACHINE_ALL,
+ deviceListSettled: true,
+ devices: connecting,
+ syncedDevices: [
+ { deviceId: 'dev-a', deviceName: 'Mac A', sessionCount: 2, connected: false },
+ ],
+ }),
+ ).toBe(false);
+ });
+});
+
describe('shouldShowSelectedMachineConnectingPlaceholder', () => {
it('在线可控但尚未同步会话 → 显示连接中占位', () => {
expect(
diff --git a/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.ts b/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.ts
index 1a013eadf6..1614c19e12 100644
--- a/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.ts
+++ b/apps/desktop/src/renderer/__tests__/machineSwitcherMenu.test.ts
@@ -72,12 +72,13 @@ describe('远程机器切换入口并入 SidebarTopNav(置顶段上方,固定不
});
it('日期分组视图:选中 0 会话的远程机器时仍渲染空态段头(空列表可感知)', () => {
- // groups 为空且 filter 未激活时,若还选中了非「所有」的远程机器,machineFilterActive
- // 让组件继续渲染空态段头(「空」标签),让用户看得出是机器过滤导致的空列表而非白屏。
+ // groups 为空且 filter 未激活、初始加载已结束时,若还选中了非「所有」的远程机器,
+ // machineFilterActive 让组件继续渲染空态段头(「空」标签),让用户看得出是机器
+ // 过滤导致的空列表而非白屏。
expect(dateSectionSource).toContain('machineFilterActive');
expect(dateSectionSource).toMatch(/selectedDeviceId\s*!==\s*MACHINE_ALL/);
expect(dateSectionSource).toContain(
- 'if (groups.length === 0 && !filter.isFilterActive && !machineFilterActive) return null;',
+ 'if (groups.length === 0 && !isLoading && !filter.isFilterActive && !machineFilterActive) return null;',
);
});
diff --git a/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsx b/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsx
index 410e57c479..4b8c8f5706 100644
--- a/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsx
@@ -162,6 +162,7 @@ import {
} from './lib/remoteSessionWriteGuard';
import {
useEffectiveSelectedMachineId,
+ useRemoteSessionBootstrapLoading,
useSelectedMachineConnecting,
} from '@/features/device-link/useMachineSwitcher';
import {
@@ -867,6 +868,12 @@ function ExpandedView({
// 机器切换栏选中机器后整体过滤:本机 → 只本地会话;远程 → 只该机器会话。
// 过滤在源头做,下游 grouping / pinned / projects / dialogues / date-grouped / search 自动继承。
const selectedMachineId = useEffectiveSelectedMachineId();
+ // 「所有」或含远程设备的作用域还要等 device-link 首次 sessions snapshot;
+ // 否则本地 sessions 先完成时会把尚未知的远程空数组误报成真实空态。
+ const remoteSessionBootstrapLoading =
+ useRemoteSessionBootstrapLoading(selectedMachineId);
+ const isLoadingSidebarSessions =
+ sessionsHook.isLoading || remoteSessionBootstrapLoading;
// 选中的远程机器尚在连接中(会话未同步)→ 用「连接中」占位替换空列表的「暂无对话」。
const selectedMachineConnecting = useSelectedMachineConnecting();
// orca worker + status 过滤(**不含**机器过滤)—— 抽出给「机器过滤后渲染」与「全量项目宇宙」共用。
@@ -2224,6 +2231,7 @@ function ExpandedView({
{filter.groupBy === 'date' ? (
<DateGroupedSessionsSection
sessions={visibleDateSessions}
+ isLoading={isLoadingSidebarSessions}
allKnownProjects={projectUniverse.projects}
filter={filter}
activeSessionId={activeSessionId}
@@ -2277,6 +2285,7 @@ function ExpandedView({
/>
<DialogueSection
sessions={visibleDialogues}
+ isLoading={isLoadingSidebarSessions}
activeSessionId={activeSessionId}
runningSessionIds={displayRunningSessionIds}
attachedSessionIds={attachedSessionIds}
diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/sections/DateGroupedSessionsSection.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/sections/DateGroupedSessionsSection.tsx
index 3a74d842b9..c14b9acaa9 100644
--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/sections/DateGroupedSessionsSection.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/sections/DateGroupedSessionsSection.tsx
@@ -34,6 +34,8 @@ const HEADER_HOVER_ACTION_CLASS =
export interface DateGroupedSessionsSectionProps {
sessions: Session[];
+ /** 首次载入会话列表时避免把暂时的空数组误报成真正空态。 */
+ isLoading: boolean;
allKnownProjects: ProjectNodeData[];
filter: UseSidebarFilterReturn;
activeSessionId?: string;
@@ -64,6 +66,7 @@ function formatDateGroupLabel(
export function DateGroupedSessionsSection({
sessions,
+ isLoading,
allKnownProjects,
filter,
activeSessionId,
@@ -102,14 +105,18 @@ export function DateGroupedSessionsSection({
[i18n.language],
);
- if (groups.length === 0 && !filter.isFilterActive && !machineFilterActive) return null;
+ if (groups.length === 0 && !isLoading && !filter.isFilterActive && !machineFilterActive) return null;
return (
<div className="flex w-full flex-col gap-2">
{groups.length === 0 ? (
<div className="group/sidebar-header flex h-6 select-none items-center justify-between pr-0 pl-6">
<span className="text-sm font-semibold text-[var(--cmd-palette-item-meta)]">
- {t('ccAgent.sidebar.dateGroup.empty')}
+ {t(
+ isLoading
+ ? 'ccAgent.sidebar.loadingDialogues'
+ : 'ccAgent.sidebar.dateGroup.empty',
+ )}
</span>
<div className="-mt-px flex items-center gap-0.5">
<div className={HEADER_HOVER_ACTION_CLASS}>
diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/sections/DialogueSection.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/sections/DialogueSection.tsx
index 0b52d2f5f0..32ee5e5b9d 100644
--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/sections/DialogueSection.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/sections/DialogueSection.tsx
@@ -67,6 +67,8 @@ const HEADER_ACTIONS_CLASS = cn('flex items-center gap-0.5 -mt-px', HEADER_HOVER
export interface DialogueSectionProps {
sessions: Session[];
+ /** 首次载入会话列表时避免把暂时的空数组误报成真正空态。 */
+ isLoading: boolean;
activeSessionId?: string;
runningSessionIds: ReadonlySet<string>;
attachedSessionIds: ReadonlySet<string>;
@@ -113,6 +115,7 @@ export function compareDialogueSessions(a: Session, b: Session, sortBy: Dialogue
export function DialogueSection({
sessions,
+ isLoading,
activeSessionId,
runningSessionIds,
attachedSessionIds,
@@ -277,7 +280,7 @@ export function DialogueSection({
/>
{sortedSessions.length === 0 && (
<div className="flex h-7 items-center rounded-full px-3 text-xs text-sidebar-muted">
- {t('ccAgent.sidebar.noDialogues')}
+ {t(isLoading ? 'ccAgent.sidebar.loadingDialogues' : 'ccAgent.sidebar.noDialogues')}
</div>
)}
</div>
diff --git a/apps/desktop/src/renderer/features/device-link/useDeviceLinkDeviceList.ts b/apps/desktop/src/renderer/features/device-link/useDeviceLinkDeviceList.ts
index bf1a8df2ca..aa110d81a5 100644
--- a/apps/desktop/src/renderer/features/device-link/useDeviceLinkDeviceList.ts
+++ b/apps/desktop/src/renderer/features/device-link/useDeviceLinkDeviceList.ts
@@ -19,6 +19,8 @@ import { useSyncExternalStore } from 'react';
let devices: DeviceLinkDeviceView[] | null = null;
const subs = new Set<() => void>();
let started = false;
+/** 当前账号 / relay 生命周期内,至少一次最新的 listDevices 请求已经 resolve 或 reject。 */
+let initialRequestSettled = false;
/**
* 加载代次:**每次 refresh 发起**与**每次清空(登出 / relay stop)**都自增,作废所有更早的在途
* listDevices 响应 —— 只有"最新一次操作"的响应能落地(同 remoteProjectsStore 的 snapshotEpoch 思路)。
@@ -74,16 +76,27 @@ export function applyDeviceRename(
function setDevices(next: DeviceLinkDeviceView[]): void {
// 按 deviceId 稳定排序,避免服务端返回顺序抖动触发无谓重渲染。
const sorted = [...next].sort((a, b) => a.deviceId.localeCompare(b.deviceId));
- if (relevantEqual(devices, sorted)) return;
+ const devicesChanged = !relevantEqual(devices, sorted);
+ const settledChanged = !initialRequestSettled;
+ if (!devicesChanged && !settledChanged) return;
devices = sorted;
+ initialRequestSettled = true;
subs.forEach((fn) => fn());
}
/** 清空缓存设备,回到「未加载」态(null → 切换栏隐藏)。登出 / relay 停止时调用。 */
function clearDevices(): void {
loadGeneration += 1; // 作废所有在途 listDevices 响应(见 loadGeneration 注释)。
- if (devices === null) return;
+ const changed = devices !== null || initialRequestSettled;
+ if (!changed) return;
devices = null;
+ initialRequestSettled = false;
+ subs.forEach((fn) => fn());
+}
+
+function markInitialRequestSettled(): void {
+ if (initialRequestSettled) return;
+ initialRequestSettled = true;
subs.forEach((fn) => fn());
}
@@ -116,8 +129,12 @@ function ensureStarted(): void {
setDevices(list);
})
.catch(() => {
+ // 只有最新请求的失败才算本轮首拉已经结算;更晚的 refresh 仍在途时继续等待它。
+ if (gen !== loadGeneration) return;
+ markInitialRequestSettled();
// 瞬态拉取失败(relay 重连中等)保持当前快照;登出 / relay 停止由下面的 'stopped'
- // 状态事件显式清空,不靠这里的失败兜底(避免一次网络抖动就清掉、闪烁)。
+ // 状态事件显式清空,不靠这里的失败兜底(避免一次网络抖动就清掉、闪烁)。但把请求
+ // 标成已结算,避免远端 sidebar bootstrap 因 devices 仍为 null 永久显示加载态。
});
};
refresh();
@@ -155,3 +172,12 @@ function getSnapshot(): DeviceLinkDeviceView[] | null {
export function useDeviceLinkDeviceList(): DeviceLinkDeviceView[] | null {
return useSyncExternalStore(subscribe, getSnapshot);
}
+
+function getInitialRequestSettledSnapshot(): boolean {
+ return initialRequestSettled;
+}
+
+/** 首次设备清单请求是否已结算;失败也算结算,后续 push / online 事件仍会继续 refresh。 */
+export function useDeviceLinkDeviceListSettled(): boolean {
+ return useSyncExternalStore(subscribe, getInitialRequestSettledSnapshot);
+}
diff --git a/apps/desktop/src/renderer/features/device-link/useMachineSwitcher.ts b/apps/desktop/src/renderer/features/device-link/useMachineSwitcher.ts
index 19b7d00c27..993a708099 100644
--- a/apps/desktop/src/renderer/features/device-link/useMachineSwitcher.ts
+++ b/apps/desktop/src/renderer/features/device-link/useMachineSwitcher.ts
@@ -24,7 +24,10 @@
import { useCallback, useMemo, useSyncExternalStore } from 'react';
import { useRemoteDevices, type RemoteDeviceSummary } from './remoteProjectsStore';
import { revokedDevicesStore } from './revokedDevicesStore';
-import { useDeviceLinkDeviceList } from './useDeviceLinkDeviceList';
+import {
+ useDeviceLinkDeviceList,
+ useDeviceLinkDeviceListSettled,
+} from './useDeviceLinkDeviceList';
import { buildSwitcherDevices, selectableDeviceIds, type SwitcherDevice } from './switcherDevices';
import {
MACHINE_ALL,
@@ -42,6 +45,40 @@ export interface SelectedMachineConnectingInput {
syncedDevices: readonly RemoteDeviceSummary[];
}
+export interface RemoteSessionBootstrapLoadingInput {
+ selectedMachineId: MachineSelection;
+ deviceListSettled: boolean;
+ devices: readonly SwitcherDevice[];
+ syncedDevices: readonly RemoteDeviceSummary[];
+}
+
+/**
+ * 当前机器作用域是否仍包含尚未完成首次 sessions snapshot 的远程设备。
+ * syncedDevices 即使 sessionCount=0 也代表 bootstrap 已落过权威空快照;
+ * connecting 且没有对应分片才是冷启动中的未知状态。
+ */
+export function shouldWaitForRemoteSessionBootstrap({
+ selectedMachineId,
+ deviceListSettled,
+ devices,
+ syncedDevices,
+}: RemoteSessionBootstrapLoadingInput): boolean {
+ const selectedRemoteIds =
+ selectedMachineId === MACHINE_ALL
+ ? null
+ : new Set(selectedMachineId.filter((id) => id !== MACHINE_LOCAL));
+ if (selectedRemoteIds?.size === 0) return false;
+ if (!deviceListSettled) return true;
+
+ const syncedIds = new Set(syncedDevices.map((device) => device.deviceId));
+ return devices.some(
+ (device) =>
+ device.status === 'connecting' &&
+ !syncedIds.has(device.deviceId) &&
+ (selectedRemoteIds === null || selectedRemoteIds.has(device.deviceId)),
+ );
+}
+
/**
* 只有「勾选集里全是连接中设备(不含本机)且没有任何缓存会话可显示」时才显示连接中占位。
* 离线但已有 cached sessions 的设备仍会被 buildSwitcherDevices 标成 connecting
@@ -111,6 +148,29 @@ export function useSelectedMachineConnecting(): boolean {
});
}
+/**
+ * 当前可见列表是否还在等待 device-link 远程会话的首次 bootstrap。
+ * 「所有」作用域包含本机与全部远程源,因此远端设备清单或任一相关首快照未落地时,
+ * 侧栏继续显示加载态,避免本地 sessions 先完成后短暂误报真实空态。
+ */
+export function useRemoteSessionBootstrapLoading(
+ selectedMachineId: MachineSelection,
+): boolean {
+ const deviceListSettled = useDeviceLinkDeviceListSettled();
+ const devices = useSwitcherDevices();
+ const synced = useRemoteDevices();
+ return useMemo(
+ () =>
+ shouldWaitForRemoteSessionBootstrap({
+ selectedMachineId,
+ deviceListSettled,
+ devices,
+ syncedDevices: synced,
+ }),
+ [selectedMachineId, deviceListSettled, devices, synced],
+ );
+}
+
export interface MachineSwitcherState {
/** 切换栏设备(已连接 / 连接中 / 被拒,已排序)。 */
devices: SwitcherDevice[];
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index 60051fbc0d..1d7732bf5e 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -5030,6 +5030,7 @@
"newDialogue": "New dialogue",
"dialoguesToggleExpand": "Expand dialogues",
"dialoguesToggleCollapse": "Collapse dialogues",
+ "loadingDialogues": "Loading…",
"noDialogues": "No dialogues",
"dialogueSettings": "Organize dialogues",
"dialogueSettingsAria": "Organize dialogues (Sort by: {{sortBy}})",
diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.json
index 91dfe1647d..ff34f08203 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -5020,6 +5020,7 @@
"newDialogue": "新規会話",
"dialoguesToggleExpand": "会話を展開",
"dialoguesToggleCollapse": "会話を折りたたむ",
+ "loadingDialogues": "読み込み中…",
"noDialogues": "会話はありません",
"dialogueSettings": "会話を整理",
"dialogueSettingsAria": "会話を整理(並び替え:{{sortBy}})",
diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.json
index ab5eaefbec..1669c753b8 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -5020,6 +5020,7 @@
"newDialogue": "새 대화",
"dialoguesToggleExpand": "대화 펼치기",
"dialoguesToggleCollapse": "대화 접기",
+ "loadingDialogues": "불러오는 중…",
"noDialogues": "대화 없음",
"dialogueSettings": "대화 정리",
"dialogueSettingsAria": "대화 정리(정렬: {{sortBy}})",
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
index 624ab67bf3..369d6c62be 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -5020,6 +5020,7 @@
"newDialogue": "新对话",
"dialoguesToggleExpand": "展开对话",
"dialoguesToggleCollapse": "收起对话",
+ "loadingDialogues": "加载中…",
"noDialogues": "暂无对话",
"dialogueSettings": "整理对话",
"dialogueSettingsAria": "整理对话(排序:{{sortBy}})",