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): 补齐远程任务读取和同步提示 (#6282)

Dash29e1e62c5aa0
diff --git a/apps/desktop/src/renderer/__tests__/remoteSessionLoading.test.ts b/apps/desktop/src/renderer/__tests__/remoteSessionLoading.test.ts
index f1996baa90..37d9e58850 100644
--- a/apps/desktop/src/renderer/__tests__/remoteSessionLoading.test.ts
+++ b/apps/desktop/src/renderer/__tests__/remoteSessionLoading.test.ts
@@ -1,39 +1,111 @@
-/**
- * remoteSessionLoading.test.ts —— 远程会话首屏 loading 决策(慢网可见性)。
- *
- * 守住:本机会话恒不显示(零回归)、加载完成不显示、防闪窗口内不显示、
- * 仅「远程 + 未加载 + 延迟到期」三者同时成立才显示。
- */
-import { describe, it, expect } from 'vitest';
+// @vitest-environment jsdom
+import { act, cleanup, renderHook } from '@testing-library/react';
+import { afterEach, beforeEach, describe, it, expect, vi } from 'vitest';
+import { useRemoteSessionLoading } from '@/features/cc-agent/hooks/useRemoteSessionLoading';
-import { shouldShowRemoteLoading } from '@/features/cc-agent/hooks/useRemoteSessionLoading';
+// Regression: cached history used to suppress every loading signal, even while
+// remote content was still syncing. Exercise the production hook and its timer,
+// not a copy of its predicate. Fake timers keep this in the unit tier.
+const cached = {
+ sessionId: 'task-a',
+ remoteDeviceId: 'host-a',
+ historyLoaded: true,
+ contentSyncing: true,
+ hasMessages: true,
+ connectionNotice: false,
+ hasTaskHeader: true,
+};
+beforeEach(() => vi.useFakeTimers());
+afterEach(() => {
+ cleanup();
+ vi.useRealTimers();
+});
+const advance = (ms: number) =>
+ act(() => {
+ vi.advanceTimersByTime(ms);
+ });
+
+describe('remote task loading feedback', () => {
+ it('keeps cached content readable and shows title feedback until content is ready', () => {
+ const { result, rerender } = renderHook(useRemoteSessionLoading, { initialProps: cached });
+ expect(result.current).toBe('hidden');
+ advance(249);
+ expect(result.current).toBe('hidden');
+ advance(1);
+ expect(result.current).toBe('syncing');
+ rerender({ ...cached, contentSyncing: false });
+ expect(result.current).toBe('hidden');
+ });
+
+ it('moves the empty viewport indicator into the title without restarting the delay', () => {
+ const props = { ...cached, hasMessages: false, historyLoaded: false };
+ const { result, rerender } = renderHook(useRemoteSessionLoading, { initialProps: props });
+ advance(250);
+ expect(result.current).toBe('loading');
+ rerender(cached);
+ expect(result.current).toBe('syncing');
+ rerender({ ...cached, contentSyncing: false, hasMessages: false });
+ expect(result.current).toBe('hidden');
+ });
-describe('shouldShowRemoteLoading', () => {
- it('本机会话(isRemote=false)→ 恒不显示,无论其它参数', () => {
- expect(shouldShowRemoteLoading(false, false, true)).toBe(false);
- expect(shouldShowRemoteLoading(false, false, false)).toBe(false);
- expect(shouldShowRemoteLoading(false, true, true)).toBe(false);
+ it('does not flash when cold cache arrives before a fast remote read', () => {
+ const props = { ...cached, historyLoaded: false, hasMessages: false };
+ const { result, rerender } = renderHook(useRemoteSessionLoading, { initialProps: props });
+ advance(50);
+ rerender({ ...props, hasMessages: true });
+ expect(result.current).toBe('hidden');
+ advance(100);
+ rerender({ ...cached, contentSyncing: false });
+ advance(250);
+ expect(result.current).toBe('hidden');
});
- it('远程 + 已加载 → 不显示(数据已就位)', () => {
- expect(shouldShowRemoteLoading(true, true, true)).toBe(false);
+ it('keeps feedback in the viewport when a bot or embedded pane has no task header', () => {
+ const props = { ...cached, hasTaskHeader: false };
+ const { result, rerender } = renderHook(useRemoteSessionLoading, { initialProps: props });
+ advance(250);
+ expect(result.current).toBe('inline-syncing');
+ rerender({ ...props, hasTaskHeader: true });
+ expect(result.current).toBe('syncing');
+ rerender({ ...props, connectionNotice: true });
+ expect(result.current).toBe('hidden');
});
- it('远程 + 未加载 + 防闪窗口内(delayElapsed=false)→ 不显示(快隧道不闪)', () => {
- expect(shouldShowRemoteLoading(true, false, false)).toBe(false);
+ it('never flashes feedback when a read finishes within the delay', () => {
+ const { result, rerender } = renderHook(useRemoteSessionLoading, { initialProps: cached });
+ advance(100);
+ rerender({ ...cached, contentSyncing: false });
+ advance(250);
+ expect(result.current).toBe('hidden');
});
- it('远程 + 未加载 + 延迟到期 → 显示', () => {
- expect(shouldShowRemoteLoading(true, false, true)).toBe(true);
+ it.each(['sessionId', 'remoteDeviceId'] as const)('resets the delay when %s changes', (key) => {
+ const { result, rerender } = renderHook(useRemoteSessionLoading, { initialProps: cached });
+ advance(250);
+ expect(result.current).toBe('syncing');
+ rerender({ ...cached, [key]: 'other' });
+ expect(result.current).toBe('hidden');
+ advance(250);
+ expect(result.current).toBe('syncing');
});
- it('屏上已有消息(冷缓存已画出最近一页)→ 不显示:覆盖层不该盖住可读内容', () => {
- expect(shouldShowRemoteLoading(true, false, true, true)).toBe(false);
+ it('yields to connection notices, then waits for content after reconnection', () => {
+ const { result, rerender } = renderHook(useRemoteSessionLoading, { initialProps: cached });
+ advance(250);
+ rerender({ ...cached, connectionNotice: true });
+ expect(result.current).toBe('hidden');
+ advance(1000);
+ rerender(cached);
+ expect(result.current).toBe('hidden');
+ advance(250);
+ expect(result.current).toBe('syncing');
});
- it('hasMessages 缺省 false → 既有调用点行为不变(零回归)', () => {
- expect(shouldShowRemoteLoading(true, false, true)).toBe(
- shouldShowRemoteLoading(true, false, true, false),
+ it('never shows remote loading on local tasks', () => {
+ const { result } = renderHook(() =>
+ useRemoteSessionLoading({ ...cached, remoteDeviceId: undefined, historyLoaded: false }),
);
+ advance(250);
+ expect(result.current).toBe('hidden');
});
});
diff --git a/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx b/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx
index 4f62ab61ff..5b5942610c 100644
--- a/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx
@@ -2636,14 +2636,21 @@ function CCAgentSessionContent({
});
});
}, [markCurrentUnreadFailedScheduleRun, remoteDeviceId, sessionId]);
- // device-link 远程会话首屏:历史/元数据经隧道往返(网络),慢网下 historyLoaded=false
- // 期间消息区空白。仅远程 + 延迟防闪后给「正在从被控端加载」提示(本机会话恒 false)。
- // 冷缓存已经把最近一页画出来时(messages 非空)不再显示覆盖层 —— 它会盖住可读内容。
- const showRemoteLoading = useRemoteSessionLoading(
+ const showRemoteConnectionNotice =
+ remoteSync.suspectStall ||
+ remoteConn === 'reconnecting' ||
+ remoteConn === 'host-offline' ||
+ remoteConn === 'degraded' ||
+ remoteLinkIssue?.kind === 'unstable';
+ const remoteLoading = useRemoteSessionLoading({
+ sessionId,
remoteDeviceId,
historyLoaded,
- messages.length > 0,
- );
+ contentSyncing: remoteSync.contentState === 'syncing',
+ hasMessages: messages.length > 0,
+ connectionNotice: showRemoteConnectionNotice,
+ hasTaskHeader: ownsRoute && !!session && !botChatIdentity,
+ });
// 远程回执「真实展示」放行 + 本次访问的新鲜度对账。放行表示「视图挂载、真实可见
// (viewVisible:rail 收起 / Orca 面板隐藏时为 false,挂载 ≠ 看得见)且历史已渲染」;
// 回执真正发出还要求入队之后有一轮 sync 成功完成(sessionAttentionStore 的同步代数
@@ -5041,6 +5048,7 @@ function CCAgentSessionContent({
<SessionContentHeaderRegistration
session={session}
remoteSessionUnavailable={remoteSessionUnavailable}
+ remoteSyncing={remoteLoading === 'syncing'}
readOnly={readOnly}
/>
)
@@ -5192,10 +5200,7 @@ function CCAgentSessionContent({
onResync={remoteSync.resync}
onFinalize={remoteSync.forceFinalize}
/>
- ) : remoteConn === 'reconnecting' ||
- remoteConn === 'host-offline' ||
- remoteConn === 'degraded' ||
- remoteLinkIssue?.kind === 'unstable' ? (
+ ) : showRemoteConnectionNotice ? (
<RemoteSessionBanner
status={
remoteLinkIssue?.kind === 'unstable'
@@ -5212,7 +5217,8 @@ function CCAgentSessionContent({
) : null}
{/* 远程会话首屏:等被控端经隧道返回历史/元数据期间的 loading(仅远程、延迟防闪)。 */}
- {showRemoteLoading && remoteConn === 'connected' && <RemoteSessionLoading />}
+ {remoteLoading === 'loading' && <RemoteSessionLoading />}
+ {remoteLoading === 'inline-syncing' && <RemoteSessionLoading compact />}
{/* Full-area drop overlay.
Keep the event-capture surface for the whole chat area, but leave the
diff --git a/apps/desktop/src/renderer/features/cc-agent/RemoteSessionLoading.tsx b/apps/desktop/src/renderer/features/cc-agent/RemoteSessionLoading.tsx
index feddd2357b..47a33eb5d0 100644
--- a/apps/desktop/src/renderer/features/cc-agent/RemoteSessionLoading.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/RemoteSessionLoading.tsx
@@ -1,20 +1,32 @@
/**
* RemoteSessionLoading —— 远程会话首屏「正在从被控端加载」覆盖层(控制端)。
*
- * 仅在 device-link 远程会话首拉(historyLoaded=false)且超过防闪延迟时,由
+ * 仅在 device-link 远程会话内容尚未同步且超过防闪延迟时,由
* CCAgentSessionView 覆盖在空消息区之上,让控制端明确「在等被控端」而非空会话。
- * historyLoaded 翻 true 即由上层卸载,平滑接上消息流。颜色走主题 token,不硬编码。
+ * 已有消息时交给标题的同步提示;无普通任务标题的面板使用顶部轻量提示。
+ * 内容同步完成后撤掉。颜色走主题 token,不硬编码。
*/
import { useTranslation } from 'react-i18next';
import { Spinner } from '@/components/ui/spinner';
-export function RemoteSessionLoading() {
+export function RemoteSessionLoading({ compact = false }: { compact?: boolean }) {
const { t } = useTranslation();
+ if (compact) {
+ return (
+ <div
+ role="status"
+ className="pointer-events-none flex shrink-0 items-center justify-end gap-2 px-4 py-1 text-12 text-[var(--text-secondary)]"
+ >
+ <Spinner size={14} />
+ <span>{t('ccAgent.remoteSession.syncing')}</span>
+ </div>
+ );
+ }
return (
<div className="pointer-events-none absolute inset-0 z-10 flex items-center justify-center">
- <div className="flex items-center gap-2 text-13 text-[var(--text-secondary)]">
+ <div role="status" className="flex items-center gap-2 text-13 text-[var(--text-secondary)]">
<Spinner size={14} />
<span>{t('ccAgent.remoteSession.loading')}</span>
</div>
diff --git a/apps/desktop/src/renderer/features/cc-agent/SessionContentHeader.tsx b/apps/desktop/src/renderer/features/cc-agent/SessionContentHeader.tsx
index cb90d5c081..a728658c1c 100644
--- a/apps/desktop/src/renderer/features/cc-agent/SessionContentHeader.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/SessionContentHeader.tsx
@@ -23,7 +23,7 @@ import { TaskMigrationStatus } from './TaskMigrationStatus';
*/
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
-import { ChevronRight, Ellipsis, Pin } from 'lucide-react';
+import { Ellipsis, Pin } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { cn } from '@/lib/utils';
@@ -40,14 +40,7 @@ import { useCCSessions } from '@/hooks/useCCSessions';
import { useProjectPickerOptions } from '@/hooks/useProjectPickerOptions';
import { useSessionRunningStatus } from '@/hooks/useSessionRunningStatus';
import { useConfirmDialog } from '@/components/ui/confirm-dialog-provider';
-import {
- DropdownMenu,
- DropdownMenuItem,
- DropdownMenuSub,
- DropdownMenuSubContent,
- DropdownMenuSubTrigger,
- DropdownMenuTrigger,
-} from '@/components/ui/dropdown-menu';
+import { DropdownMenu, DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/dropdown-menu';
import { WINDOW_NO_DRAG_STYLE, useManualWindowDrag } from '@/components/layout/windowDrag';
import { recentWorkdirsStore } from '@/lib/recentWorkdirsStore';
import { useRegisterContentHeader } from '../feature-context';
@@ -71,13 +64,14 @@ import { useSessionBoundSchedules } from '@/features/scheduler/lib/scheduleSessi
import { ScheduleBindingBadge } from './sidebar/ScheduleBindingBadge';
import { RemoteProjectIcon } from './sidebar/RemoteProjectIcon';
import { VendorIcon, agentKindToVendor } from '@/components/sidebar/VendorIcon';
-import { MENU_ITEM_CLASS, MENU_ROW_CLASS } from './sidebar/menuStyles';
+import { MENU_ITEM_CLASS } from './sidebar/menuStyles';
import { SessionProjectMoveSubmenu } from './sidebar/SessionProjectMoveSubmenu';
import type { SessionMoveTarget } from './sidebar/sessionMoveTarget';
import { SessionShareExportDialog } from './sidebar/SessionShareExportDialog';
import { useRemoteProjectSessions } from '@/features/device-link/remoteProjectsStore';
import { isRemoteSessionWriteBlocked } from './lib/remoteSessionWriteGuard';
import { Tip } from '@/components/ui/tooltip';
+import { Spinner } from '@/components/ui/spinner';
import { TaskTagDots, TaskTagMenuSection, TaskTagEditor } from '@/features/task-tags/TaskTags';
import { isSharedTaskPeer } from '@cindy/device-link';
import { useDeviceLinkDeviceList } from '@/features/device-link/useDeviceLinkDeviceList';
@@ -143,10 +137,12 @@ function AgentDeviceIndicator({
export function SessionContentHeaderRegistration({
session,
remoteSessionUnavailable = false,
+ remoteSyncing = false,
readOnly = false,
}: {
session: Session;
remoteSessionUnavailable?: boolean;
+ remoteSyncing?: boolean;
readOnly?: boolean;
}) {
useRegisterContentHeader(
@@ -155,10 +151,11 @@ export function SessionContentHeaderRegistration({
<SessionContentHeader
session={session}
remoteSessionUnavailable={remoteSessionUnavailable}
+ remoteSyncing={remoteSyncing}
readOnly={readOnly}
/>
),
- [readOnly, session, remoteSessionUnavailable],
+ [readOnly, session, remoteSessionUnavailable, remoteSyncing],
),
);
return null;
@@ -167,12 +164,14 @@ export function SessionContentHeaderRegistration({
interface SessionContentHeaderProps {
session: Session;
remoteSessionUnavailable?: boolean;
+ remoteSyncing?: boolean;
readOnly?: boolean;
}
export function SessionContentHeader({
session: sessionProp,
remoteSessionUnavailable = false,
+ remoteSyncing = false,
readOnly = false,
}: SessionContentHeaderProps) {
const { t } = useTranslation();
@@ -636,6 +635,20 @@ export function SessionContentHeader({
</span>
)}
+ {remoteSyncing && (
+ <Tip text={t('ccAgent.remoteSession.syncing')}>
+ <span
+ role="status"
+ aria-label={t('ccAgent.remoteSession.syncing')}
+ aria-busy="true"
+ className="mx-1 inline-flex shrink-0 text-[var(--text-tertiary)]"
+ style={WINDOW_NO_DRAG_STYLE}
+ >
+ <Spinner size={14} />
+ </span>
+ </Tip>
+ )}
+
{!isEditing && !!session.tags?.length && (
<span
className="mx-1 shrink-0 [--task-tag-ring-bg:hsl(var(--content-area))]"
diff --git a/apps/desktop/src/renderer/features/cc-agent/hooks/useRemoteSessionLoading.ts b/apps/desktop/src/renderer/features/cc-agent/hooks/useRemoteSessionLoading.ts
index 0351f9fe4d..ddd18df24c 100644
--- a/apps/desktop/src/renderer/features/cc-agent/hooks/useRemoteSessionLoading.ts
+++ b/apps/desktop/src/renderer/features/cc-agent/hooks/useRemoteSessionLoading.ts
@@ -1,61 +1,45 @@
-/**
- * useRemoteSessionLoading —— 远程会话首屏「正在从被控端加载」态(控制端,慢网可见性)。
- * ---------------------------------------------------------------------------
- * device-link 远程会话的历史 / 元数据来自被控端,经隧道往返(网络),不像本机 DB 即时。
- * 慢网下 `historyLoaded=false` 期间消息区是空的,用户分不清「空会话」还是「在等被控端」。
- * 本 hook 在这段给出 loading 信号——但**仅远程会话**(本机会话零回归,守住 DESIGN/规则 7
- * 「本地无 loading」),且**延迟 delayMs 才亮**:快隧道(秒回)不闪 loader,直击历史上因
- * 首屏闪烁而移除占位的教训。
- *
- * 决策抽成纯函数 shouldShowRemoteLoading 便于 node 单测;hook 只管延迟 timer 这点副作用。
- */
-
import { useEffect, useState } from 'react';
-/** 默认防闪延迟:< 250ms 到货不显示 loader。 */
+/** Fast remote reads should not flash a loader. */
export const REMOTE_LOADING_DELAY_MS = 250;
-/**
- * 纯判定:是否显示远程首屏 loading。
- * - isRemote=false(本机会话)→ 永不显示(零回归)。
- * - historyLoaded=true → 已就位,不显示。
- * - delayElapsed=false → 还在防闪窗口内,不显示(避免快隧道闪一下)。
- * - hasMessages=true → 屏上已经有内容(冷缓存 hydrate 出的最近一页,见
- * features/device-link/mirrorCacheClient.ts),覆盖层就没有存在意义了:
- * 它会盖在已经可读的消息上,反而比空白更糟。
- */
-export function shouldShowRemoteLoading(
- isRemote: boolean,
- historyLoaded: boolean,
- delayElapsed: boolean,
- hasMessages = false,
-): boolean {
- return isRemote && !historyLoaded && delayElapsed && !hasMessages;
-}
-
-/**
- * 远程会话首屏 loading 可见性。remoteDeviceId 为空(本机)恒为 false。
- * 进入「远程 + 未加载」条件后启动 delayMs 计时;到期才允许显示;条件离开(加载完成 /
- * 切到本机 / 换设备 / 缓存已把内容画出来)立即复位 + 清计时,确保不残留、不闪。
- */
-export function useRemoteSessionLoading(
- remoteDeviceId: string | undefined,
- historyLoaded: boolean,
- hasMessages = false,
- delayMs: number = REMOTE_LOADING_DELAY_MS,
-): boolean {
- const isRemote = !!remoteDeviceId;
- const [delayElapsed, setDelayElapsed] = useState(false);
+/** One loading signal follows remote content from the empty viewport into the
+ * title. Cached messages stay readable until fresh content has actually arrived.
+ * Connection banners take precedence; local tasks never show this indicator. */
+export function useRemoteSessionLoading({
+ sessionId,
+ remoteDeviceId,
+ historyLoaded,
+ contentSyncing,
+ hasMessages,
+ connectionNotice,
+ hasTaskHeader,
+}: {
+ sessionId: string | undefined;
+ remoteDeviceId: string | undefined;
+ historyLoaded: boolean;
+ contentSyncing: boolean;
+ hasMessages: boolean;
+ connectionNotice: boolean;
+ hasTaskHeader: boolean;
+}): 'hidden' | 'loading' | 'syncing' | 'inline-syncing' {
+ const active =
+ !!sessionId && !!remoteDeviceId && !connectionNotice && (!historyLoaded || contentSyncing);
+ const [revealed, setRevealed] = useState<{ sessionId: string; deviceId: string } | null>(null);
useEffect(() => {
- if (!isRemote || historyLoaded || hasMessages) {
- setDelayElapsed(false);
- return;
- }
- setDelayElapsed(false);
- const timer = setTimeout(() => setDelayElapsed(true), delayMs);
+ setRevealed(null);
+ if (!active || !sessionId || !remoteDeviceId) return;
+ const timer = setTimeout(() => {
+ setRevealed({ sessionId, deviceId: remoteDeviceId });
+ }, REMOTE_LOADING_DELAY_MS);
return () => clearTimeout(timer);
- }, [isRemote, historyLoaded, hasMessages, remoteDeviceId, delayMs]);
+ }, [active, sessionId, remoteDeviceId]);
- return shouldShowRemoteLoading(isRemote, historyLoaded, delayElapsed, hasMessages);
+ // Cold-cache hydration also retains historyLoaded=false; it is not evidence
+ // of stale content and must not bypass the ordinary anti-flash delay.
+ const delayElapsed = revealed?.sessionId === sessionId && revealed?.deviceId === remoteDeviceId;
+ if (!active || !delayElapsed) return 'hidden';
+ if (!hasMessages) return 'loading';
+ return hasTaskHeader ? 'syncing' : 'inline-syncing';
}
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index 47791fddbc..58b02ad513 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -12264,7 +12264,8 @@
"degraded": "Connection to the remote device is unstable — retrying automatically…",
"actionsUnavailable": "The remote device is unavailable. Reconnect it before changing this session.",
"resync": "Resync",
- "loading": "Loading session from the remote device…",
+ "loading": "Loading task…",
+ "syncing": "Syncing task…",
"suspectStall": "This turn hasn't updated in a while — the stream may have dropped",
"finalizeStuck": "End turn",
"issue": {
diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.json
index 818d701d87..cae445e326 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -12211,7 +12211,8 @@
"degraded": "被制御デバイスとの接続が不安定です。自動的に再試行中…",
"actionsUnavailable": "被制御デバイスを利用できません。再接続してからこのセッションを変更してください。",
"resync": "再同期",
- "loading": "リモートデバイスからセッションを読み込み中…",
+ "loading": "タスクを読み込み中…",
+ "syncing": "タスクを同期中…",
"suspectStall": "このターンはしばらく更新がありません。ストリームが切断された可能性があります",
"finalizeStuck": "ターンを終了",
"issue": {
diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.json
index b68f5cb003..8d0a3a5f2e 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -12211,7 +12211,8 @@
"degraded": "원격 기기와 연결이 불안정합니다. 자동으로 다시 시도 중…",
"actionsUnavailable": "원격 기기를 사용할 수 없습니다. 다시 연결한 뒤 이 세션을 변경하세요.",
"resync": "다시 동기화",
- "loading": "원격 기기에서 세션을 불러오는 중…",
+ "loading": "작업을 불러오는 중…",
+ "syncing": "작업을 동기화하는 중…",
"suspectStall": "이 턴이 한동안 업데이트되지 않았습니다. 스트림이 끊겼을 수 있습니다",
"finalizeStuck": "턴 종료",
"issue": {
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 132ec963a4..a2c21171d0 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -12211,7 +12211,8 @@
"degraded": "与远程设备的连接不稳定,正在自动重试…",
"actionsUnavailable": "远程设备暂不可用,恢复连接后才能修改该任务",
"resync": "重新同步",
- "loading": "正在从远程设备加载任务…",
+ "loading": "正在读取任务…",
+ "syncing": "正在同步任务…",
"suspectStall": "本轮长时间无更新,可能已断流",
"finalizeStuck": "结束本轮",
"issue": {
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
index 8683208de9..f2c7fd6b32 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
@@ -12211,7 +12211,8 @@
"degraded": "與遠端裝置的連線不穩定,正在自動重試…",
"actionsUnavailable": "遠端裝置暫不可用,恢復連線後才能修改該任務",
"resync": "重新同步",
- "loading": "正在從遠端裝置載入任務…",
+ "loading": "正在讀取任務…",
+ "syncing": "正在同步任務…",
"suspectStall": "本輪長時間無更新,可能已斷流",
"finalizeStuck": "結束本輪",
"issue": {