Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(bots): 统一伙伴连接与生成状态显示 (#4922)
Chris Zhang63e8f2de55ff
diff --git a/apps/desktop/src/main/agent-island/__tests__/state.test.ts b/apps/desktop/src/main/agent-island/__tests__/state.test.tsindex 94859f0df8..3b6fc6a874 100644--- a/apps/desktop/src/main/agent-island/__tests__/state.test.ts+++ b/apps/desktop/src/main/agent-island/__tests__/state.test.ts@@ -2608,3 +2608,79 @@ describe('会话进程关闭不该抹掉正在展示的通知', () => {expect(buildAgentIslandDisplayState(state, 3_200).totalCount).toBe(0);});});++describe('public generation phase independent of island prose', () => {+ it('is available without an open chat and closes at stop/error/done', () => {+ const state = createAgentIslandState();+ const meta = { sessionId: 'teammate' };+ const phase = () => buildAllSessionActivitySnapshots(state)[0]?.workingPhase;+ applyAgentIslandUserPrompt(state, meta, 'Help', 100);+ expect(phase()).toBe('thinking');+ applyAgentIslandEvent(state, meta, { type: 'tool_use', data: { toolName: 'bot_memory', toolUseId: 't', input: { action: 'read', path: 'private' } } }, 101);+ expect(phase()).toBe('reading-memory');+ applyAgentIslandEvent(state, meta, { type: 'tool_result', data: { toolUseId: 't' } }, 102);+ expect(phase()).toBe('reviewing-memory');+ applyAgentIslandEvent(state, meta, { type: 'thinking', data: {} }, 103);+ expect(phase()).toBe('reviewing-memory');+ applyAgentIslandEvent(state, meta, textDeltaEvent('Public progress'), 104);+ expect(phase()).toBe('replying');+ applyAgentIslandEvent(state, meta, statusEvent(false, 'Stopped'), 105);+ expect(phase()).toBeUndefined();+ applyAgentIslandUserPrompt(state, meta, 'Retry', 106);+ applyAgentIslandEvent(state, meta, terminalErrorEvent('Model unavailable'), 107);+ expect(phase()).toBeUndefined();+ applyAgentIslandUserPrompt(state, meta, 'Again', 108);+ applyAgentIslandEvent(state, meta, doneEvent(), 109);+ expect(phase()).toBeUndefined();+ });+});+++describe('teammate conversation compaction status', () => {+ it.each(['Compacting...', 'Compacting context…'])('projects %s above preceding activity and resumes on the real boundary', (status) => {+ const state = createAgentIslandState();+ const meta = { sessionId: 'compact-chat', title: 'Chat', agentKind: 'pi' as const };+ const phase = () => buildAgentIslandDisplayState(state, 2000).sessions[0]?.workingPhase;+ applyAgentIslandEvent(state, meta, statusEvent(true, 'Working'), 1000);+ applyAgentIslandEvent(state, meta, { type: 'text', data: { text: 'Public preamble' } }, 1100);+ expect(phase()).toBe('replying');+ applyAgentIslandEvent(state, meta, statusEvent(true, status), 1200);+ expect(phase()).toBe('compacting');+ applyAgentIslandEvent(state, meta, { type: 'tool_result', data: { toolUseId: 'earlier' } }, 1250);+ expect(phase()).toBe('compacting');+ applyAgentIslandEvent(state, meta, { type: 'compact_boundary', data: { trigger: 'auto' } }, 1300);+ expect(phase()).toBe('thinking');+ applyAgentIslandEvent(state, meta, { type: 'text', data: { text: 'Resumed' } }, 1400);+ expect(phase()).toBe('replying');+ applyAgentIslandEvent(state, meta, doneEvent(), 1500);+ expect(phase()).toBeUndefined();+ });+ it.each(['stop', 'failure', 'resume'])('clears compaction after %s without leaving the old phase in the next turn', (end) => {+ const state = createAgentIslandState();+ const meta = { sessionId: 'compact-tail', title: 'Chat', agentKind: 'codex' as const };+ const phase = () => buildAgentIslandDisplayState(state, 2000).sessions[0]?.workingPhase;+ applyAgentIslandEvent(state, meta, statusEvent(true, 'Compacting...'), 1000);+ if (end === 'stop') applyAgentIslandEvent(state, meta, statusEvent(false, 'Done'), 1100);+ else if (end === 'failure') applyAgentIslandEvent(state, meta, { type: 'error', data: { message: 'Compaction failed' } }, 1100);+ else applyAgentIslandEvent(state, meta, statusEvent(true, 'Thinking...'), 1100);+ expect(phase()).not.toBe('compacting');+ applyAgentIslandEvent(state, meta, doneEvent(), 1200);+ applyAgentIslandEvent(state, meta, statusEvent(true, 'Working'), 1300);+ expect(phase()).toBe('thinking');+ });+});+++it.each([['read', 'test'], ['test', 'read']])('keeps the remaining parallel tool active when %s finishes before %s', (first, last) => {+ const state = createAgentIslandState();+ const meta = { sessionId: 'parallel-tools' };+ const phase = () => buildAllSessionActivitySnapshots(state)[0]?.workingPhase;+ applyAgentIslandUserPrompt(state, meta, 'Check', 100);+ applyAgentIslandEvent(state, meta, { type: 'tool_use', data: { toolName: 'Read', toolUseId: 'read', input: { file_path: 'sample.txt' } } }, 101);+ applyAgentIslandEvent(state, meta, { type: 'tool_use', data: { toolName: 'Bash', toolUseId: 'test', input: { command: 'pnpm test' } } }, 102);+ expect(phase()).toBe('testing');+ applyAgentIslandEvent(state, meta, { type: 'tool_result', data: { toolUseId: first } }, 103);+ expect(phase()).toBe(last === 'test' ? 'testing' : 'reading-file');+ applyAgentIslandEvent(state, meta, { type: 'tool_result', data: { toolUseId: last } }, 104);+ expect(phase()).toBe(last === 'test' ? 'reviewing-checks' : 'reviewing-files');+});diff --git a/apps/desktop/src/main/agent-island/service.ts b/apps/desktop/src/main/agent-island/service.tsindex 4d9b98d7e0..565d03303b 100644--- a/apps/desktop/src/main/agent-island/service.ts+++ b/apps/desktop/src/main/agent-island/service.ts@@ -232,6 +232,7 @@ function sessionActivitySnapshotsEqual(right: AgentIslandSessionActivity,): boolean {return left.sessionId === right.sessionId+ && left.workingPhase === right.workingPhase&& left.phase === right.phase&& left.currentTurnActive === right.currentTurnActive&& left.recordStatus === right.recordStatus@@ -1480,9 +1481,15 @@ export class AgentIslandService {phase: s.phase,interactionKind: s.interactionKind,compactDetail: s.compactDetail,+ workingPhase: s.workingPhase,}));}+ /** Current public activity only; avoids scanning historical Bot Session links. */+ getSessionActivitySnapshots(): SessionActivitySnapshot[] {+ return this.buildSessionActivityPayload().map(canonicalSessionActivity);+ }+/** Read the same canonical snapshot used by sidebar and device-list relays. */getSessionActivitySnapshot(sessionId: string): SessionActivitySnapshot | null {const activity = this.buildSessionActivityPayload()diff --git a/apps/desktop/src/main/agent-island/sessionActivityRelay.ts b/apps/desktop/src/main/agent-island/sessionActivityRelay.tsindex 132c9166c6..601efc98ed 100644--- a/apps/desktop/src/main/agent-island/sessionActivityRelay.ts+++ b/apps/desktop/src/main/agent-island/sessionActivityRelay.ts@@ -217,6 +217,7 @@ function toSessionActivityPayload(activity: AgentIslandSessionActivity): Sessionreturn {sessionId: activity.sessionId,phase: activity.phase,+ workingPhase: activity.workingPhase,compactDetail: activity.compactDetail,interactionKind: activity.interactionKind,attention: activity.attention,@@ -248,6 +249,7 @@ function activitySignature(payload: SessionActivityPayload): string {return [payload.phase,payload.compactDetail,+ payload.workingPhase,payload.interactionKind ?? '',payload.attention === true ? '1' : '0',].join('\u0000');diff --git a/apps/desktop/src/main/agent-island/state.ts b/apps/desktop/src/main/agent-island/state.tsindex fe20bddc76..3738a9c140 100644--- a/apps/desktop/src/main/agent-island/state.ts+++ b/apps/desktop/src/main/agent-island/state.ts@@ -1,3 +1,5 @@+import { isSubagentParentToolUseId } from '@cindy/maker-shared/message-render';+import { isCompactingWorkingStatus, publicToolPhase, publicToolResultPhase, type WorkingPhase } from '@cindy/maker-shared';import {parseReconnectAttemptMessage,type AgentEvent,@@ -119,6 +121,8 @@ interface AgentIslandSessionState {detailSource: 'tool' | 'status' | 'interaction' | null;/** Localized transient reconnect progress; kept separate from tool/interaction detail. */reconnectStatus: string | null;+ workingPhase?: WorkingPhase;+ workingTools: Map<string, WorkingPhase>;currentToolUseId: string | null;toolDetailUntil: number | null;phase: AgentIslandSessionPhase;@@ -482,6 +486,8 @@ export function applyAgentIslandUserPrompt(applyMeta(session, meta);markSessionRunning(state, session, now);session.phase = 'running';+ session.workingPhase = 'thinking';+ session.workingTools.clear();session.interactionKind = undefined;session.detail = '';session.detailSource = null;@@ -570,17 +576,35 @@ export function applyAgentIslandEvent(// still running, so do not create/update an island entry or trigger any// completion transition here; the unclaimed terminal tail will do that.if (isTurnContinuationBoundaryEvent(event)) return false;+ const parentToolUseId = asRecord(event.data)?.parentToolUseId;+ const foreground = event.turnScope !== 'background' && !(typeof parentToolUseId === 'string' && isSubagentParentToolUseId(parentToolUseId));+ if (event.type === 'thinking' && !foreground) return false;const assistantText = event.type === 'text' ? assistantTextFromEvent(event) : null;if (event.type === 'text' && !assistantText) return false;const session = getOrCreateSession(state, meta, now);applyMeta(session, meta);+ if (event.type === 'compact_boundary') {+ if (!foreground || !session.running || session.workingPhase !== 'compacting') return false;+ session.workingPhase = 'thinking';+ session.lastActivityAt = now;+ return true;+ }+ if (event.type === 'thinking') {+ // Observe only the event kind. Repeated reasoning deltas neither change+ // public status nor wake the roster/resource subscribers.+ if (!session.running || session.workingPhase === 'thinking' || session.workingPhase?.startsWith('reviewing-')) return false;+ session.workingPhase = 'thinking';+ session.lastActivityAt = now;+ return true;+ }if (event.type !== 'error') {session.reconnectStatus = null;}session.lastActivityAt = now;if (event.type === 'text') {+ if (foreground) session.workingPhase = 'replying';clearToolDetail(session);const isFinal = asRecord(event.data)?.isFinal === true;const line = applyAssistantTextLine(session, assistantText ?? '', isFinal);@@ -603,6 +627,9 @@ export function applyAgentIslandEvent(return true;}if (isRunning === true) {+ if (!session.running) { session.workingPhase = 'thinking'; session.workingTools.clear(); }+ if (isCompactingWorkingStatus(status)) session.workingPhase = 'compacting';+ else if (status && session.workingPhase === 'compacting') session.workingPhase = 'thinking';markSessionRunning(state, session, now);if (session.pendingInteractionIds.size === 0) {session.phase = 'running';@@ -638,6 +665,10 @@ export function applyAgentIslandEvent(const toolName = firstNonEmptyString(data?.toolName, data?.name);const toolUseId = toolUseIdsFromEvent(event)[0] ?? null;const toolInput = data?.input;+ if (foreground) {+ session.workingPhase = publicToolPhase(toolName, toolInput);+ if (toolUseId) session.workingTools.set(toolUseId, session.workingPhase);+ }const toolDescription = toolName? formatIslandToolDetail(toolName, toolInput, { wording: state.toolWording }, data ?? undefined): firstNonEmptyString(data?.description, data?.toolDescription);@@ -663,6 +694,12 @@ export function applyAgentIslandEvent(if (event.type === 'tool_result') {const toolUseIds = toolUseIdsFromEvent(event);+ const phase = toolUseIds.map(id => session.workingTools.get(id)).find(Boolean);+ if (foreground) for (const id of toolUseIds) session.workingTools.delete(id);+ if (foreground && session.workingPhase !== 'compacting') {+ session.workingPhase = [...session.workingTools.values()].at(-1)+ ?? publicToolResultPhase(phase ?? session.workingPhase ?? 'processing');+ }if (session.currentToolUseId&& (toolUseIds.length === 0 || toolUseIds.includes(session.currentToolUseId))@@ -2201,6 +2238,8 @@ function getOrCreateSession(currentToolUseId: null,toolDetailUntil: null,phase: 'running',+ workingPhase: 'thinking',+ workingTools: new Map(),agentKind: meta.agentKind ?? 'agent',pendingInteractionIds: new Set(),pendingInteractionKinds: new Map(),@@ -2236,6 +2275,7 @@ function getOrCreateSession(function cloneSession(session: AgentIslandSessionState): AgentIslandSessionState {return {...session,+ workingTools: new Map(session.workingTools),pendingInteractionIds: new Set(session.pendingInteractionIds),pendingInteractionKinds: new Map(session.pendingInteractionKinds),pendingInteractionDetails: new Map(session.pendingInteractionDetails),@@ -2307,6 +2347,7 @@ function toSnapshot(session: AgentIslandSessionState): AgentIslandSessionSnapshocompactDetail: compactDetailForSession(session),messagePreview: session.messagePreview?.line ?? null,phase: session.phase,+ workingPhase: session.running && session.phase === 'running' ? session.workingPhase : undefined,agentKind: session.agentKind,interactionKind: session.interactionKind,permissionAction: session.permissionRequestId@@ -2328,7 +2369,9 @@ function isAttentionSession(session: AgentIslandSessionState): boolean {}function isIslandRelevantEvent(event: AgentEvent): boolean {- return event.type === 'status'+ return event.type === 'compact_boundary'+ || event.type === 'thinking'+ || event.type === 'status'|| event.type === 'text'|| event.type === 'tool_use'|| event.type === 'tool_result'diff --git a/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.ts b/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.tsindex 76b5d73d5e..bb98a3b122 100644--- a/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.ts+++ b/apps/desktop/src/main/localDb/ipc/__tests__/botCanonicalSession.test.ts@@ -71,6 +71,7 @@ const h = await vi.hoisted(async () => {closeSession: vi.fn(async () => undefined),getSession: vi.fn(() => null as {capabilities?: { manualCompact?: { supported?: boolean } };+ isTurnRunning?: () => boolean;compactSession: (instructions?: string) => Promise<unknown>;setPermissionMode?: (mode: string) => Promise<void>;} | null),@@ -2960,6 +2961,21 @@ describe('Bots list conversation projection', () => {expect(single.lastMessagePreview).toBe('Two checks are still red.');});+ it('keeps public commentary out of local and remote preview reads while generating', async () => {+ const sessionId = await canonicalFor('bot-1');+ insertMessage(sessionId, { id: 'user', role: 'user', content: 'Question', createdAt: 1000 });+ for (let n = 0; n < 8; n++) insertMessage(sessionId, { id: `progress-${n}`, role: 'assistant', content: 'Tool preamble', createdAt: 2000 + n });+ h.getSession.mockReturnValue({ isTurnRunning: () => true, compactSession: vi.fn() });+ const single = await invoke('local-db:bots:get', 'bot-1');+ expect(single.lastMessagePreview).toBe('Question');+ const { getBotRemoteResourceSource } = await import('../bots');+ expect((await getBotRemoteResourceSource('bot-1')).lastMessagePreview).toBe('Question');+ insertMessage(sessionId, { id: 'sealed', role: 'assistant', content: 'Final answer', agentMeta: { turnCompleted: true }, createdAt: 3000 });+ expect((await getBotRemoteResourceSource('bot-1')).lastMessagePreview).toBe('Final answer');+ h.getSession.mockReturnValue(null);+ expect((await invoke('local-db:bots:get', 'bot-1')).lastMessagePreview).toBe('Final answer');+ });+it('reports no conversation for a Bot whose canonical task is still empty', async () => {await canonicalFor('bot-1');const single = await invoke('local-db:bots:get', 'bot-1');diff --git a/apps/desktop/src/main/localDb/ipc/__tests__/botRemoteResourceProvider.test.ts b/apps/desktop/src/main/localDb/ipc/__tests__/botRemoteResourceProvider.test.tsindex 105257f29b..b5e0e13348 100644--- a/apps/desktop/src/main/localDb/ipc/__tests__/botRemoteResourceProvider.test.ts+++ b/apps/desktop/src/main/localDb/ipc/__tests__/botRemoteResourceProvider.test.ts@@ -1,7 +1,16 @@+import Database from 'better-sqlite3';+import { drizzle } from 'drizzle-orm/better-sqlite3';+import { afterAll } from 'vitest';import { expect, it, vi } from 'vitest';import type { BotRemoteResourceSource } from '../bots.js';-const db = vi.hoisted(() => ({ get: vi.fn(), list: vi.fn(), current: true }));+const activity = vi.hoisted(() => ({ snapshot: vi.fn(), snapshots: vi.fn(), copy: vi.fn(async () => ({ text: 'Checking…' })), subscribe: vi.fn(), invalidate: vi.fn() }));+vi.mock('../../../agent-island/service.js', () => ({ getAgentIslandService: () => ({ getSessionActivitySnapshot: activity.snapshot, getSessionActivitySnapshots: activity.snapshots, subscribeSessionActivity: activity.subscribe }) }));+vi.mock('../../../maker-ipc/botRemoteResourceInvalidation.js', () => ({ scheduleBotRemoteResourceChangedForSession: activity.invalidate }));++const db = vi.hoisted(() => ({ get: vi.fn(), list: vi.fn(), current: true, client: null as any }));+vi.mock('../../client/current.js', () => ({ getDbClient: () => db.client }));+vi.mock('../../../maker-ipc/workingStatus.js', () => ({ getWorkingStatusCopy: activity.copy }));vi.mock('../../../device-link/broadcast-tap.js', () => ({ captureDataOwnerBroadcastScope: () => ({}), isDataOwnerBroadcastScopeCurrent: () => db.current }));vi.mock('../bots.js', () => ({getBotRemoteResourceSource: db.get,@@ -12,6 +21,12 @@ import { remoteResourceRegistry } from '../../../device-link/remoteResourceRegisimport { setBotRemoteMessageService } from '../../../maker-ipc/botRemoteMessageReceiver.js';import { registerBotRemoteResourceProvider } from '../botRemoteResourceProvider.js';+const sqlite = new Database(':memory:');+sqlite.exec('CREATE TABLE bot_session_links (id TEXT PRIMARY KEY, bot_id TEXT, session_id TEXT, role TEXT, archived_at INTEGER, created_at INTEGER)');+db.client = { drizzle: drizzle(sqlite) };+afterAll(() => sqlite.close());+activity.snapshots.mockImplementation(() => [{ sessionId: 'session-1', ...activity.snapshot() }]);+it('rejects a previously discovered hidden companion and allows it again after restoration', async () => {const source: BotRemoteResourceSource = {id: 'bot-1', name: 'Sora', description: 'Designer',@@ -27,6 +42,26 @@ it('rejects a previously discovered hidden companion and allows it again after rconst client = { protocolVersion: 1, primitives: ['markdown'] };const list = () => remoteResourceRegistry.list(context, { client, collectionId: 'teammates' });const discovered = (await list()).items[0];+ // Generation comes from host activity even when no controller has opened chat.+ activity.snapshot.mockReturnValue({ phase: 'running', workingPhase: 'reading-memory', startedAtMs: 123 });+ const running = (await list()).items[0];+ expect(running.display.generation).toEqual({ phase: 'reading-memory', startedAt: 123 });+ expect(running.revision).not.toEqual(discovered.revision);+ const notify = activity.subscribe.mock.calls[0][0];+ const previous = { phase: 'running', workingPhase: 'reading-memory', startedAtMs: 123 };+ notify({ sessionId: 'session-1', previous, current: { ...previous, compactDetail: 'More private text' } });+ expect(activity.invalidate).not.toHaveBeenCalled();+ notify({ sessionId: 'session-1', previous, current: { phase: 'idle' } });+ expect(activity.invalidate).toHaveBeenCalledWith('session-1');+ for (const workingPhase of ['compacting', 'thinking', 'replying']) {+ const current = { ...previous, workingPhase };+ activity.snapshot.mockReturnValue(current);+ notify({ sessionId: 'session-1', previous, current });+ expect((await list()).items[0].display.generation).toEqual({ phase: workingPhase, startedAt: 123 });+ expect(activity.invalidate).toHaveBeenCalledWith('session-1');+ }+ activity.snapshot.mockReturnValue({ phase: 'idle' });+ expect((await list()).items[0].display.generation).toBeUndefined();const get = () => remoteResourceRegistry.get(context, { client, ref: discovered.ref });await expect(get()).resolves.toMatchObject({@@ -91,3 +126,30 @@ it('rejects a previously discovered hidden companion and allows it again after rexpect((await list()).items).toHaveLength(1);await expect(get()).resolves.toMatchObject({ display: { title: 'Sora' } });});+++it('projects and polishes a running delegation, with canonical priority and terminal cleanup', async () => {+ registerBotRemoteResourceProvider();+ sqlite.exec("INSERT INTO bot_session_links VALUES ('d', 'bot-1', 'delegated', 'delegation', NULL, 2), ('a', 'bot-1', 'archived', 'delegation', 3, 3), ('other', 'bot-2', 'foreign', 'delegation', NULL, 4)");+ const source = { id: 'bot-1', name: 'Sora', description: '', avatar: '', avatarColor: 'teal', status: 'active',+ canonicalSessionId: 'session-1', hiddenAt: null, pinnedAt: null, currentVersion: 1, updatedAt: 1, activityAt: 1 };+ db.get.mockResolvedValue(source); db.list.mockResolvedValue([source]);+ const running = (sessionId: string) => ({ sessionId, phase: 'running', workingPhase: 'testing', startedAtMs: 123 });+ activity.snapshots.mockReturnValue([running('delegated'), running('archived'), running('foreign')]);+ const context = { controllerDeviceId: 'remote-mac' };+ const client = { protocolVersion: 1, primitives: ['markdown'], locale: 'en' };+ const list = () => remoteResourceRegistry.list(context, { client, collectionId: 'teammates' });+ expect((await list()).items[0].display.generation).toEqual({ phase: 'testing', startedAt: 123 });+ const getCopy = () => remoteResourceRegistry.get(context, { client,+ ref: { collectionId: 'teammates', kind: 'bot', id: 'working:bot-1/testing' } });+ await getCopy();+ expect(activity.copy).toHaveBeenLastCalledWith({ sessionId: 'delegated', phase: 'testing', locale: 'en' });+ activity.snapshots.mockReturnValue([running('delegated'), { ...running('session-1'), workingPhase: 'compacting', startedAtMs: 124 }]);+ expect((await list()).items[0].display.generation).toEqual({ phase: 'compacting', startedAt: 124 });+ await getCopy();+ expect(activity.copy).toHaveBeenLastCalledWith(expect.objectContaining({ sessionId: 'session-1' }));+ // No archival or other-Bot link can keep this companion busy after its task stops.+ activity.snapshots.mockReturnValue([running('archived'), running('foreign')]);+ expect((await list()).items[0].display.generation).toBeUndefined();+ await expect(getCopy()).rejects.toMatchObject({ code: 'NOT_FOUND' });+});diff --git a/apps/desktop/src/main/localDb/ipc/botRemoteResourceProvider.ts b/apps/desktop/src/main/localDb/ipc/botRemoteResourceProvider.tsindex 4f907c461b..bb4cfd5ee9 100644--- a/apps/desktop/src/main/localDb/ipc/botRemoteResourceProvider.ts+++ b/apps/desktop/src/main/localDb/ipc/botRemoteResourceProvider.ts@@ -1,3 +1,9 @@+import { and, desc, inArray, isNull } from 'drizzle-orm';+import { getDbClient } from '../client/current.js';+import { botSessionLinks } from '../schema.js';+import type { BotRemoteResourceSource } from './bots.js';+import { getAgentIslandService } from '../../agent-island/service.js';+import { scheduleBotRemoteResourceChangedForSession } from '../../maker-ipc/botRemoteResourceInvalidation.js';import { getWorkingStatusCopy } from '../../maker-ipc/workingStatus.js';import { WORKING_PHASES } from '../../../shared/workingStatus.js';import { resolveSystemLocale } from '../../../shared/locale.js';@@ -19,6 +25,24 @@ import {visibleBotRemoteResourceSources,} from './botRemoteResourceProjection.js';+/** Canonical activity wins, then the newest running delegation, like the local roster. */+async function runningBotActivities(sources: readonly BotRemoteResourceSource[]) {+ const running = getAgentIslandService()?.getSessionActivitySnapshots().filter(activity => activity.phase === 'running') ?? [];+ const bySession = new Map(running.map(activity => [activity.sessionId, activity]));+ const delegated = sources.length && running.length ? await getDbClient().drizzle+ .select({ botId: botSessionLinks.botId, sessionId: botSessionLinks.sessionId })+ .from(botSessionLinks).where(and(+ inArray(botSessionLinks.botId, sources.map(source => source.id)),+ inArray(botSessionLinks.sessionId, running.map(activity => activity.sessionId)),+ inArray(botSessionLinks.role, ['canonical', 'delegation']),+ isNull(botSessionLinks.archivedAt),+ )).orderBy(desc(botSessionLinks.createdAt)) : [];+ return new Map(sources.map(source => [source.id,+ (source.canonicalSessionId ? bySession.get(source.canonicalSessionId) : undefined)+ ?? bySession.get(delegated.find(link => link.botId === source.id)?.sessionId ?? ''),+ ]));+}+let registered = false;/** Register the Bot module through the same API future host modules use. */@@ -34,6 +58,7 @@ export function registerBotRemoteResourceProvider(management?: typeof botRemoteM...(management ? { actions: [{ id: 'open-create', label: editorCopy.create }] } : {}),},async list(_context, request) {+ const scope = captureDataOwnerBroadcastScope();const rawQuery = request.query?.trim().toLocaleLowerCase() ?? '';const sources = visibleBotRemoteResourceSources(await listBotRemoteResourceSources());const filtered = rawQuery@@ -41,9 +66,19 @@ export function registerBotRemoteResourceProvider(management?: typeof botRemoteM[source.name, source.description].some((value) => value.toLocaleLowerCase().includes(rawQuery))): sources;- const items = filtered- .slice(0, request.limit ?? 200)- .map(botRemoteCollectionItemFromSource);+ const page = filtered.slice(0, request.limit ?? 200);+ const activities = await runningBotActivities(page);+ if (!isDataOwnerBroadcastScopeCurrent(scope)) throw new RemoteResourceRegistryError('NOT_FOUND', 'Account changed');+ const items = page+ .map(source => {+ const item = botRemoteCollectionItemFromSource(source);+ const activity = activities.get(source.id);+ if (activity?.phase === 'running' && activity.workingPhase) {+ item.display.generation = { phase: activity.workingPhase ?? 'processing', startedAt: activity.startedAtMs };+ item.revision += `:${activity.startedAtMs}:${item.display.generation.phase}`;+ }+ return item;+ });return {collectionId: TEAMMATES_REMOTE_COLLECTION_ID,revision: items.map((item) => item.revision).join('|'),@@ -60,9 +95,12 @@ export function registerBotRemoteResourceProvider(management?: typeof botRemoteMthrow new RemoteResourceRegistryError('NOT_FOUND', 'Unknown working status');const scope = captureDataOwnerBroadcastScope();const [source] = visibleBotRemoteResourceSources([await getBotRemoteResourceSource(botId)]);- if (!source?.canonicalSessionId || !isDataOwnerBroadcastScopeCurrent(scope))+ if (!source || !isDataOwnerBroadcastScopeCurrent(scope))throw new RemoteResourceRegistryError('NOT_FOUND', 'Teammate unavailable');- const result = await getWorkingStatusCopy({ sessionId: source.canonicalSessionId, phase, locale: resolveSystemLocale(request.client.locale) });+ const activity = (await runningBotActivities([source])).get(source.id);+ if (!activity || !isDataOwnerBroadcastScopeCurrent(scope))+ throw new RemoteResourceRegistryError('NOT_FOUND', 'Teammate is not running');+ const result = await getWorkingStatusCopy({ sessionId: activity.sessionId, phase, locale: resolveSystemLocale(request.client.locale) });if (!isDataOwnerBroadcastScopeCurrent(scope)) throw new RemoteResourceRegistryError('NOT_FOUND', 'Account changed');return { ref: request.ref, revision: String(source.currentVersion), display: { title: source.name }, links: [],blocks: [{ id: 'working', primitive: 'status', fallbackMarkdown: result.text ?? '' }] };@@ -122,5 +160,9 @@ export function registerBotRemoteResourceProvider(management?: typeof botRemoteMreturn { effects: [], teammateMessage };},});+ getAgentIslandService()?.subscribeSessionActivity(({ sessionId, previous, current }) => {+ if (previous?.phase !== current?.phase || previous?.workingPhase !== current?.workingPhase+ || previous?.startedAtMs !== current?.startedAtMs) scheduleBotRemoteResourceChangedForSession(sessionId);+ });registered = true;}diff --git a/apps/desktop/src/main/localDb/ipc/bots.ts b/apps/desktop/src/main/localDb/ipc/bots.tsindex 7bb6283347..bd85cbe0d0 100644--- a/apps/desktop/src/main/localDb/ipc/bots.ts+++ b/apps/desktop/src/main/localDb/ipc/bots.ts@@ -394,6 +394,7 @@ async function readCanonicalChatPreview(repliesOnly = false,): Promise<{ preview: string | null; createdAt: number | null; role: BotChatRole | null }> {if (!canonicalSessionId) return { preview: null, createdAt: null, role: null };+ const running = getMakerIfReady()?.getSession(canonicalSessionId)?.isTurnRunning?.() === true;const rows = await db.select({role: messages.role,@@ -405,6 +406,8 @@ async function readCanonicalChatPreview(and(eq(messages.sessionId, canonicalSessionId),repliesOnly ? eq(messages.role, 'assistant') : inArray(messages.role, ['user', 'assistant']),+ // During generation, prose blocks are progress. Only a sealed answer is a reply preview.+ ...(running ? [sql`(${messages.role} != 'assistant' OR json_extract(${messages.agentMeta}, '$.turnCompleted') = 1)`] : []),isNull(messages.rewindAt),sql`(${messages.agentMeta} IS NULL OR json_extract(${messages.agentMeta}, '$.autoResume') IS NOT 1)`,sql`(${messages.agentMeta} IS NULL OR json_type(${messages.agentMeta}, '$.botDirectMessage') IS NULL)`,diff --git a/apps/desktop/src/main/maker-ipc/__tests__/botRemoteResourceInvalidation.test.ts b/apps/desktop/src/main/maker-ipc/__tests__/botRemoteResourceInvalidation.test.tsindex ef40ae99ee..a7866881e3 100644--- a/apps/desktop/src/main/maker-ipc/__tests__/botRemoteResourceInvalidation.test.ts+++ b/apps/desktop/src/main/maker-ipc/__tests__/botRemoteResourceInvalidation.test.ts@@ -1,8 +1,13 @@-import { beforeEach, describe, expect, it, vi } from 'vitest';+import Database from 'better-sqlite3';+import { drizzle } from 'drizzle-orm/better-sqlite3';+import type { SQL } from 'drizzle-orm';+import { botSessionLinks } from '../../localDb/schema.js';+import { afterAll, beforeEach, describe, expect, it, vi } from 'vitest';const h = vi.hoisted(() => ({boundaryPending: false,limit: vi.fn(),+ condition: undefined as SQL | undefined,ownerScope: 'owner-a',tap: vi.fn(),}));@@ -21,7 +26,7 @@ vi.mock('../../localDb/client/current.js', () => ({drizzle: {select: () => ({from: () => ({- where: () => ({ limit: h.limit }),+ where: (condition: SQL) => { h.condition = condition; return { limit: h.limit }; },}),}),},@@ -32,12 +37,17 @@ import {scheduleBotRemoteResourceChangedForSession,} from '../botRemoteResourceInvalidation.js';+const sqlite = new Database(':memory:');+sqlite.exec("CREATE TABLE bot_session_links (id TEXT PRIMARY KEY, bot_id TEXT, session_id TEXT, role TEXT, archived_at INTEGER); INSERT INTO bot_session_links VALUES ('c', 'bot-1', 'session-1', 'canonical', NULL), ('d', 'bot-1', 'delegated', 'delegation', NULL), ('a', 'bot-1', 'archived', 'delegation', 1), ('h', 'bot-1', 'history', 'history', NULL)");+const db = drizzle(sqlite);+afterAll(() => sqlite.close());+describe('Bot remote resource message invalidation', () => {beforeEach(() => {h.boundaryPending = false;h.ownerScope = 'owner-a';h.limit.mockReset();- h.limit.mockResolvedValue([{ botId: 'bot-1' }]);+ h.limit.mockImplementation(async (limit: number) => db.select({ botId: botSessionLinks.botId }).from(botSessionLinks).where(h.condition).limit(limit).all());h.tap.mockReset();});@@ -62,4 +72,16 @@ describe('Bot remote resource message invalidation', () => {expect(h.limit).not.toHaveBeenCalled();expect(h.tap).not.toHaveBeenCalled();});++ it('invalidates delegation activity but excludes archival and history links', async () => {+ h.tap.mockClear();+ scheduleBotRemoteResourceChangedForSession('delegated');+ await vi.waitFor(() => expect(h.tap).toHaveBeenCalledOnce());+ expect(h.tap.mock.calls[0][1].resourceRefs[0].id).toBe('bot-1');+ h.tap.mockClear();+ scheduleBotRemoteResourceChangedForSession('archived');+ scheduleBotRemoteResourceChangedForSession('history');+ await new Promise(resolve => setTimeout(resolve, 0));+ expect(h.tap).not.toHaveBeenCalled();+ });});diff --git a/apps/desktop/src/main/maker-ipc/__tests__/workingStatusIpc.test.ts b/apps/desktop/src/main/maker-ipc/__tests__/workingStatusIpc.test.tsindex 3a5ba53d4e..697cc4aa0f 100644--- a/apps/desktop/src/main/maker-ipc/__tests__/workingStatusIpc.test.ts+++ b/apps/desktop/src/main/maker-ipc/__tests__/workingStatusIpc.test.ts@@ -132,3 +132,53 @@ it.each(['done', 'error', 'status'] as const)('still cancels at product %s afterresolve({ ok: true, text: '翻翻之前记下的事…' });expect(await pending).toEqual({ text: null });});++it('shares same-language captions across surfaces and retains independent locale caches', async () => {+ const read = (locale: string) => h.handler!({}, { sessionId: 'test', phase: 'reading-memory', locale });+ const [a, b] = await Promise.all([read('zh-CN'), read('zh-CN')]);+ expect(a).toEqual(b);+ await read('en');+ await read('zh-CN');+ await read('en');+ expect(h.request).toHaveBeenCalledTimes(2);+ expect(listeners.size).toBe(2);+ emit('done');+ expect(listeners.size).toBe(0);+});+++it('cancels pre-compaction copy without generating a second caption, then resumes after the boundary', async () => {+ let resolve!: (value: unknown) => void;+ h.request.mockReturnValue(new Promise(r => { resolve = r; }));+ const pending = invoke();+ await Promise.resolve();+ emit('status', { isRunning: true, status: 'Compacting...' });+ expect(h.request.mock.calls[0][2].signal.aborted).toBe(true);+ expect(await invoke('compacting')).toEqual({ text: null });+ expect(h.request).toHaveBeenCalledTimes(1);+ resolve({ ok: true, text: '翻翻之前记下的事…' });+ expect(await pending).toEqual({ text: null });+ emit('compact_boundary', { trigger: 'auto' });+ emit('text', { text: 'Public reply' });+ expect(await invoke('replying')).toEqual({ text: null });+ emit('done');+ expect(listeners.size).toBe(0);+});+++it('keeps pending copy for a running parallel tool when another result arrives', async () => {+ await invoke();+ emit('tool_use', { toolUseId: 'memory', toolName: 'bot_memory', input: { action: 'read' } });+ emit('tool_use', { toolUseId: 'file', toolName: 'Read', input: { file_path: 'sample.txt' } });+ let finish!: (value: unknown) => void;+ h.request.mockReturnValue(new Promise(resolve => { finish = resolve; }));+ const pending = invoke('reading-file');+ await Promise.resolve();+ const options = h.request.mock.calls.at(-1)![2];+ emit('tool_result', { toolUseId: 'memory' });+ expect(options.signal.aborted).toBe(false);+ emit('tool_result', { toolUseId: 'file' });+ expect(options.signal.aborted).toBe(true);+ finish({ ok: true, text: '读读这份文件…' });+ expect(await pending).toEqual({ text: null });+});diff --git a/apps/desktop/src/main/maker-ipc/botRemoteResourceInvalidation.ts b/apps/desktop/src/main/maker-ipc/botRemoteResourceInvalidation.tsindex f44f1f4419..32a6fab934 100644--- a/apps/desktop/src/main/maker-ipc/botRemoteResourceInvalidation.ts+++ b/apps/desktop/src/main/maker-ipc/botRemoteResourceInvalidation.ts@@ -1,6 +1,6 @@import { BrowserWindow } from 'electron';import { REMOTE_RESOURCE_CHANGED_CHANNEL } from '@cindy/device-link';-import { and, eq, isNull } from 'drizzle-orm';+import { and, eq, inArray, isNull } from 'drizzle-orm';import {BOT_REMOTE_RESOURCE_KIND,@@ -82,7 +82,7 @@ export function scheduleBotRemoteResourceChangedForSession(.from(botSessionLinks).where(and(eq(botSessionLinks.sessionId, sessionId),- eq(botSessionLinks.role, 'canonical'),+ inArray(botSessionLinks.role, ['canonical', 'delegation']),isNull(botSessionLinks.archivedAt),)).limit(1)diff --git a/apps/desktop/src/main/maker-ipc/workingStatus.ts b/apps/desktop/src/main/maker-ipc/workingStatus.tsindex b7b2988b62..e682381bd8 100644--- a/apps/desktop/src/main/maker-ipc/workingStatus.ts+++ b/apps/desktop/src/main/maker-ipc/workingStatus.ts@@ -6,7 +6,7 @@ import { z } from 'zod';import type { Session } from '@cindy/maker-core';import { isSubagentParentToolUseId } from '@cindy/maker-shared/message-render';import { isProductTurnDoneEvent, isTurnContinuationBoundaryEvent } from '@cindy/maker-shared/turn-continuation';-import { WORKING_PHASES, hasPublicWorkingSubject, publicToolPhase, publicToolResultPhase, type WorkingPhase } from '../../shared/workingStatus.js';+import { WORKING_PHASES, isCompactingWorkingStatus, hasPublicWorkingSubject, publicToolPhase, publicToolResultPhase, type WorkingPhase } from '../../shared/workingStatus.js';import { activeOwnerScopeKey, isAppSessionBoundaryPending } from '../appSessionState.js';import { SUPPORTED_LOCALES } from '../../shared/locale.js';import { getMakerIfReady } from '../maker-host/index.js';@@ -18,9 +18,11 @@ import { MAKER_INVOKE } from './channels.js';import { WorkingStatusCopy, WORKING_STATUS_COPY_INSTRUCTIONS, workingStatusPrompt, validateWorkingStatusCopy } from './workingStatusCopy.js';const requestSchema = z.object({ sessionId: z.string().min(1).max(200), phase: z.enum(WORKING_PHASES), locale: z.enum(SUPPORTED_LOCALES) }).strict();-const copies = new WeakMap<Session, { generation: number; scope: string; copy: WorkingStatusCopy; dispose: () => void }>();+type CopyEntry = { generation: number; scope: string; copy: WorkingStatusCopy; dispose: () => void };+// Different controller languages share their own turn cache without cancelling one another.+const copies = new WeakMap<Session, Map<string, CopyEntry>>();-/** Shared read path. Remote callers must first bind the request to a visible teammate's canonical session. */+/** Shared read path. Remote callers must first bind the request to a visible teammate's active Session. */export async function getWorkingStatusCopy(raw: unknown): Promise<{ text: string | null }> {const { sessionId, phase, locale } = requestSchema.parse(raw);if (!hasPublicWorkingSubject(phase)) return { text: null };@@ -31,7 +33,9 @@ export async function getWorkingStatusCopy(raw: unknown): Promise<{ text: stringconst owner = activeOwnerScopeKey();const chain = getEffectiveAuxiliaryModelChainSnapshot();const scope = JSON.stringify([owner, chain, locale]);- let entry = copies.get(session);+ let localized = copies.get(session);+ if (!localized) { localized = new Map(); copies.set(session, localized); }+ let entry = localized.get(locale);if (entry && (entry.generation !== generation || entry.scope !== scope)) {entry.dispose();entry = undefined;@@ -60,7 +64,7 @@ export async function getWorkingStatusCopy(raw: unknown): Promise<{ text: stringcopy.dispose();offEvent();offStatus();- copies.delete(session);+ if (localized.get(locale)?.copy === copy) localized.delete(locale);};let feedbackPhase: WorkingPhase | null = phase.startsWith('reviewing-') ? phase : null;const toolPhases = new Map<string, WorkingPhase>();@@ -72,7 +76,9 @@ export async function getWorkingStatusCopy(raw: unknown): Promise<{ text: stringif (typeof data.parentToolUseId === 'string' && isSubagentParentToolUseId(data.parentToolUseId)) return;if (isProductTurnDoneEvent(e) || isTerminalTurnErrorEvent(e)|| (e.type === 'status' && data.isRunning === false && !isTurnContinuationBoundaryEvent(e))) { dispose(); return; }- if (e.type === 'interaction_request') copy.observe(null);+ if (e.type === 'status' && isCompactingWorkingStatus(data.status)) { feedbackPhase = null; copy.observe('compacting'); }+ else if (e.type === 'compact_boundary') { feedbackPhase = null; copy.observe('thinking'); }+ else if (e.type === 'interaction_request') copy.observe(null);else if (e.type === 'text' && typeof data.text === 'string' && data.text.length > 0) { feedbackPhase = null; copy.observe('replying'); }else if (e.type === 'thinking') copy.observe(feedbackPhase && feedbackPhase !== 'processing' ? feedbackPhase : 'thinking');else if (e.type === 'tool_use') {@@ -83,13 +89,13 @@ export async function getWorkingStatusCopy(raw: unknown): Promise<{ text: string} else if (e.type === 'tool_result') {const toolPhase = typeof data.toolUseId === 'string' ? toolPhases.get(data.toolUseId) : lastToolPhase;if (typeof data.toolUseId === 'string') toolPhases.delete(data.toolUseId);- feedbackPhase = publicToolResultPhase(toolPhase ?? lastToolPhase);+ feedbackPhase = [...toolPhases.values()].at(-1) ?? publicToolResultPhase(toolPhase ?? lastToolPhase);copy.observe(feedbackPhase);}});const offStatus = session.onStatusChange((status) => { if (status !== 'active') dispose(); });entry = { generation, scope, copy, dispose };- copies.set(session, entry);+ localized.set(locale, entry);}return { text: await entry.copy.request(phase) };}diff --git a/apps/desktop/src/main/maker-ipc/workingStatusCopy.ts b/apps/desktop/src/main/maker-ipc/workingStatusCopy.tsindex 4be24e1059..095e249f85 100644--- a/apps/desktop/src/main/maker-ipc/workingStatusCopy.ts+++ b/apps/desktop/src/main/maker-ipc/workingStatusCopy.ts@@ -1,7 +1,7 @@import { hasPublicWorkingSubject, type WorkingPhase } from '../../shared/workingStatus.js';import { validateTitleOutput } from '../maker-host/title-output-validation.js';-const ACTIONS: Record<WorkingPhase, string> = {+const ACTIONS: Record<Exclude<WorkingPhase, 'compacting'>, string> = {thinking: 'Reasoning is active. The subject is unknown.',replying: 'Writing the reply. Its content is unknown.',processing: 'Work is still in progress. The specific action is unknown.',@@ -38,7 +38,7 @@ export const WORKING_STATUS_COPY_INSTRUCTIONS = [].join('\n');export function workingStatusPrompt(phase: WorkingPhase, locale: string, previous: string | null): string {- return JSON.stringify({ language: locale, execution: ACTIONS[phase], previousCaption: previous });+ return JSON.stringify({ language: locale, execution: phase === 'compacting' ? undefined : ACTIONS[phase], previousCaption: previous });}export function validateWorkingStatusCopy(raw: string, phase?: WorkingPhase): string | null {diff --git a/apps/desktop/src/renderer/__tests__/botGeneratedArtifactsCard.test.tsx b/apps/desktop/src/renderer/__tests__/botGeneratedArtifactsCard.test.tsxindex f0b04b949b..c595b6f431 100644--- a/apps/desktop/src/renderer/__tests__/botGeneratedArtifactsCard.test.tsx+++ b/apps/desktop/src/renderer/__tests__/botGeneratedArtifactsCard.test.tsx@@ -183,7 +183,7 @@ describe('伙伴成果卡', () => {expect(screen.getByTestId('bot-generated-artifacts')).toBeTruthy();});- it.each(['stop', 'error', 'history'])('keeps the preamble folded once a real generated file is visible: %s', async (ending) => {+ it.each(['stop', 'error', 'history'])('omits the preamble and process entry once a real generated file is visible: %s', async (ending) => {let finish!: (value: FileStat) => void;const stat = vi.fn(() => new Promise<FileStat>((resolve) => { finish = resolve; }));window.electronAPI.fsBrowse.statPath = stat;@@ -199,7 +199,8 @@ describe('伙伴成果卡', () => {await act(async () => finish({ kind: 'file', resolvedPath: '/bot/workspace/result.pdf', birthtimeMs: START + 100, mtimeMs: START + 100 }));expect(screen.getByText('result.pdf')).toBeTruthy();expect(screen.queryByTestId('main-prose')).toBeNull();- expect(screen.getByTestId('public-process').textContent).toContain('Generating the report');+ expect(screen.queryByTestId('public-process')).toBeNull();+ expect(screen.queryByText('Generating the report')).toBeNull();if (ending === 'error') expect(screen.getByTestId('error').textContent).toBe('Generation interrupted');expect(stat).toHaveBeenCalledTimes(1);// Virtualized cards leaving the viewport must not revive the preamble.diff --git a/apps/desktop/src/renderer/__tests__/buildRenderItemsKeyStability.test.ts b/apps/desktop/src/renderer/__tests__/buildRenderItemsKeyStability.test.tsindex ac475b37ba..cf56345841 100644--- a/apps/desktop/src/renderer/__tests__/buildRenderItemsKeyStability.test.ts+++ b/apps/desktop/src/renderer/__tests__/buildRenderItemsKeyStability.test.ts@@ -162,7 +162,7 @@ describe('Bot 流式正文呈现', () => {expect(visibleProse()).toEqual(['first', 'second']);});- it('运行中从首字收拢未封口正文与工具,保留可展开过程', () => {+ it('运行中从首字隐藏未封口正文与工具,不保留过程入口', () => {const messages = [mkUser('u1'),mkTool('t1', 'Bash'),@@ -175,7 +175,7 @@ describe('Bot 流式正文呈现', () => {expect(visible.flatMap((item) => (item.type === 'message' ? [item.message.clientId] : [])),).toEqual(['u1']);- expect(visible.some((item) => item.type === 'work_group')).toBe(true);+ expect(visible.some((item) => item.type === 'work_group')).toBe(false);});// Contracts: claude-code/translator assistant text blocks; pi/translator@@ -223,7 +223,7 @@ describe('Bot 流式正文呈现', () => {agentMeta: { turnCompleted: true },});expect(visibleProse()).toEqual(['这是最终答复']);- expect(project().filter((item) => item.type === 'work_group')).toHaveLength(1);+ expect(project().filter((item) => item.type === 'work_group')).toHaveLength(0);expect(state.messages.filter((message) => message.role === 'assistant').map((message) => message.content)).toEqual(['我查一下:', '已找到线索,继续核实', '这是最终答复']);},diff --git a/apps/desktop/src/renderer/__tests__/workGroupHistoryGap.test.ts b/apps/desktop/src/renderer/__tests__/workGroupHistoryGap.test.tsindex 725df578b1..1aacd8e7f0 100644--- a/apps/desktop/src/renderer/__tests__/workGroupHistoryGap.test.ts+++ b/apps/desktop/src/renderer/__tests__/workGroupHistoryGap.test.ts@@ -125,18 +125,14 @@ describe('历史窗口空洞 — 跨空洞不合并工作组', () => {expect(groupContains(beforeGap[0], 't2')).toBe(false);});- it.each([false, true])('伙伴投影保留空洞前答复和两侧独立过程,active=%s', (streaming) => {+ it.each([false, true])('伙伴投影保留空洞前答复并隐藏两侧过程,active=%s', (streaming) => {const { items } = buildRenderItems(gapMessages());const projected = simplifyBotRenderItems(groupWorkRuns(items, streaming), streaming);const prose = projected.flatMap((item) => item.type === 'message' && item.message.role === 'assistant'? [item.message.clientId] : []);expect(prose).toEqual(streaming ? ['a1'] : ['a1', 'a2']);- const groups = workGroups(projected);- expect(groups.find((group) => groupContains(group, 't1'))).not.toBe(- groups.find((group) => groupContains(group, 't2')),- );- expect(groups.find((group) => groupContains(group, 't1'))?.isStreaming).toBe(false);- expect(groups.find((group) => groupContains(group, 't2'))?.isStreaming).toBe(streaming);+ expect(workGroups(projected)).toHaveLength(0);+ expect(projected.some(item => item.type === 'tool_segment')).toBe(false);});it('A2. 没有任何组谎报跨空洞时长(修复前是 2820m29s)', () => {@@ -233,7 +229,7 @@ describe('历史窗口空洞 — 长任务不被误判', () => {const projected = simplifyBotRenderItems(grouped, false);expect(projected.flatMap((item) => item.type === 'message' && item.message.role === 'assistant'? [item.message.clientId] : [])).toEqual(['a1']);- expect(workGroups(projected)).toHaveLength(1);+ expect(workGroups(projected)).toHaveLength(0);});});diff --git a/apps/desktop/src/renderer/features/bots/BotConnectionStatus.tsx b/apps/desktop/src/renderer/features/bots/BotConnectionStatus.tsxindex c9f9aa9d29..cdf9bf8601 100644--- a/apps/desktop/src/renderer/features/bots/BotConnectionStatus.tsx+++ b/apps/desktop/src/renderer/features/bots/BotConnectionStatus.tsx@@ -4,20 +4,16 @@ import { cn } from '@/lib/utils';export function BotConnectionStatus({online = true,deviceName,- activityLabel,inline = false,className,}: {- online?: boolean;+ online?: boolean | null;deviceName?: string;- activityLabel?: string;inline?: boolean;className?: string;}) {const { t } = useTranslation();- const status = online && activityLabel?.trim()- ? activityLabel.trim()- : t(online ? 'bots.remote.online' : 'bots.remote.offline');+ const status = t(online === null ? 'bots.remote.unknown' : online ? 'bots.remote.online' : 'bots.remote.offline');const name = deviceName?.trim();const label = name ? `${status} · ${name}` : status;if (inline) {@@ -33,9 +29,7 @@ export function BotConnectionStatus({title={label}className={cn('absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full border-2 border-sidebar',- !online ? 'bg-[var(--text-tertiary)]'- : activityLabel ? 'bg-[var(--warning-accent)]'- : 'bg-[var(--remote-status-ready)]',+ online === null ? 'bg-[var(--text-tertiary)]' : online ? 'bg-[var(--remote-status-ready)]' : 'bg-[var(--remote-status-failed)]',)}/>);diff --git a/apps/desktop/src/renderer/features/bots/BotGenerationLabel.tsx b/apps/desktop/src/renderer/features/bots/BotGenerationLabel.tsxnew file mode 100644index 0000000000..94c0934f92--- /dev/null+++ b/apps/desktop/src/renderer/features/bots/BotGenerationLabel.tsx@@ -0,0 +1,14 @@+import { useTranslation } from 'react-i18next';+import { WORKING_PHASE_KEYS, type WorkingPhase } from '../../../shared/workingStatus';+import { WorkingStatusText } from '@/features/cc-agent/WorkingStatusText';+import { useWorkingStatusCopy } from './useWorkingStatusCopy';++/** Lists consume exactly the same public phase and host copy cache as the composer. */+export function BotGenerationLabel({ sessionId, phase = 'processing', startedAt = null, remote }: {+ sessionId?: string; phase?: WorkingPhase; startedAt?: number | null;+ remote?: { deviceId: string; botId: string };+}) {+ const { t } = useTranslation();+ const copy = useWorkingStatusCopy(sessionId, startedAt, phase, true, remote);+ return <WorkingStatusText key={startedAt} text={copy || t(WORKING_PHASE_KEYS[phase])} />;+}diff --git a/apps/desktop/src/renderer/features/bots/BotWorkingStatus.tsx b/apps/desktop/src/renderer/features/bots/BotWorkingStatus.tsxindex 1f4291b106..40a52345e6 100644--- a/apps/desktop/src/renderer/features/bots/BotWorkingStatus.tsx+++ b/apps/desktop/src/renderer/features/bots/BotWorkingStatus.tsx@@ -1,3 +1,6 @@+import { useAgentIslandActivity } from '@/state/agentIslandActivity';+import { useRemoteSessionActivity } from '@/features/device-link/remoteSessionActivityStore';+import { readWorkingPhase, WORKING_PHASE_KEYS } from '../../../shared/workingStatus';import type { CSSProperties, ReactNode } from 'react';import { useTranslation } from 'react-i18next';import type { ChatMessage as Message } from '@/lib/makerChatStore';@@ -7,9 +10,10 @@ import { localizePlainAgentStatus, resolvePlainAgentPhase } from '@/features/cc-import { WorkingStatusText } from '@/features/cc-agent/WorkingStatusText';export function BotWorkingStatus({- visible, status, messages, startedAt, foregroundRunning, backgroundWorkActive, avatar, inputWidth, sessionId,+ visible, status, messages, startedAt, foregroundRunning, backgroundWorkActive, avatar, inputWidth, sessionId, remote,}: {sessionId?: string;+ remote?: { deviceId: string; botId: string };visible: boolean;status: string;messages: readonly Message[];@@ -23,13 +27,18 @@ export function BotWorkingStatus({// A Workflow can run alongside the foreground turn. Only background-only// work lacks reliable foreground events for a more specific caption.const processingOnly = backgroundWorkActive && !foregroundRunning;- const phase = processingOnly ? 'processing' : resolvePlainAgentPhase(status, messages, startedAt);- const polished = useWorkingStatusCopy(sessionId, startedAt, phase, visible && !processingOnly);+ const localActivity = useAgentIslandActivity(sessionId ?? '');+ const remoteActivity = useRemoteSessionActivity(sessionId ?? '', remote?.deviceId);+ const activity = remote ? remoteActivity : localActivity;+ const waiting = status === 'Waiting on approval' || status === 'Waiting on input';+ const sharedPhase = !waiting && activity?.phase === 'running' ? readWorkingPhase(activity.workingPhase) : null;+ const phase = processingOnly ? 'processing' : sharedPhase ?? resolvePlainAgentPhase(status, messages, startedAt);+ const polished = useWorkingStatusCopy(sessionId, startedAt, phase, visible && !processingOnly, remote);// Terminal events bypass cadence and opacity: never linger with working copy.if (!visible) return null;const text = processingOnly? t('ccAgent.agentStatus.processing')- : localizePlainAgentStatus(status, messages, startedAt, t);+ : sharedPhase ? t(WORKING_PHASE_KEYS[sharedPhase]) : localizePlainAgentStatus(status, messages, startedAt, t);return (<divdata-testid="bot-working-indicator"diff --git a/apps/desktop/src/renderer/features/bots/BotsSidebar.tsx b/apps/desktop/src/renderer/features/bots/BotsSidebar.tsxindex 34faa88725..f93e6985e1 100644--- a/apps/desktop/src/renderer/features/bots/BotsSidebar.tsx+++ b/apps/desktop/src/renderer/features/bots/BotsSidebar.tsx@@ -1,3 +1,4 @@+import { BotGenerationLabel } from './BotGenerationLabel';import { botRosterLabel } from '../../../shared/botCreation';import { useCallback, useEffect, useMemo, useRef, useState } from 'react';import {@@ -428,11 +429,12 @@ function BotsSidebarContent() {const selected = Boolean(routeCindy);const activity = local ? botRunningActivity(local) : undefined;const subtitle = local ? botListSubtitle(local) : null;- const subtitleText = activity ? activity.compactDetail?.trim() || t('bots.list.typing')+ const subtitleText = activity ? <BotGenerationLabel sessionId={activity.sessionId} phase={activity.workingPhase} startedAt={activity.startedAtMs} />+ : 'deviceId' in bot && bot.online && bot.generation ? <BotGenerationLabel sessionId={bot.sessionId ?? undefined} {...bot.generation} remote={{ deviceId: bot.deviceId, botId: bot.id }} />: subtitle ? subtitle.kind === 'placeholder' ? t('bots.list.startChat') : subtitle.text: 'preview' in bot ? bot.preview || bot.description || t('bots.list.startChat') : '';return <CindyDeviceRow key="cindy-devices" current={currentCindy} options={cindyOptions}- selected={selected} typing={Boolean(activity)} subtitle={subtitleText}+ selected={selected} typing={Boolean(activity || ('deviceId' in bot && bot.online && bot.generation))} subtitle={subtitleText}timestamp={formatBotListTimestamp(local? botListTimestampAt({ lastMessageAt: local.lastMessageAt, working: Boolean(activity) }, now): 'activityAt' in bot ? bot.activityAt : 0, now)}@@ -463,11 +465,11 @@ function BotsSidebarContent() {<button key={remoteBotKey(bot)} type="button" aria-current={selected ? 'page' : undefined}onClick={() => navigate(`/bots/remote/${encodeURIComponent(bot.deviceId)}/${encodeURIComponent(bot.id)}`)}className={cn('flex w-full min-w-0 items-center gap-2.5 rounded-xl px-2.5 py-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring', selected ? 'bg-sidebar-item-active text-sidebar-item-active-foreground' : 'text-[var(--sidebar-nav-text)] hover:bg-sidebar-item-hover')}>- <span className="relative shrink-0"><BotAvatar bot={bot} size="md" /><BotConnectionStatus online={bot.online} deviceName={deviceName} /></span>+ <span className="relative shrink-0"><BotAvatar bot={bot} size="md" /><BotConnectionStatus online={bot.connectionKnown === false ? null : bot.online} deviceName={deviceName} /></span><span className="flex min-w-0 flex-1 flex-col gap-0.5"><span className="truncate text-14 leading-5">{bot.name}</span>- <BotConnectionStatus inline online={bot.online} deviceName={deviceName} className={selected ? 'opacity-70' : 'text-[var(--text-secondary)]'} />- <span className="truncate text-12 leading-4 text-[var(--sidebar-list-muted)]">{bot.preview || bot.description || t('bots.list.startChat')}</span>+ <BotConnectionStatus inline online={bot.connectionKnown === false ? null : bot.online} deviceName={deviceName} className={selected ? 'opacity-70' : 'text-[var(--text-secondary)]'} />+ <span className="truncate text-12 leading-4 text-[var(--sidebar-list-muted)]">{bot.online && bot.generation ? <BotGenerationLabel sessionId={bot.sessionId ?? undefined} {...bot.generation} remote={{ deviceId: bot.deviceId, botId: bot.id }} /> : bot.preview || bot.description || t('bots.list.startChat')}</span></span>{!selected && isRemoteBotUnread(bot) ? <span aria-label={t('bots.list.unread', { count: 1 })} className="size-[7px] shrink-0 rounded-full bg-[var(--bot-unread-bg)]" /> : null}<span className="w-10 shrink-0 self-start pt-0.5 text-right text-11 tabular-nums text-[var(--sidebar-list-muted)]">{formatBotListTimestamp(bot.activityAt, now)}</span>@@ -483,7 +485,7 @@ function BotsSidebarContent() {const activity = botRunningActivity(bot);const typing = Boolean(activity);const subtitleText = typing- ? activity?.compactDetail?.trim() || t('bots.list.typing')+ ? <BotGenerationLabel sessionId={activity?.sessionId} phase={activity?.workingPhase} startedAt={activity?.startedAtMs} />: subtitle.kind === 'placeholder'? t('bots.list.startChat'): subtitle.text;@@ -534,7 +536,7 @@ function BotsSidebarContent() {className="flex min-w-0 flex-1 items-center gap-2.5 rounded-xl px-2.5 py-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring">{/* Keep the existing avatar size alongside identity and message preview. */}- <span className="relative shrink-0"><BotAvatar bot={bot} size="md" /><BotConnectionStatus activityLabel={typing ? subtitleText : undefined} /></span>+ <span className="relative shrink-0"><BotAvatar bot={bot} size="md" /><BotConnectionStatus /></span><span className="flex min-w-0 flex-1 flex-col gap-0.5"><span className="flex items-baseline gap-2">{bot.pinnedAt ? (@@ -575,7 +577,7 @@ function BotsSidebarContent() {mutedClass,typing && 'italic',)}- title={subtitleText}+ title={typeof subtitleText === 'string' ? subtitleText : undefined}>{subtitleText}</span>diff --git a/apps/desktop/src/renderer/features/bots/CindyDevicePicker.tsx b/apps/desktop/src/renderer/features/bots/CindyDevicePicker.tsxindex 626ebf2c98..b5793e0e8e 100644--- a/apps/desktop/src/renderer/features/bots/CindyDevicePicker.tsx+++ b/apps/desktop/src/renderer/features/bots/CindyDevicePicker.tsx@@ -41,7 +41,7 @@ export function CindyDevicePicker({title: option.deviceName,endAdornment: option.unread || !option.online ? (<>- {!option.online ? <span className="text-11 text-[var(--text-secondary)]">{t('bots.remote.offline')}</span> : null}+ {!option.online ? <span className="text-11 text-[var(--text-secondary)]">{t('deviceId' in option.bot && option.bot.connectionKnown === false ? 'bots.remote.unknown' : 'bots.remote.offline')}</span> : null}{option.unread ? (option.unreadCount ? (<spandiff --git a/apps/desktop/src/renderer/features/bots/CindyDeviceRow.tsx b/apps/desktop/src/renderer/features/bots/CindyDeviceRow.tsxindex 262b74f1c3..94206fcf3f 100644--- a/apps/desktop/src/renderer/features/bots/CindyDeviceRow.tsx+++ b/apps/desktop/src/renderer/features/bots/CindyDeviceRow.tsx@@ -25,7 +25,7 @@ export function CindyDeviceRow({current: CindyDeviceOption;options: readonly CindyDeviceOption[];selected: boolean;- subtitle: string;+ subtitle: ReactNode;timestamp: string;typing?: boolean;onOpen: () => void;@@ -59,8 +59,7 @@ export function CindyDeviceRow({<span className="pointer-events-none relative shrink-0"><BotAvatar bot={bot} size="md" /><BotConnectionStatus- online={current.online}- activityLabel={typing ? subtitle : undefined}+ online={'deviceId' in bot && bot.connectionKnown === false ? null : current.online}deviceName={current.label}/></span>@@ -99,7 +98,7 @@ export function CindyDeviceRow({/><spanclassName={cn('truncate text-12 leading-4', mutedClass, typing && 'italic')}- title={subtitle}+ title={typeof subtitle === 'string' ? subtitle : undefined}>{subtitle}</span>diff --git a/apps/desktop/src/renderer/features/bots/__tests__/BotConnectionStatus.test.tsx b/apps/desktop/src/renderer/features/bots/__tests__/BotConnectionStatus.test.tsxnew file mode 100644index 0000000000..340acf009d--- /dev/null+++ b/apps/desktop/src/renderer/features/bots/__tests__/BotConnectionStatus.test.tsx@@ -0,0 +1,17 @@+// @vitest-environment jsdom+import { cleanup, render } from '@testing-library/react';+import { afterEach, expect, it, vi } from 'vitest';+import { BotConnectionStatus } from '../BotConnectionStatus';+vi.mock('react-i18next', () => ({ useTranslation: () => ({ t: (key: string) => key }) }));+afterEach(cleanup);+it('local online stays green; only known remote offline is red; unknown stays neutral', () => {+ const view = render(<BotConnectionStatus />);+ const dot = () => view.container.firstElementChild!;+ expect(dot().className).toContain('--remote-status-ready');+ expect(dot().getAttribute('title')).toBe('bots.remote.online');+ view.rerender(<BotConnectionStatus online={false} />);+ expect(dot().className).toContain('--remote-status-failed');+ view.rerender(<BotConnectionStatus online={null} />);+ expect(dot().className).toContain('--text-tertiary');+ expect(dot().getAttribute('title')).toBe('bots.remote.unknown');+});diff --git a/apps/desktop/src/renderer/features/bots/__tests__/botConversationPresentation.test.ts b/apps/desktop/src/renderer/features/bots/__tests__/botConversationPresentation.test.tsindex b085389ee7..8bb6d37aca 100644--- a/apps/desktop/src/renderer/features/bots/__tests__/botConversationPresentation.test.ts+++ b/apps/desktop/src/renderer/features/bots/__tests__/botConversationPresentation.test.ts@@ -18,14 +18,14 @@ const allKeys = (items: readonly RenderItem[]): string[] => items.flatMap((item)const project = (items: RenderItem[], streaming: boolean) =>simplifyBotRenderItems(groupWorkRuns(items, streaming), streaming);-describe('teammate public execution disclosure', () => {- it('collects many text/tool cycles into one group without repeated prose avatars', () => {+describe('teammate final-result presentation', () => {+ it('omits all process rows and keeps final answers without mutating history', () => {const input = [message('u', 'user'), message('a', 'assistant'), tool('t1'),message('b', 'assistant'), tool('t2'), message('final', 'assistant', 'Result', { turnCompleted: true })];const result = project(input, false);expect(proseIds(result)).toEqual(['final']);- expect(result.filter((item) => item.type === 'work_group')).toHaveLength(1);- expect(allKeys(result)).toEqual(input.map((item) => item.key));+ expect(result.filter((item) => item.type === 'work_group')).toHaveLength(0);+ expect(allKeys(result)).toEqual(['msg-u', 'msg-final']);expect(input[1]).toEqual(message('a', 'assistant'));});@@ -34,11 +34,11 @@ describe('teammate public execution disclosure', () => {expect(proseIds(project(start, true))).toEqual([]);const work = [...start, tool('t1')];expect(proseIds(project(work, true))).toEqual([]);- const group = project(work, true).find((item) => item.type === 'work_group');+ expect(project(work, true).some(item => item.type === 'work_group')).toBe(false);const continued = project([...work, message('b', 'assistant', 'B', { isStreaming: true })], true);expect(proseIds(continued)).toEqual([]);expect(proseIds(project([...work, message('b', 'assistant', 'B', { turnCompleted: true })], false))).toEqual(['b']);- expect(continued.find((item) => item.type === 'work_group')?.key).toBe(group?.key);+ expect(continued.some(item => item.type === 'work_group')).toBe(false);});it.each(['stopped', 'failed', 'history'])('retains the last useful text with no final: %s', () => {@@ -47,7 +47,7 @@ describe('teammate public execution disclosure', () => {const result = project(input, false);expect(proseIds(result)).toEqual(['last']);expect(allKeys(result)).toContain('msg-err');- expect(allKeys(result)).toContain('tools-t2');+ expect(allKeys(result)).not.toContain('tools-t2');});it('keeps all blocks of sealed replies across continuation tools and history reloads', () => {@@ -58,7 +58,7 @@ describe('teammate public execution disclosure', () => {for (const streaming of [true, false]) {const result = project(input, streaming);expect(proseIds(result)).toEqual(['first', 'second', 'third', 'fourth']);- expect(allKeys(result)).toEqual(input.map((item) => item.key));+ expect(allKeys(result)).toEqual(['msg-u', 'msg-first', 'msg-second', 'msg-third', 'msg-fourth']);}});@@ -84,7 +84,7 @@ describe('teammate public execution disclosure', () => {const result = project(input, streaming);expect(proseIds(result)).not.toContain('progress');expect(result.some((item) => item.key === delivery.key)).toBe(true);- expect(allKeys(result)).toContain('msg-progress');+ expect(allKeys(result)).not.toContain('msg-progress');}});@@ -107,7 +107,7 @@ describe('teammate public execution disclosure', () => {message('u2', 'user'), message('explanation', 'assistant'), tool('failed')];const result = simplifyBotRenderItems(groupWorkRuns(input, false), false, new Set(['files']));expect(proseIds(result)).toEqual(['final', 'explanation']);- expect(allKeys(result)).toEqual(input.map((item) => item.key));+ expect(allKeys(result)).toEqual(['msg-u', 'msg-final', 'files', 'msg-u2', 'msg-explanation']);});it('does not extend a final seal or delivery fallback across a history gap without tools', () => {@@ -128,7 +128,7 @@ describe('teammate public execution disclosure', () => {message('answer', 'assistant', '先安装')];const result = project(input, false);expect(proseIds(result)).toEqual(['answer']);- expect(allKeys(result)).toContain('msg-long');+ expect(allKeys(result)).not.toContain('msg-long');});it('keeps completed answers across continuation tools, synthetic triggers and real user turns', () => {@@ -159,21 +159,22 @@ describe('teammate public execution disclosure', () => {const input: RenderItem[] = [message('u', 'user'), message('empty', 'assistant', ' '),{ type: 'work_group', key: 'work-nested', isStreaming: false, children: [thinking, tool('t')] },message('answer', 'assistant')];- expect(allKeys(project(input, false))).toEqual(['msg-u', 'tools-t', 'msg-answer']);+ expect(allKeys(project(input, false))).toEqual(['msg-u', 'msg-answer']);expect(thinking).toEqual(message('private', 'thinking', 'Not public execution'));});- it('preserves unloaded history ownership, retries and ids on expansion', () => {+ it('omits unloaded technical history without calling its expansion or retry API', () => {const deferred = { owner: {}, key: 'range', expanded: false, loading: false, failed: false,toggle: vi.fn(), retry: vi.fn(), setVisible: vi.fn() };const group: RenderItem = { type: 'work_group', key: 'work-history', isStreaming: false,children: [], deferred };const input = [message('u', 'user'), group, message('final', 'assistant')];- expect(simplifyBotRenderItems(input, false)[1]).toEqual(group);+ expect(allKeys(simplifyBotRenderItems(input, false))).toEqual(['msg-u', 'msg-final']);const loaded = { ...group, children: [message('thinking', 'thinking'), message('public', 'assistant'), tool('t')] };const result = simplifyBotRenderItems([input[0], loaded as RenderItem, input[2]], false);- const history = result[1];- expect(history.type === 'work_group' && history.deferred).toBe(deferred);- expect(allKeys(result)).toEqual(['msg-u', 'msg-public', 'tools-t', 'msg-final']);+ expect(allKeys(result)).toEqual(['msg-u', 'msg-final']);+ expect(deferred.toggle).not.toHaveBeenCalled();+ expect(deferred.retry).not.toHaveBeenCalled();+ expect(group.deferred).toBe(deferred);});});diff --git a/apps/desktop/src/renderer/features/bots/__tests__/botsSidebar.test.tsx b/apps/desktop/src/renderer/features/bots/__tests__/botsSidebar.test.tsxindex a31a6cae84..6b620c6db7 100644--- a/apps/desktop/src/renderer/features/bots/__tests__/botsSidebar.test.tsx+++ b/apps/desktop/src/renderer/features/bots/__tests__/botsSidebar.test.tsx@@ -18,7 +18,7 @@ vi.mock('@/components/onboarding/ConnectProviderCard', () => ({const translate = (key: string, opts?: Record<string, unknown>) =>opts ? `${key}:${JSON.stringify(opts)}` : key;vi.mock('react-i18next', () => ({- useTranslation: () => ({ t: translate }),+ useTranslation: () => ({ t: translate, i18n: { resolvedLanguage: 'en' } }),}));const mocks = vi.hoisted(() => ({@@ -383,7 +383,8 @@ describe('teammate host labels', () => {mocks.devices = [{ deviceId: 'local-device', name: 'MBP-M5', isSelf: true }];mocks.islandActivity.set('local-bot-chat', { sessionId: 'local-bot-chat', phase: 'running', compactDetail });const view = await renderSidebar();- expect(screen.getByText(compactDetail)).toBeTruthy();+ expect(screen.queryByText(compactDetail)).toBeNull();+ expect(screen.getByText('ccAgent.agentStatus.processing')).toBeTruthy();expect(screen.queryByText('bots.remote.online')).toBeNull();expect(view.container.innerHTML).not.toContain('MBP-M5');expect(view.container.innerHTML).not.toContain('bots.remote.thisDevice');@@ -402,12 +403,12 @@ describe('teammate host labels', () => {] }];mocks.islandActivity.set('delegated', { sessionId: 'delegated', phase: 'running', compactDetail: ' ' });await renderSidebar();- expect(screen.getByText('bots.list.typing')).toBeTruthy();+ expect(screen.getByText('ccAgent.agentStatus.processing')).toBeTruthy();expect(screen.queryByText('bots.remote.online')).toBeNull();});it('keeps offline status without a device name or a dangling separator', () => {- render(<BotConnectionStatus inline online={false} deviceName=" " activityLabel="Thinking" />);+ render(<BotConnectionStatus inline online={false} deviceName=" " />);expect(screen.getByText('bots.remote.offline').getAttribute('title')).toBe('bots.remote.offline');});@@ -462,7 +463,7 @@ describe('BotsSidebar 「正在输入…」', () => {mocks.islandActivity = new Map([['bot-1-chat', { sessionId: 'bot-1-chat', phase: 'running' }]]);const view = await renderSidebar();- expect(view.container.textContent).toContain('bots.list.typing');+ expect(view.container.textContent).toContain('ccAgent.agentStatus.processing');// 进行中时不再同时挂上一句说过什么 —— 这一行只回答「TA 现在怎么样」。expect(view.container.textContent).not.toContain('Two checks are still red');});@@ -482,7 +483,7 @@ describe('BotsSidebar 「正在输入…」', () => {]);const view = await renderSidebar();- expect(view.container.textContent).not.toContain('bots.list.typing');+ expect(view.container.textContent).not.toContain('ccAgent.agentStatus.processing');expect(view.container.textContent).toContain('Two checks are still red on #2829');});@@ -493,7 +494,7 @@ describe('BotsSidebar 「正在输入…」', () => {]);const view = await renderSidebar();- expect(view.container.textContent).not.toContain('bots.list.typing');+ expect(view.container.textContent).not.toContain('ccAgent.agentStatus.processing');expect(view.container.textContent).toContain('Delivery steward');});@@ -503,7 +504,7 @@ describe('BotsSidebar 「正在输入…」', () => {mocks.islandActivity = new Map([['bot-1-chat', { sessionId: 'bot-1-chat', phase: 'running' }]]);await renderSidebar();- const line = screen.getByText('bots.list.typing');+ const line = screen.getByText('ccAgent.agentStatus.processing').closest('span.italic') as HTMLElement;expect(line).toBeTruthy();expect(line?.className).toContain('italic');expect(line?.className).toContain('text-[var(--sidebar-list-muted)]');diff --git a/apps/desktop/src/renderer/features/bots/__tests__/remoteBots.test.tsx b/apps/desktop/src/renderer/features/bots/__tests__/remoteBots.test.tsxindex 1b8cc5c89a..edac41985d 100644--- a/apps/desktop/src/renderer/features/bots/__tests__/remoteBots.test.tsx+++ b/apps/desktop/src/renderer/features/bots/__tests__/remoteBots.test.tsx@@ -149,3 +149,18 @@ it('keeps cached companions offline on reconnect and preserves device-qualifiedexpect(isRemoteBotUnread(result.current.find((bot) => bot.deviceId === 'a')!)).toBe(false);expect(isRemoteBotUnread(result.current.find((bot) => bot.deviceId === 'b')!)).toBe(true);});++it('does not reinterpret a resource read error as device disconnection', async () => {+ h.devices = [host('reachable')];+ h.invoke.mockResolvedValue(collection());+ const { result } = renderHook(useRoster);+ await waitFor(() => expect(result.current).toHaveLength(1));+ expect(result.current[0].online).toBe(true);+ h.invoke.mockRejectedValue(new Error('model/resource failure'));+ act(() => h.status({ status: 'online' }));+ await waitFor(() => expect(h.invoke).toHaveBeenCalledTimes(2));+ expect(result.current[0].online).toBe(true);+ act(() => h.status({ status: 'stopped' }));+ expect(result.current[0].online).toBe(false);+ expect(result.current[0].connectionKnown).toBe(true);+});diff --git a/apps/desktop/src/renderer/features/bots/__tests__/workingStatusPolish.test.tsx b/apps/desktop/src/renderer/features/bots/__tests__/workingStatusPolish.test.tsxindex 1eb9136b40..60a8f73fe1 100644--- a/apps/desktop/src/renderer/features/bots/__tests__/workingStatusPolish.test.tsx+++ b/apps/desktop/src/renderer/features/bots/__tests__/workingStatusPolish.test.tsx@@ -3,6 +3,7 @@ import React from 'react';import { act, cleanup, render, screen } from '@testing-library/react';import { afterEach, beforeEach, expect, it, vi } from 'vitest';import i18n from '@/i18n';+import { BotGenerationLabel } from '../BotGenerationLabel';import { BotWorkingStatus } from '../BotWorkingStatus';import type { ChatMessage } from '@/lib/makerChatStore';@@ -112,3 +113,47 @@ it.each([tick();expect(screen.getByRole('status').textContent).toBe(text);});++it('remote chat gets polished copy from the host resource, never a local model request', async () => {+ const invoke = vi.fn().mockResolvedValue({ blocks: [{ id: 'working', fallbackMarkdown: '翻翻文件里的内容…' }] });+ Object.assign(window.electronAPI, { deviceLink: { invoke } });+ render(<BotWorkingStatus {...props} remote={{ deviceId: 'host', botId: 'writer' }} messages={[tool('read', { path: 'PRIVATE' })]} />);+ await act(async () => {});+ tick();+ expect(screen.getByRole('status').textContent).toBe('翻翻文件里的内容…');+ expect(request).not.toHaveBeenCalled();+ expect(invoke).toHaveBeenCalledWith('host', expect.any(String), [{+ client: { protocolVersion: 1, primitives: ['status'], locale: 'zh-CN' },+ ref: { collectionId: 'teammates', kind: 'bot', id: 'working:writer/reading-file' },+ }]);+});+++it.each(['Compacting...', 'Compacting context…'])('localizes %s before old live blocks and clears late copy through stop/resume', async (status) => {+ let resolve!: (value: { text: string }) => void;+ request.mockReturnValue(new Promise(r => { resolve = r; }));+ const messages = [tool('bot_memory', { action: 'read' })];+ const view = render(<BotWorkingStatus {...props} messages={messages} />);+ view.rerender(<BotWorkingStatus {...props} status={status} messages={messages} />);+ await act(async () => resolve({ text: '翻翻之前记下的事…' }));+ tick();+ expect(screen.getByRole('status').textContent).toBe('正在整理对话…');+ expect(request).toHaveBeenCalledTimes(1);+ view.rerender(<BotWorkingStatus {...props} />);+ tick();+ expect(screen.getByRole('status').textContent).toBe('正在思考…');+ view.rerender(<BotWorkingStatus {...props} visible={false} />);+ expect(screen.queryByRole('status')).toBeNull();+});+++it.each([+ ['en', 'Organizing the conversation…'], ['zh-CN', '正在整理对话…'],+ ['zh-TW', '正在整理對話…'], ['ja', '会話を整理しています…'], ['ko', '대화를 정리하는 중…'],+])('keeps the list and composer compaction caption identical in %s', async (locale, caption) => {+ await i18n.changeLanguage(locale);+ render(<><BotGenerationLabel sessionId="test" phase="compacting" startedAt={1000}/>+ <BotWorkingStatus {...props} status="Compacting context…" /></>);+ expect(screen.getAllByText(caption)).toHaveLength(2);+ expect(request).not.toHaveBeenCalled();+});diff --git a/apps/desktop/src/renderer/features/bots/botConversationPresentation.ts b/apps/desktop/src/renderer/features/bots/botConversationPresentation.tsindex adc31aee41..5936f92086 100644--- a/apps/desktop/src/renderer/features/bots/botConversationPresentation.ts+++ b/apps/desktop/src/renderer/features/bots/botConversationPresentation.ts@@ -19,22 +19,20 @@ function hasAttachments(message: ChatMessage): boolean {return Boolean(message.images?.length || message.files?.length);}-/** Unwrap local groups, but preserve lazy history ownership and its load/retry API.- * Thinking is deliberately excluded: this disclosure is public execution history.- */+/** Read already loaded delivery/interaction children; technical history stays persisted. */function publicItems(items: readonly RenderItem[]): RenderItem[] {return items.flatMap((item): RenderItem[] => {if (item.type === 'message' && item.message.role === 'thinking') return [];if (item.type !== 'work_group') return [item];const children = publicItems(item.children) as WorkGroupChildItem[];- return item.deferred ? [{ ...item, children }] : children;+ return children;});}/** A presentation-only projection. Never mutate messages or infer intent from prose.* isFinal from the adapters closes a text block, not a turn (Pi/Claude can call- * another tool afterwards). Reuse the normal work-group turn seal, keeping all- * unsealed prose in the disclosure while running. The composer owns live action+ * another tool afterwards). Reuse the normal work-group turn seal, omitting+ * unsealed prose while running. The composer owns live action* feedback. On stop/error or old history without a seal, expose the last useful* prose so an answer or plain-text question cannot disappear permanently.*/@@ -105,18 +103,6 @@ function projectWindow(// A later attachment/card is already the result; do not resurrect its preamble.// Keep later explanatory text after a partial delivery on stop/error/history.const fallbackProse = !active && lastProse > lastDelivery ? lastProse : -1;- let work: WorkGroupChildItem[] = [];- const flushWork = () => {- if (!work.length) return;- // Do not wrap an existing lazy group: it owns expansion and historical ids.- result.push(work.length === 1 && work[0].type === 'work_group' ? work[0] : {- type: 'work_group',- key: `work-bot-${work[0].key}`,- children: work,- isStreaming: active,- });- work = [];- };turn.forEach((item, index) => {if (item.type === 'agent_plan' || item.type === 'turn_changes') return;if (item.type === 'message' && item.message.isSyntheticTrigger) return;@@ -125,19 +111,15 @@ function projectWindow(if (!isCompletedAssistantMessage(item.message) && !sealedAnswers.has(item.message)&& !hasAttachments(item.message) && index !== fallbackProse&& extractRenderedMarkdownImageTargets(item.message.content).length === 0) {- work.push(item);return;}}if (item.type === 'tool_segment' || item.type === 'agent_task' || item.type === 'work_group') {- work.push(item);return;}- flushWork();// Includes authorization, answered questions, errors and all delivery cards.result.push(item);});- flushWork();turn = [];};diff --git a/apps/desktop/src/renderer/features/bots/remoteBotRoster.ts b/apps/desktop/src/renderer/features/bots/remoteBotRoster.tsindex e10f5156ed..834a6bbba0 100644--- a/apps/desktop/src/renderer/features/bots/remoteBotRoster.ts+++ b/apps/desktop/src/renderer/features/bots/remoteBotRoster.ts@@ -1,3 +1,4 @@+import { readWorkingPhase, type WorkingPhase } from '../../../shared/workingStatus';export interface RemoteBot {id: string;deviceId: string;@@ -10,6 +11,8 @@ export interface RemoteBot {activityAt: number;sessionId: string | null;online: boolean;+ connectionKnown?: boolean;+ generation?: { phase: WorkingPhase; startedAt: number | null };lastReplyAt?: number;readAt?: number;}@@ -67,6 +70,11 @@ export function parseRemoteBots(value: unknown, deviceId: string, deviceName: stsessionId: typeof sessionId === 'string' && sessionId ? sessionId : null,lastReplyAt: typeof display.lastReplyAt === 'number' && Number.isFinite(display.lastReplyAt) && display.lastReplyAt >= 0 ? display.lastReplyAt : undefined,online: true,+ connectionKnown: true,+ ...(typeof record(display.generation).phase === 'string' ? { generation: {+ phase: readWorkingPhase(record(display.generation).phase) ?? 'processing',+ startedAt: typeof record(display.generation).startedAt === 'number' && Number.isFinite(record(display.generation).startedAt) ? record(display.generation).startedAt as number : null,+ } } : {}),};});}diff --git a/apps/desktop/src/renderer/features/bots/useRemoteBots.ts b/apps/desktop/src/renderer/features/bots/useRemoteBots.tsindex 9c03311127..4b362059c7 100644--- a/apps/desktop/src/renderer/features/bots/useRemoteBots.ts+++ b/apps/desktop/src/renderer/features/bots/useRemoteBots.ts@@ -62,7 +62,7 @@ export function useRemoteBotSync(): void {avatar: bot.avatar, avatarColor: bot.avatarColor, description: bot.description, preview: bot.preview,activityAt: bot.activityAt, sessionId: typeof bot.sessionId === 'string' ? bot.sessionId : null,lastReplyAt: Number.isFinite(bot.lastReplyAt) ? bot.lastReplyAt : undefined,- readAt: Number.isFinite(bot.readAt) ? bot.readAt : undefined, online: false,+ readAt: Number.isFinite(bot.readAt) ? bot.readAt : undefined, online: false, connectionKnown: false,}));}}@@ -70,7 +70,7 @@ export function useRemoteBotSync(): void {publish(cached);}if (!nextOwner) return;- if (!devices) { publish(snapshot.map((bot) => ({ ...bot, online: false }))); return; }+ if (!devices) { publish(snapshot.map((bot) => ({ ...bot, online: false, connectionKnown: false, generation: undefined }))); return; }let disposed = false;let relayAvailable = false;let statusRevision = 0;@@ -81,7 +81,7 @@ export function useRemoteBotSync(): void {publish(snapshot.filter((bot) => byId.has(bot.deviceId))- .map((bot) => ({ ...bot, online: bot.online && byId.get(bot.deviceId)!.online, deviceName: byId.get(bot.deviceId)!.name })),+ .map((bot) => ({ ...bot, online: bot.online && byId.get(bot.deviceId)!.online, connectionKnown: byId.get(bot.deviceId)!.online ? bot.connectionKnown : true, deviceName: byId.get(bot.deviceId)!.name })),);const generations = new Map<string, number>();const timers = new Map<string, ReturnType<typeof setTimeout>>();@@ -89,6 +89,8 @@ export function useRemoteBotSync(): void {async function refresh(deviceId: string) {const host = byId.get(deviceId);if (!host?.online || !relayAvailable || !current()) return;+ // Reachability comes from the live device directory + relay, never from a list/API error.+ publish(snapshot.map(bot => bot.deviceId === deviceId ? { ...bot, online: true, connectionKnown: true } : bot));const epoch = (generations.get(deviceId) ?? 0) + 1;generations.set(deviceId, epoch);try {@@ -109,11 +111,9 @@ export function useRemoteBotSync(): void {publish([...snapshot.filter((bot) => bot.deviceId !== deviceId), ...bots]);} catch {if (!current() || generations.get(deviceId) !== epoch) return;- // Old hosts do not advertise this API. Keep their cached rows offline;- // retry on a real reconnect or change, never downgrade to a local call.- publish(- snapshot.map((bot) => (bot.deviceId === deviceId ? { ...bot, online: false } : bot)),- );+ // Keep connection evidence and cached identity. An unsupported/failed+ // resource read does not mean the device disconnected.+ publish(snapshot.map(bot => bot.deviceId === deviceId ? { ...bot, generation: undefined } : bot));}}// The app's existing remote-session synchronizer owns the sessions topic.@@ -146,7 +146,7 @@ export function useRemoteBotSync(): void {} else {for (const id of byId.keys()) generations.set(id, (generations.get(id) ?? 0) + 1);publish(- snapshot.map((bot) => ({ ...bot, online: false })),+ snapshot.map((bot) => ({ ...bot, online: false, connectionKnown: state.status === 'stopped' || !byId.get(bot.deviceId)?.online, generation: undefined })),);}});@@ -156,9 +156,9 @@ export function useRemoteBotSync(): void {relayAvailable = state.linkStatus === 'online';if (relayAvailable) {for (const host of hosts) if (host.online) void refresh(host.deviceId);- } else publish(snapshot.map((bot) => ({ ...bot, online: false })));+ } else publish(snapshot.map((bot) => ({ ...bot, online: false, connectionKnown: state.linkStatus === 'stopped' || !byId.get(bot.deviceId)?.online, generation: undefined })));}).catch(() => {- if (current() && revision === statusRevision) publish(snapshot.map((bot) => ({ ...bot, online: false })));+ if (current() && revision === statusRevision) publish(snapshot.map((bot) => ({ ...bot, online: false, connectionKnown: false, generation: undefined })));});return () => {disposed = true;diff --git a/apps/desktop/src/renderer/features/bots/useWorkingStatusCopy.ts b/apps/desktop/src/renderer/features/bots/useWorkingStatusCopy.tsindex 176076f1e9..cc067d6571 100644--- a/apps/desktop/src/renderer/features/bots/useWorkingStatusCopy.ts+++ b/apps/desktop/src/renderer/features/bots/useWorkingStatusCopy.ts@@ -1,3 +1,4 @@+import { REMOTE_RESOURCE_GET_CHANNEL } from '@cindy/device-link';import { useEffect, useState } from 'react';import { useTranslation } from 'react-i18next';import type { SupportedLocale } from '../../../shared/locale';@@ -9,15 +10,23 @@ export function useWorkingStatusCopy(startedAt: number | null,phase: PlainAgentPhase,active: boolean,+ remote?: { deviceId: string; botId: string },): string | null {const { i18n } = useTranslation();const language = i18n.resolvedLanguage;- const key = JSON.stringify([sessionId, startedAt, phase, active, language]);+ const key = JSON.stringify([sessionId, startedAt, phase, active, language, remote?.deviceId, remote?.botId]);const [result, setResult] = useState<{ key: string; text: string | null } | null>(null);useEffect(() => {if (!active || !sessionId || phase === 'waiting-input' || phase === 'waiting-approval' || !hasPublicWorkingSubject(phase)) return;let current = true;- const request = window.electronAPI?.maker?.polishWorkingStatus;+ const request = remote+ ? async (input: { phase: string; locale: string }) => {+ const value = await window.electronAPI.deviceLink.invoke(remote.deviceId, REMOTE_RESOURCE_GET_CHANNEL, [{+ client: { protocolVersion: 1, primitives: ['status'], locale: input.locale },+ ref: { collectionId: 'teammates', kind: 'bot', id: `working:${remote.botId}/${input.phase}` },+ }]) as { blocks?: { id: string; fallbackMarkdown?: string }[] };+ return { text: value.blocks?.find(block => block.id === 'working')?.fallbackMarkdown || null };+ } : window.electronAPI?.maker?.polishWorkingStatus;if (!request) return;void request({ sessionId, phase, locale: language as SupportedLocale }).then(({ text }) => {if (current) setResult({ key, text });diff --git a/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx b/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsxindex 9146c1d8f5..1ea6813814 100644--- a/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx@@ -4845,7 +4845,8 @@ export function CCAgentSessionView({{botChatIdentity ? (<BotWorkingStatuskey={sessionId}- sessionId={remoteDeviceId ? undefined : sessionId ?? undefined}+ sessionId={sessionId ?? undefined}+ remote={remoteDeviceId ? { deviceId: remoteDeviceId, botId: botChatIdentity.id } : undefined}visible={composerRuntimeVisible}status={pendingPermission ? 'Waiting on approval'diff --git a/apps/desktop/src/renderer/features/cc-agent/lib/localizeAgentStatus.ts b/apps/desktop/src/renderer/features/cc-agent/lib/localizeAgentStatus.tsindex 7595098f74..994a6d8970 100644--- a/apps/desktop/src/renderer/features/cc-agent/lib/localizeAgentStatus.ts+++ b/apps/desktop/src/renderer/features/cc-agent/lib/localizeAgentStatus.ts@@ -1,4 +1,4 @@-import { publicToolPhase, publicToolResultPhase, WORKING_PHASE_KEYS, type PlainAgentPhase } from '../../../../shared/workingStatus';+import { isCompactingWorkingStatus, publicToolPhase, publicToolResultPhase, WORKING_PHASE_KEYS, type PlainAgentPhase } from '../../../../shared/workingStatus';import type { TFunction } from 'i18next';import type { ChatMessage as Message } from '@/lib/makerChatStore';import { isSubagentParentToolUseId } from '@cindy/maker-shared/message-render';@@ -53,6 +53,8 @@ export function resolvePlainAgentPhase(if (normalized === 'waiting on approval' || normalized === 'waiting on input') {return normalized === 'waiting on approval' ? 'waiting-approval' : 'waiting-input';}+ // Runtime compaction takes priority over the preceding live text/tool block.+ if (isCompactingWorkingStatus(status)) return 'compacting';let thinking = false;let resultToolId: string | undefined;let sawResult = false;diff --git a/apps/desktop/src/renderer/features/device-link/remoteSessionActivityStore.ts b/apps/desktop/src/renderer/features/device-link/remoteSessionActivityStore.tsindex 1f4f5c4df7..2dd2529b31 100644--- a/apps/desktop/src/renderer/features/device-link/remoteSessionActivityStore.ts+++ b/apps/desktop/src/renderer/features/device-link/remoteSessionActivityStore.ts@@ -27,6 +27,7 @@ export interface RemoteSessionActivity {sessionId: string;phase: RemoteSessionActivityPhase;compactDetail: string;+ workingPhase?: string;interactionKind?: string;attention: boolean;}@@ -62,6 +63,7 @@ function sameActivity(a: RemoteSessionActivity, b: RemoteSessionActivity): boolereturn (a.phase === b.phase &&a.compactDetail === b.compactDetail &&+ a.workingPhase === b.workingPhase &&a.interactionKind === b.interactionKind &&a.attention === b.attention);@@ -151,6 +153,7 @@ export function applyRemoteSessionActivity(deviceId: string, payload: unknown):sessionId,phase: p.phase,compactDetail: typeof p.compactDetail === 'string' ? p.compactDetail : '',+ workingPhase: typeof p.workingPhase === 'string' ? p.workingPhase : undefined,interactionKind: typeof p.interactionKind === 'string' ? p.interactionKind : undefined,attention,};diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex ccfa5c7e91..11037db94b 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -7826,6 +7826,7 @@},"permissionRequest": "{{name}} needs your go-ahead","remote": {+ "unknown": "Connection unknown","online": "Online","offline": "Offline","thisDevice": "This computer",@@ -9744,6 +9745,7 @@"reviewingChecks": "Reviewing check results…","replying": "Replying…","processing": "Working…",+ "organizingConversation": "Organizing the conversation…","thinking": "Thinking…","generating": "Generating…","editingFiles": "Editing files…",diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex c37602d204..115cb4b830 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -7824,6 +7824,7 @@},"permissionRequest": "{{name}} が確認をお願いしています","remote": {+ "unknown": "接続状態不明","online": "オンライン","offline": "オフライン","thisDevice": "このコンピュータ",@@ -9729,6 +9730,7 @@"reviewingChecks": "チェック結果を確認しています…","replying": "返信中…","processing": "処理中…",+ "organizingConversation": "会話を整理しています…","thinking": "考え中…","generating": "生成中…","editingFiles": "ファイルを編集中…",diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex ef52ea38bb..3a369aa216 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -7824,6 +7824,7 @@},"permissionRequest": "{{name}} 님이 확인을 기다리고 있어요","remote": {+ "unknown": "연결 상태 알 수 없음","online": "온라인","offline": "오프라인","thisDevice": "이 컴퓨터",@@ -9729,6 +9730,7 @@"reviewingChecks": "검사 결과를 확인하고 있어요…","replying": "답변 중…","processing": "처리 중…",+ "organizingConversation": "대화를 정리하는 중…","thinking": "생각 중…","generating": "생성 중…","editingFiles": "파일 수정 중…",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex 00443f114b..4f3e8d4643 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -7824,6 +7824,7 @@},"permissionRequest": "{{name}} 想请你确认一下","remote": {+ "unknown": "连接状态未知","online": "在线","offline": "离线","thisDevice": "这台电脑",@@ -9729,6 +9730,7 @@"reviewingChecks": "正在核对检查结果…","replying": "正在回复…","processing": "正在处理…",+ "organizingConversation": "正在整理对话…","thinking": "正在思考…","generating": "正在生成…","editingFiles": "正在编辑文件…",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex 41353fe005..408158b7f7 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -7824,6 +7824,7 @@},"permissionRequest": "{{name}} 想請你確認一下","remote": {+ "unknown": "連線狀態未知","online": "上線","offline": "離線","thisDevice": "這台電腦",@@ -9729,6 +9730,7 @@"reviewingChecks": "正在核對檢查結果…","replying": "正在回覆…","processing": "正在處理…",+ "organizingConversation": "正在整理對話…","thinking": "正在思考…","generating": "正在生成…","editingFiles": "正在編輯檔案…",diff --git a/apps/desktop/src/renderer/state/agentIslandActivity.ts b/apps/desktop/src/renderer/state/agentIslandActivity.tsindex 169d49d870..f85700f2f3 100644--- a/apps/desktop/src/renderer/state/agentIslandActivity.ts+++ b/apps/desktop/src/renderer/state/agentIslandActivity.ts@@ -26,6 +26,7 @@ function emit(): void {function sameActivity(a: AgentIslandSessionActivity, b: AgentIslandSessionActivity): boolean {return (a.phase === b.phase &&+ a.workingPhase === b.workingPhase &&a.recordStatus === b.recordStatus &&a.compactDetail === b.compactDetail &&a.currentActionSummary === b.currentActionSummary &&diff --git a/apps/desktop/src/shared/agentIsland.ts b/apps/desktop/src/shared/agentIsland.tsindex e2b0e5fe31..f7cbb4bdc0 100644--- a/apps/desktop/src/shared/agentIsland.ts+++ b/apps/desktop/src/shared/agentIsland.ts@@ -28,6 +28,7 @@ export interface AgentIslandSessionSnapshot {projectName: string | null;detail: string;compactDetail: string;+ workingPhase?: SessionActivitySnapshot['workingPhase'];messagePreview: AgentIslandActivityLine | null;phase: AgentIslandSessionPhase;agentKind: 'claude-code' | 'codex' | string;diff --git a/apps/desktop/src/shared/workingStatus.ts b/apps/desktop/src/shared/workingStatus.tsindex 67d9d6fab2..41caf2dd33 100644--- a/apps/desktop/src/shared/workingStatus.ts+++ b/apps/desktop/src/shared/workingStatus.ts@@ -1,4 +1,4 @@-export { WORKING_PHASES, publicToolPhase, publicToolResultPhase, hasPublicWorkingSubject, WORKING_PHASE_KEYS, type WorkingPhase, type PlainAgentPhase } from '@cindy/maker-shared';+export { WORKING_PHASES, isCompactingWorkingStatus, readWorkingPhase, publicToolPhase, publicToolResultPhase, hasPublicWorkingSubject, WORKING_PHASE_KEYS, type WorkingPhase, type PlainAgentPhase } from '@cindy/maker-shared';import type { WorkingPhase } from '@cindy/maker-shared';import type { SupportedLocale } from './locale.js';diff --git a/apps/mobile/app/resources/[collectionId].tsx b/apps/mobile/app/resources/[collectionId].tsxindex b02cf0a17b..80d11eec53 100644--- a/apps/mobile/app/resources/[collectionId].tsx+++ b/apps/mobile/app/resources/[collectionId].tsx@@ -23,7 +23,7 @@ import { RemoteCompanionAvatar } from '@/components/RemoteCompanionAvatar';import { MainWindowEmptyState, StatusDot } from '@/components/MobilePrimitives';import { SimpleStackHeader, simpleScreenSafeAreaEdges } from '@/platform/chrome';import { useAuth } from '@/auth/AuthContext';-import { isRemoteResourceHostOnline, readRemoteCollectionCache, writeRemoteCollectionCache } from '@/device-link/remoteResourceAvailability';+import { remoteResourceConnectionState, isRemoteResourceHostOnline, readRemoteCollectionCache, writeRemoteCollectionCache } from '@/device-link/remoteResourceAvailability';import { useDeviceLink } from '@/device-link/DeviceLinkContext';import {type HostedRemoteCollectionItem,@@ -32,6 +32,7 @@ import {normalizeRemoteCollectionItems,parseRemoteResourceTargets,} from '@/device-link/remoteResources';+import { useRemoteSyncCoordinator } from '@/device-link/remoteSyncTask';import { formatRemoteError } from '@/device-link/remoteStatus';import { startFocusedTopicSubscription } from '@/device-link/focusedTopicSubscription';import { goBackGuarded } from '@/utils/backGuard';@@ -90,12 +91,13 @@ export default function RemoteCollectionScreen() {const [itemsAccount, setItemsAccount] = useState(accountGeneration);const [items, setItems] = useState<HostedResourceItem[]>(() => readRemoteCollectionCache(cacheOwner, collectionId));const loadGenerationRef = useRef(0);+ const active = useRef(false);const [loading, setLoading] = useState(true);const [refreshing, setRefreshing] = useState(false);const [error, setError] = useState<string | null>(null);- const load = useCallback(async (visible: boolean) => {- if (hydratedOwner !== cacheOwner) return;+ const read = useCallback(async (visible: boolean, isStale: () => boolean) => {+ if (!active.current || hydratedOwner !== cacheOwner) return;const generation = ++loadGenerationRef.current;const expectedAccount = accountGeneration;if (!collectionId || targets.length === 0) {@@ -110,7 +112,7 @@ export default function RemoteCollectionScreen() {if (relayStatus !== 'online' || getPresenceAvailability(host.deviceId) === false) throw new Error(t('devices.resources.hostOffline'));return { host, response: await listRemoteCollection(invoke, host, collectionId, i18n.language) };}));- if (loadGenerationRef.current !== generation || accountRef.current !== expectedAccount) return;+ if (isStale() || !active.current || loadGenerationRef.current !== generation || accountRef.current !== expectedAccount) return;const next: HostedResourceItem[] = [];const failures: string[] = [];const successfulDeviceIds = new Set<string>();@@ -143,6 +145,11 @@ export default function RemoteCollectionScreen() {setRefreshing(false);}, [accountGeneration, cacheOwner, collectionId, connectionEpoch, getPresenceAvailability, hydratedOwner, i18n.language, invoke, relayStatus, t, targets, presenceKey, user?.id]);+ const requestRefresh = useRemoteSyncCoordinator(+ (run) => read(run.reasons.includes('visible'), run.isStale), JSON.stringify([cacheOwner, collectionId]),+ );+ const load = useCallback((visible: boolean) => requestRefresh({ reason: visible ? 'visible' : 'changed' }), [read, requestRefresh]);+useEffect(() => {loadGenerationRef.current += 1;setItems(readRemoteCollectionCache(cacheOwner, collectionId));@@ -158,8 +165,9 @@ export default function RemoteCollectionScreen() {}, [accountGeneration, cacheOwner, collectionId, user?.id]);useFocusEffect(useCallback(() => {+ active.current = true;void load(false);- return () => { loadGenerationRef.current += 1; };+ return () => { active.current = false; loadGenerationRef.current += 1; };}, [connectionEpoch, load]));useFocusEffect(useCallback(() => {const subscription = AppState.addEventListener('change', (state) => {@@ -219,6 +227,7 @@ export default function RemoteCollectionScreen() {/>{collectionId === 'teammates' ? <TeammateListitems={itemsAccount === accountGeneration ? items : []} loading={loading} refreshing={refreshing} error={error}+ connectionState={host => remoteResourceConnectionState(relayStatus, getPresenceAvailability(host.deviceId))}isOnline={host => isRemoteResourceHostOnline(relayStatus, getPresenceAvailability(host.deviceId), replyEpochs[host.deviceId], connectionEpoch)}onRefresh={() => void load(true)} onSelect={openItem} /> : loading && items.length === 0 ? (<View style={styles.center}>diff --git a/apps/mobile/app/sessions/[sessionId].tsx b/apps/mobile/app/sessions/[sessionId].tsxindex e66dc6da24..d6bcd49cbd 100644--- a/apps/mobile/app/sessions/[sessionId].tsx+++ b/apps/mobile/app/sessions/[sessionId].tsx@@ -1,3 +1,4 @@+import { companionConversationItems } from '@/session/companionConversationPresentation';import { HomeHeaderGlassButton } from '@/session/HomeHeaderGlassButton';import { HomeNewTaskButton } from '@/session/HomeNewTaskButton';import { RecentMessageHistories, MessageHistoryOverlay } from '@/session/RecentMessageHistories';@@ -5593,8 +5594,8 @@ export default function SessionScreen() {],);const messageListItems = useMemo(- () => mergePendingSendItems(renderWindow.items, pendingSendItems, optimisticClientIds),- [pendingSendItems, renderWindow.items, optimisticClientIds],+ () => mergePendingSendItems(companionChat ? companionConversationItems(renderWindow.items) : renderWindow.items, pendingSendItems, optimisticClientIds),+ [companionChat, pendingSendItems, renderWindow.items, optimisticClientIds],);const companionWorkingLabel = useCompanionWorkingLabel({ sessionId, deviceId, botId: companionResource?.ref.id ?? '',active: companionChat && showComposerActivity, messages, reconnectAttempt: remoteSessionRunStatus.reconnectAttempt });@@ -5605,10 +5606,11 @@ export default function SessionScreen() {: activePendingKind === 'ask_user_question' ? 'answer': activePendingKind === 'plan_review' ? 'planReview' : 'attention'}`): companionWorkingLabel;- const hasLiveWorkGroup = messageListItems.some(item => item.type === 'work_group' && item.isStreaming);+ // Hiding progress can change visible rows without changing the underlying stream structure.+ const companionItemsStructureKey = companionChat ? messageListItems.map(item => item.key).join('\u0000') : null;const messageListStructureKey = useMemo(() => ({}),- [pendingSendItems, renderItemsStructureKey, optimisticClientIds],+ [pendingSendItems, renderItemsStructureKey, optimisticClientIds, companionItemsStructureKey],);const shareExpandableBlockIds = useMemo(() => (shareSelectionActive ? collectConversationShareBlockIds(messageListItems) : []),@@ -9211,7 +9213,7 @@ export default function SessionScreen() {imageAnnotation={collaborationReadOnlyReason ? undefined : composerAnnotations.chatAnnotation}queueFooter={(<>- {companionChat && !hasLiveWorkGroup && !companionInlineInteraction ? <CompanionWorkingStatus label={companionWorkingLabel} /> : null}+ {companionChat && !companionInlineInteraction ? <CompanionWorkingStatus label={companionWorkingLabel} /> : null}{companionInlineInteraction && !shareSelectionActive ? <InteractionPanelembeddedcompanion={companionChat}diff --git a/apps/mobile/src/__tests__/CompanionWorkingStatus.test.tsx b/apps/mobile/src/__tests__/CompanionWorkingStatus.test.tsxnew file mode 100644index 0000000000..825ced8c0a--- /dev/null+++ b/apps/mobile/src/__tests__/CompanionWorkingStatus.test.tsx@@ -0,0 +1,64 @@+// @vitest-environment jsdom+import { createElement } from 'react';+import { createRoot } from 'react-dom/client';+import { act } from 'react';+import { expect, it, vi } from 'vitest';+import type { RemoteMessage } from '../session/types';+const h = vi.hoisted(() => ({ activity: { phase: 'running', workingPhase: 'reading-memory' } as Record<string, string>, invoke: vi.fn(), listener: () => {} }));+vi.mock('react-native', () => ({ ActivityIndicator: () => null, View: 'div', StyleSheet: { create: (v: unknown) => v } }));+vi.mock('@/components/AppText', () => ({ Text: 'span' }));+vi.mock('@/theme', () => ({ spacing: {}, typeScale: {}, useTheme: () => ({ colors: {} }) }));+vi.mock('react-i18next', () => ({ useTranslation: () => ({ t: (k: string) => k, i18n: { language: 'en' } }) }));+vi.mock('@/auth/AuthContext', () => ({ useAuth: () => ({ accountGeneration: 1 }) }));+vi.mock('@/device-link/DeviceLinkContext', () => ({ useDeviceLink: () => ({ invoke: h.invoke }) }));+vi.mock('../session/remoteSessionStore', () => ({ remoteSessionStore: {+ getSessionLiveActivity: () => h.activity,+ subscribe: (listener: () => void) => { h.listener = listener; return () => {}; },+} }));+import { useCompanionWorkingLabel } from '../session/CompanionWorkingStatus';+const messages: RemoteMessage[] = [];+function Probe() {+ return useCompanionWorkingLabel({ sessionId: 'chat', deviceId: 'host', botId: 'bot', active: true, messages, reconnectAttempt: null });+}+it('uses the host public phase without messages and immediately drops terminal, error or interaction status', async () => {+ Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true });+ const node = document.createElement('div'); const root = createRoot(node);+ let finish!: (value: unknown) => void;+ h.invoke.mockReturnValue(new Promise(resolve => { finish = resolve; }));+ try {+ await act(async () => root.render(createElement(Probe)));+ expect(node.textContent).toBe('devices.companions.working.reading-memory');+ for (const phase of ['completed', 'error', 'needs-interaction']) {+ await act(async () => { h.activity = { phase }; h.listener(); });+ expect(node.textContent).toBe('');+ }+ await act(async () => finish({ blocks: [{ id: 'working', primitive: 'status', fallbackMarkdown: 'Late caption' }] }));+ expect(node.textContent).toBe('');+ expect(h.invoke).toHaveBeenCalledTimes(1);+ } finally { await act(async () => root.unmount()); }+});+++it('uses host compaction for an unopened chat, ignores old copy, and clears on resume/stop/failure', async () => {+ Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true });+ h.invoke.mockReset();+ h.activity = { phase: 'running', workingPhase: 'reading-memory' };+ let finish!: (value: unknown) => void;+ h.invoke.mockReturnValue(new Promise(resolve => { finish = resolve; }));+ const node = document.createElement('div'); const root = createRoot(node);+ try {+ await act(async () => root.render(createElement(Probe)));+ await act(async () => { h.activity = { phase: 'running', workingPhase: 'compacting' }; h.listener(); });+ await act(async () => finish({ blocks: [{ id: 'working', primitive: 'status', fallbackMarkdown: 'Old copy' }] }));+ expect(node.textContent).toBe('devices.companions.working.compacting');+ expect(h.invoke).toHaveBeenCalledTimes(1);+ await act(async () => { h.activity = { phase: 'running', workingPhase: 'replying' }; h.listener(); });+ expect(node.textContent).toBe('devices.companions.working.replying');+ for (const phase of ['completed', 'error', 'needs-interaction']) {+ await act(async () => { h.activity = { phase, workingPhase: 'compacting' }; h.listener(); });+ expect(node.textContent).toBe('');+ }+ await act(async () => { h.activity = { phase: 'running', compactDetail: 'Compacting context…' }; h.listener(); });+ expect(node.textContent).toBe('devices.companions.working.compacting');+ } finally { await act(async () => root.unmount()); }+});diff --git a/apps/mobile/src/__tests__/TeammateList.test.tsx b/apps/mobile/src/__tests__/TeammateList.test.tsxindex 16c721f4b4..e67087f38e 100644--- a/apps/mobile/src/__tests__/TeammateList.test.tsx+++ b/apps/mobile/src/__tests__/TeammateList.test.tsx@@ -3,12 +3,14 @@ import { act, createElement as el } from 'react';import { createRoot, type Root } from 'react-dom/client';import { afterEach, beforeEach, expect, it, vi } from 'vitest';vi.mock('react-native', () => ({- View: ({ children, testID }: any) => el('div', { 'data-testid': testID }, children),+ View: ({ children, testID, style }: any) => el('div', { 'data-testid': testID, style: Object.assign({}, ...[style].flat().filter(Boolean)) }, children),Pressable: ({ children, testID, accessibilityLabel, disabled, onPress }: any) => el('button', { 'data-testid': testID, 'aria-label': accessibilityLabel, disabled, onClick: onPress }, children),ActivityIndicator: () => null, RefreshControl: () => null,StyleSheet: { create: (v: unknown) => v, hairlineWidth: 1 },FlatList: ({ ListHeaderComponent, ListEmptyComponent, data, renderItem }: any) => el('div', null, ListHeaderComponent, data.length ? data.map((item: any) => renderItem({ item })) : ListEmptyComponent),}));+vi.mock('@/device-link/DeviceLinkContext', () => ({ useDeviceLink: () => ({ invoke: async () => ({ blocks: [] }) }) }));+vi.mock('@/session/remoteSessionStore', () => ({ remoteSessionStore: {} }));vi.mock('@/components/AppText', () => ({ Text: ({ children }: any) => el('span', null, children), TextInput: () => null }));vi.mock('@/components/MobilePrimitives', () => ({ MainWindowEmptyState: ({ title, copy }: any) => el('div', null, title, copy) }));vi.mock('@/components/RemoteCompanionAvatar', () => ({ RemoteCompanionAvatar: () => null }));@@ -16,7 +18,7 @@ vi.mock('lucide-react-native', () => ({ RefreshCw: () => null }));vi.mock('react-i18next', () => ({ useTranslation: () => ({ t: (key: string) => key, i18n: { language: 'en' } }) }));vi.mock('@/i18n', () => ({ i18n: { t: (key: string) => key } }));vi.mock('@/auth/AuthContext', () => ({ useAuth: () => ({ user: { id: 'owner' } }) }));-vi.mock('@/theme', () => ({ useThemedStyles: () => ({}), useTheme: () => ({ colors: {} }) }));+vi.mock('@/theme', () => ({ useThemedStyles: () => ({}), useTheme: () => ({ colors: { statusDone: 'green', statusError: 'red', textTertiary: 'gray' } }), typeScale: { footnote: 12 } }));vi.mock('@/device-link/remoteResourceCache', () => ({ isRemoteResourceUnread: () => false }));vi.mock('@/session/sessionList', () => ({ formatRemoteSessionSidebarTime: () => '' }));vi.mock('@/utils/useMinuteNow', () => ({ useMinuteNow: () => Date.now() }));@@ -52,3 +54,33 @@ it('shows readable message previews rather than Markdown delimiters or link targexpect(node.textContent).toContain('Ready — Weekly brief notes.md');expect(node.textContent).not.toMatch(/\*\*|https:\/\/|`/);});++it('shows shared public generation instead of raw preview without changing online dot', async () => {+ const busy = { ...item, item: { ...item.item, display: { ...item.item.display,+ preview: 'Raw tool commentary', generation: { phase: 'replying', startedAt: 1 } } } };+ await act(async () => root.render(el(TeammateList, { items: [busy], error: null, isOnline: () => true,+ loading: false, refreshing: false, onRefresh: vi.fn(), onSelect: vi.fn(), embedded: true })));+ expect(node.textContent).toContain('devices.companions.working.replying');+ expect(node.textContent).not.toContain('Raw tool commentary');+ expect((node.querySelector('[data-testid="teammate.connection"]') as HTMLElement).style.backgroundColor).toBe('green');+ await render(null, false);+ expect((node.querySelector('[data-testid="teammate.connection"]') as HTMLElement).style.backgroundColor).toBe('red');+ expect(node.textContent).not.toContain('devices.companions.working.replying');+ await render('Model error', true);+ expect((node.querySelector('[data-testid="teammate.connection"]') as HTMLElement).style.backgroundColor).toBe('green');+});++it('keeps the connection green when the list cannot be used, and unknown neutral', async () => {+ for (const connected of [true, null]) {+ await act(async () => root.render(el(TeammateList, { items: [item], error: 'API failed', isOnline: () => false,+ connectionState: () => connected, loading: false, refreshing: false, onRefresh: vi.fn(), onSelect: vi.fn(), embedded: true })));+ expect(node.textContent).not.toContain('devices.resources.hostOffline');+ const dot = node.querySelector('[data-testid="teammate.connection"]') as HTMLElement;+ expect(dot.style.backgroundColor).not.toBe('red');+ if (connected) expect(dot.style.backgroundColor).toBe('green');+ else {+ expect(dot.style.backgroundColor).toBe('gray');+ expect(node.textContent).toContain('devices.resources.connectionUnknown');+ }+ }+});diff --git a/apps/mobile/src/__tests__/companionConversationPresentation.test.ts b/apps/mobile/src/__tests__/companionConversationPresentation.test.tsnew file mode 100644index 0000000000..e682715eec--- /dev/null+++ b/apps/mobile/src/__tests__/companionConversationPresentation.test.ts@@ -0,0 +1,64 @@+import { HISTORY_GAP_SPLIT_MS } from '@cindy/maker-shared/history-gap';+import { expect, it } from 'vitest';+import { buildMobileMessageRenderItems } from '../session/messageRenderModel';+import { companionConversationItems } from '../session/companionConversationPresentation';+import type { RemoteMessage } from '../session/types';+const row = (id: string, role: RemoteMessage['role'], content: unknown, agentMeta: RemoteMessage['agentMeta'] = null): RemoteMessage => ({+ id, clientId: id, sessionId: 'chat', role, content, agentMeta, toolUseId: null, createdAt: new Date(1000 + Number(id.replace(/\D/g, '') || 0)).toISOString(),+});+const bodies = (messages: RemoteMessage[], running: boolean) => companionConversationItems(buildMobileMessageRenderItems(messages, { isSessionStreaming: running }));+const base = [row('u0', 'user', 'Help'), row('a1', 'assistant', 'Public progress'),+ row('t2', 'tool_use', { toolName: 'Read', toolUseId: 't', input: { path: 'private' } }),+ row('r3', 'tool_result', { toolUseId: 't', result: 'technical details' })];+it('has no process entry or commentary during generation, and retains the completed answer', () => {+ const active = bodies(base, true);+ expect(active.map(item => item.type)).toEqual(['message']);+ expect(JSON.stringify(active)).not.toMatch(/Public progress|technical details/);+ const complete = bodies([...base, row('a4', 'assistant', 'Answer', { turnCompleted: true })], false);+ expect(complete.filter(item => item.type === 'message').map(item => item.message.body)).toEqual(['Help', 'Answer']);+ expect(base[1].content).toBe('Public progress');+});+it('retains an interrupted/no-final reply and the actual error', () => {+ const items = bodies([...base, row('a4', 'assistant', 'Useful partial answer'), row('e5', 'error', 'Model failed')], false);+ expect(JSON.stringify(items)).toContain('Useful partial answer');+ expect(JSON.stringify(items)).toContain('Model failed');+ expect(items.some(item => item.type === 'work_group')).toBe(false);+});+it('keeps all contiguous blocks of a sealed final answer', () => {+ const items = bodies([...base, row('a4', 'assistant', 'Part one'), row('a5', 'assistant', 'Part two', { turnCompleted: true })], false);+ const text = items.filter(item => item.type === 'message').map(item => item.message.body);+ expect(text).toEqual(['Help', 'Part one', 'Part two']);+});+it('keeps delivered attachments without their preamble', () => {+ const items = bodies([...base, row('a4', 'assistant', '')], false);+ expect(JSON.stringify(items)).toContain('picture.png');+ expect(JSON.stringify(items)).not.toContain('Public progress');+});+it('retains required questions and plan decisions in the actual message projection', () => {+ const items = bodies([...base,+ row('q4', 'ask_user', { status: 'answered', question: 'Which document?', reply: 'The brief' }),+ row('p5', 'plan_review', { plan: 'Review the brief', status: 'approved' }),+ ], false);+ expect(items.filter(item => item.type === 'message').map(item => item.message.kind))+ .toEqual(['user', 'assistant', 'ask_user', 'plan_review']);+ expect(JSON.stringify(items)).toContain('Which document?');+ expect(JSON.stringify(items)).toContain('Review the brief');+});++it.each([false, true])('does not seal old commentary across an unloaded history gap (streaming=%s)', (running) => {+ const at = (message: RemoteMessage, time: number) => ({ ...message, createdAt: new Date(time).toISOString() });+ const currentStart = 1000 + HISTORY_GAP_SPLIT_MS + 1;+ const messages = [+ at(row('a1', 'assistant', 'Old commentary'), 1000),+ // The intervening user message has not been loaded yet.+ at(row('a2', 'assistant', 'Current answer, first part'), currentStart),+ at(row('a3', 'assistant', 'Current answer, last part', { turnCompleted: true }), currentStart + 1),+ ];+ const texts = (source: RemoteMessage[]) => bodies(source, running)+ .filter(item => item.type === 'message').map(item => item.message.body);+ expect(texts(messages)).toEqual(['Current answer, first part', 'Current answer, last part']);+ // Once the actual user boundary is loaded, retain the older no-final reply+ // through the existing per-turn fallback, independently of the newer seal.+ expect(texts([messages[0], at(row('u2', 'user', 'New question'), currentStart - 1), ...messages.slice(1)]))+ .toEqual(['Old commentary', 'New question', 'Current answer, first part', 'Current answer, last part']);+});diff --git a/apps/mobile/src/__tests__/companionWorkingPhase.test.ts b/apps/mobile/src/__tests__/companionWorkingPhase.test.tsindex 7db0877b89..8a9e84a04a 100644--- a/apps/mobile/src/__tests__/companionWorkingPhase.test.ts+++ b/apps/mobile/src/__tests__/companionWorkingPhase.test.ts@@ -11,8 +11,11 @@ it('tracks public tool subjects and never claims a returned tool is still runninexpect(companionWorkingPhase([...input, row('tool_result', 'failure', { toolUseId: 't' })]).phase).toBe('reviewing-memory');expect(companionWorkingPhase([...input, row('tool_result', 'foreign result', { toolUseId: 'other' })]).phase).toBe('saving-memory');});-it('hands the reply position to actual content or an interaction card', () => {- for (const final of [row('assistant', { text: 'Hello' }), row('assistant', 'Hello'), row('ask_user'), row('plan_review'), row('error')]) {+it('keeps generation visible during assistant text and yields to required interactions', () => {+ for (const text of [row('assistant', { text: 'Hello' }), row('assistant', 'Hello')]) {+ expect(companionWorkingPhase([row('user'), text]).phase).toBe('replying');+ }+ for (const final of [row('ask_user'), row('plan_review'), row('error')]) {expect(companionWorkingPhase([row('user'), final]).phase).toBeNull();}});diff --git a/apps/mobile/src/__tests__/remoteCollectionRead.test.tsx b/apps/mobile/src/__tests__/remoteCollectionRead.test.tsxindex f1634aeac2..f86e43aa11 100644--- a/apps/mobile/src/__tests__/remoteCollectionRead.test.tsx+++ b/apps/mobile/src/__tests__/remoteCollectionRead.test.tsx@@ -4,10 +4,10 @@ import { createRoot } from 'react-dom/client';import { expect, it, vi } from 'vitest';const h = vi.hoisted(() => ({- push: vi.fn(), markRead: vi.fn(),+ push: vi.fn(), markRead: vi.fn(), list: vi.fn(),params: { collectionId: 'teammates', targets: JSON.stringify([{ deviceId: 'mac', deviceName: 'My Mac' }]) },translation: { t: (key: string) => key, i18n: { language: 'en' } },- link: { connectionEpoch: 1, status: 'online', presenceVersion: 1, getPresenceAvailability: () => true, invoke: vi.fn(), onRemoteResourceChanged: () => () => {}, subscribe: vi.fn(), unsubscribe: vi.fn() },+ link: { connectionEpoch: 1, status: 'online', presenceVersion: 1, getPresenceAvailability: () => true, invoke: vi.fn(), onRemoteResourceChanged: vi.fn((_listener: (deviceId: string, payload: { collectionId: string }) => void) => () => {}), subscribe: vi.fn(), unsubscribe: vi.fn() },item: { ref: { collectionId: 'teammates', kind: 'bot', id: 'bot-1' }, revision: '1', display: { title: 'Writer', preview: 'Unread reply', lastReplyAt: 200 } },}));vi.mock('react-native', async () => {@@ -41,7 +41,7 @@ vi.mock('@/session/sessionList', () => ({ formatRemoteSessionSidebarTime: () =>vi.mock('@/utils/useMinuteNow', () => ({ useMinuteNow: () => 0 }));vi.mock('@/utils/useGuardedPush', () => ({ useGuardedPush: () => h.push }));vi.mock('@/device-link/focusedTopicSubscription', () => ({ startFocusedTopicSubscription: () => () => {} }));-vi.mock('@/device-link/remoteResourceAvailability', () => ({ isRemoteResourceHostOnline: () => true, readRemoteCollectionCache: () => [], writeRemoteCollectionCache: () => {} }));+vi.mock('@/device-link/remoteResourceAvailability', async (original) => ({ ...await original<typeof import('@/device-link/remoteResourceAvailability')>(), isRemoteResourceHostOnline: () => true, readRemoteCollectionCache: () => [], writeRemoteCollectionCache: () => {} }));vi.mock('@/device-link/remoteResourceCache', () => ({cacheRemoteResourceItems: vi.fn(), readRemoteResourceSnapshot: async () => ({ items: {} }),isRemoteResourceUnread: () => true, markRemoteResourceRead: h.markRead,@@ -49,12 +49,13 @@ vi.mock('@/device-link/remoteResourceCache', () => ({}));vi.mock('@/device-link/remoteResources', async (original) => ({...await original<typeof import('@/device-link/remoteResources')>(),- listRemoteCollection: async () => ({ collectionId: 'teammates', revision: '1', items: [h.item] }),+ listRemoteCollection: h.list,}));import RemoteCollectionScreen from '../../app/resources/[collectionId]';Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true });it('opening a companion only navigates; unread survives until the destination confirms content display', async () => {+ h.list.mockResolvedValue({ collectionId: 'teammates', revision: '1', items: [h.item] });const container = document.createElement('div');const root = createRoot(container);try {@@ -66,3 +67,28 @@ it('opening a companion only navigates; unread survives until the destination coexpect(h.markRead).not.toHaveBeenCalled();} finally { act(() => root.unmount()); }});+++it('serializes bursts of generation pushes on the resource route and preserves the final refresh', async () => {+ h.list.mockClear();+ let settle!: (value: unknown) => void;+ h.list.mockReturnValue(new Promise(resolve => { settle = resolve; }));+ const container = document.createElement('div');+ const root = createRoot(container);+ try {+ await act(async () => root.render(createElement(RemoteCollectionScreen)));+ const notify = h.link.onRemoteResourceChanged.mock.calls.at(-1)![0];+ await act(async () => { for (let n = 0; n < 20; n++) notify('mac', { collectionId: 'teammates' }); });+ expect(h.list).toHaveBeenCalledTimes(1);+ h.list.mockResolvedValue({ items: [h.item] });+ await act(async () => settle({ items: [] }));+ expect(h.list).toHaveBeenCalledTimes(2);+ expect(container.querySelector('[data-testid="teammates.item.mac.bot-1"]')).not.toBeNull();+ // A queued refresh must not issue another RPC after leaving the route.+ h.list.mockReturnValue(new Promise(resolve => { settle = resolve; }));+ await act(async () => { notify('mac', { collectionId: 'teammates' }); notify('mac', { collectionId: 'teammates' }); });+ act(() => root.unmount());+ await act(async () => settle({ items: [] }));+ expect(h.list).toHaveBeenCalledTimes(3);+ } finally { act(() => root.unmount()); }+});diff --git a/apps/mobile/src/__tests__/remoteResourceAvailability.test.ts b/apps/mobile/src/__tests__/remoteResourceAvailability.test.tsindex ae332d096b..92a7f373d8 100644--- a/apps/mobile/src/__tests__/remoteResourceAvailability.test.ts+++ b/apps/mobile/src/__tests__/remoteResourceAvailability.test.ts@@ -1,5 +1,5 @@import { describe, expect, it } from 'vitest';-import { isRemoteResourceHostOnline, readRemoteCollectionCache, writeRemoteCollectionCache } from '@/device-link/remoteResourceAvailability';+import { remoteResourceConnectionState, isRemoteResourceHostOnline, readRemoteCollectionCache, writeRemoteCollectionCache } from '@/device-link/remoteResourceAvailability';describe('remote resource availability', () => {it('one offline host does not disconnect other hosts', () => {@@ -26,3 +26,12 @@ it('retains a roster across navigation but never across account generations', ()writeRemoteCollectionCache('account:1', 'teammates', rows);expect(readRemoteCollectionCache('account:2', 'teammates')).toEqual([]);});++it('connection color is independent of a successful list reply', () => {+ expect(remoteResourceConnectionState('online', true)).toBe(true);+ expect(isRemoteResourceHostOnline('online', true, undefined, 4)).toBe(false);+ expect(remoteResourceConnectionState('online', false)).toBe(false);+ expect(remoteResourceConnectionState('online', null)).toBeNull();+ expect(remoteResourceConnectionState('reconnecting', true)).toBeNull();+ expect(remoteResourceConnectionState('stopped', true)).toBe(false);+});diff --git a/apps/mobile/src/__tests__/remoteResources.test.ts b/apps/mobile/src/__tests__/remoteResources.test.tsindex 6512815378..65b38de784 100644--- a/apps/mobile/src/__tests__/remoteResources.test.ts+++ b/apps/mobile/src/__tests__/remoteResources.test.ts@@ -228,3 +228,12 @@ describe('portable task controls', () => {expect(JSON.stringify(card)).not.toContain('/private');});});++it('preserves additive public generation state without interpreting unknown future phases', () => {+ const input = (generation?: unknown) => ({ items: [{ ref: { collectionId: 'teammates', kind: 'bot', id: 'bot' },+ display: { title: 'Cindy', generation }, links: [], revision: '1' }] });+ expect(normalizeRemoteCollectionItems(input({ phase: 'replying', startedAt: 123 }), 'teammates')[0].display.generation)+ .toEqual({ phase: 'replying', startedAt: 123 });+ expect(normalizeRemoteCollectionItems(input(), 'teammates')[0].display.generation).toBeUndefined();+ expect(normalizeRemoteCollectionItems(input({ phase: {}, startedAt: Infinity }), 'teammates')[0].display.generation).toBeUndefined();+});diff --git a/apps/mobile/src/__tests__/useRemoteResourceList.test.tsx b/apps/mobile/src/__tests__/useRemoteResourceList.test.tsxindex 000ec4756f..53050125e8 100644--- a/apps/mobile/src/__tests__/useRemoteResourceList.test.tsx+++ b/apps/mobile/src/__tests__/useRemoteResourceList.test.tsx@@ -6,7 +6,7 @@ import type { HostedRemoteCollectionItem, RemoteResourceHostTarget } from '@/devconst h = vi.hoisted(() => ({auth: { user: { id: 'owner' }, accountGeneration: 1 },link: { connectionEpoch: 1, status: 'online', presenceVersion: 1, getPresenceAvailability: vi.fn(() => true as boolean | null),- invoke: vi.fn(), openLink: vi.fn(), onRemoteResourceChanged: vi.fn(() => () => {}), subscribe: vi.fn(), unsubscribe: vi.fn() },+ invoke: vi.fn(), openLink: vi.fn(), onRemoteResourceChanged: vi.fn((_listener: (deviceId: string, payload: { collectionId: string }) => void) => () => {}), subscribe: vi.fn(), unsubscribe: vi.fn() },translation: { t: (key: string) => key, i18n: { language: 'en' } },list: vi.fn(), cached: [] as HostedRemoteCollectionItem[], persist: vi.fn(), snapshot: vi.fn(),}));@@ -123,3 +123,32 @@ it('waits for each host link before reading and recovers a failed handshake withawait render();expect(result.isOnline(targets[1])).toBe(true);});+++it.each([false, true])('coalesces generation invalidations while reading and drains the latest roster (failed=%s)', async (failed) => {+ let settle!: (value: unknown) => void;+ let reject!: (error: Error) => void;+ h.list.mockReturnValue(new Promise((resolve, fail) => { settle = resolve; reject = fail; }));+ await render();+ const notify = h.link.onRemoteResourceChanged.mock.calls.at(-1)![0];+ await act(async () => { for (let n = 0; n < 20; n++) notify('mac', { collectionId: 'teammates' }); });+ // Each host has one request, with just one follow-up roster read queued.+ expect(h.list).toHaveBeenCalledTimes(2);+ h.list.mockResolvedValue({ items: [item('latest-final')] });+ await act(async () => failed ? reject(new Error('stale read failed')) : settle({ items: [item('old-phase')] }));+ expect(h.list).toHaveBeenCalledTimes(4);+ expect(result.items.map(row => row.item.ref.id)).toEqual(['latest-final', 'latest-final']);+ expect(result.loading).toBe(false);+});++it('drops queued invalidations when the picker closes', async () => {+ let settle!: (value: unknown) => void;+ h.list.mockReturnValue(new Promise(resolve => { settle = resolve; }));+ await render();+ const notify = h.link.onRemoteResourceChanged.mock.calls.at(-1)![0];+ await act(async () => notify('mac', { collectionId: 'teammates' }));+ await render(false);+ await act(async () => settle({ items: [item('late')] }));+ expect(h.list).toHaveBeenCalledTimes(2);+ expect(result.items).toEqual([]);+});diff --git a/apps/mobile/src/device-link/remoteResourceAvailability.ts b/apps/mobile/src/device-link/remoteResourceAvailability.tsindex 52e07d33e1..12b5e89776 100644--- a/apps/mobile/src/device-link/remoteResourceAvailability.ts+++ b/apps/mobile/src/device-link/remoteResourceAvailability.ts@@ -23,3 +23,9 @@ export function writeRemoteCollectionCache(owner: string, collectionId: string,if (owner !== cacheOwner) return;collections.set(collectionId, items);}++/** Connection evidence is independent of whether a resource/API request succeeded. */+export function remoteResourceConnectionState(relayStatus: string, presence: boolean | null): boolean | null {+ if (presence === false || relayStatus === 'stopped') return false;+ return relayStatus === 'online' && presence === true ? true : null;+}diff --git a/apps/mobile/src/device-link/remoteResources.ts b/apps/mobile/src/device-link/remoteResources.tsindex ae09e435fb..bb4d164211 100644--- a/apps/mobile/src/device-link/remoteResources.ts+++ b/apps/mobile/src/device-link/remoteResources.ts@@ -145,10 +145,14 @@ function normalizeRemoteDisplay(value: unknown): RemoteResourceDisplay | null {const timestamp = normalizeRemoteTimestamp(record.timestamp);const avatar = normalizeRemoteAvatar(record.avatar);const status = normalizeRemoteStatus(record.status);+ const generation = recordOf(record.generation);+ const generationPhase = boundedString(generation?.phase, 80);+ const generationStartedAt = normalizeRemoteTimestamp(generation?.startedAt);return {title,...(subtitle ? { subtitle } : {}),...(preview ? { preview } : {}),+ ...(generationPhase ? { generation: { phase: generationPhase, startedAt: generationStartedAt ?? null } } : {}),...(timestamp !== undefined ? { timestamp } : {}),...(normalizeRemoteTimestamp(record.lastReplyAt) !== undefined ? { lastReplyAt: record.lastReplyAt as number } : {}),...(avatar ? { avatar } : {}),diff --git a/apps/mobile/src/i18n/locales/en/devices.json b/apps/mobile/src/i18n/locales/en/devices.jsonindex 2ec84c34f6..c6861d1f7d 100644--- a/apps/mobile/src/i18n/locales/en/devices.json+++ b/apps/mobile/src/i18n/locales/en/devices.json@@ -35,6 +35,7 @@"create": "New"},"resources": {+ "connectionUnknown": "Connection unknown","hostOffline": "Offline","titleFallback": "Resources","loading": "Loading…",@@ -940,6 +941,7 @@"thinking": "Thinking…","replying": "Replying…","processing": "Working…",+ "compacting": "Organizing the conversation…","reading-memory": "Reading memory…","saving-memory": "Saving memory…","deleting-memory": "Deleting memory…",diff --git a/apps/mobile/src/i18n/locales/ja/devices.json b/apps/mobile/src/i18n/locales/ja/devices.jsonindex 491103f390..1f22cce9e6 100644--- a/apps/mobile/src/i18n/locales/ja/devices.json+++ b/apps/mobile/src/i18n/locales/ja/devices.json@@ -35,6 +35,7 @@"create": "新規"},"resources": {+ "connectionUnknown": "接続状態不明","hostOffline": "オフライン","titleFallback": "リソース","loading": "読み込み中…",@@ -940,6 +941,7 @@"thinking": "考え中…","replying": "返信中…","processing": "処理中…",+ "compacting": "会話を整理しています…","reading-memory": "記憶を読んでいます…","saving-memory": "記憶を保存しています…","deleting-memory": "記憶を削除しています…",diff --git a/apps/mobile/src/i18n/locales/ko/devices.json b/apps/mobile/src/i18n/locales/ko/devices.jsonindex f56c7b8607..aa3ad9c867 100644--- a/apps/mobile/src/i18n/locales/ko/devices.json+++ b/apps/mobile/src/i18n/locales/ko/devices.json@@ -35,6 +35,7 @@"create": "새로 만들기"},"resources": {+ "connectionUnknown": "연결 상태 알 수 없음","hostOffline": "오프라인","titleFallback": "리소스","loading": "불러오는 중…",@@ -940,6 +941,7 @@"thinking": "생각 중…","replying": "답변 중…","processing": "처리 중…",+ "compacting": "대화를 정리하는 중…","reading-memory": "기억을 읽고 있어요…","saving-memory": "기억을 저장하고 있어요…","deleting-memory": "기억을 삭제하고 있어요…",diff --git a/apps/mobile/src/i18n/locales/zh-CN/devices.json b/apps/mobile/src/i18n/locales/zh-CN/devices.jsonindex 294b33a976..c1a3c0c952 100644--- a/apps/mobile/src/i18n/locales/zh-CN/devices.json+++ b/apps/mobile/src/i18n/locales/zh-CN/devices.json@@ -35,6 +35,7 @@"create": "新建"},"resources": {+ "connectionUnknown": "连接状态未知","hostOffline": "离线","titleFallback": "资源","loading": "正在加载…",@@ -940,6 +941,7 @@"thinking": "正在思考…","replying": "正在回复…","processing": "正在处理…",+ "compacting": "正在整理对话…","reading-memory": "正在读取记忆…","saving-memory": "正在保存记忆…","deleting-memory": "正在删除记忆…",diff --git a/apps/mobile/src/i18n/locales/zh-TW/devices.json b/apps/mobile/src/i18n/locales/zh-TW/devices.jsonindex b1ae8ec2a0..ab4d392e6b 100644--- a/apps/mobile/src/i18n/locales/zh-TW/devices.json+++ b/apps/mobile/src/i18n/locales/zh-TW/devices.json@@ -35,6 +35,7 @@"create": "新建"},"resources": {+ "connectionUnknown": "連線狀態未知","hostOffline": "離線","titleFallback": "資源","loading": "正在載入…",@@ -940,6 +941,7 @@"thinking": "正在思考…","replying": "正在回覆…","processing": "正在處理…",+ "compacting": "正在整理對話…","reading-memory": "正在讀取記憶…","saving-memory": "正在儲存記憶…","deleting-memory": "正在刪除記憶…",diff --git a/apps/mobile/src/session/CompanionWorkingStatus.tsx b/apps/mobile/src/session/CompanionWorkingStatus.tsxindex 0815735132..00d3403e07 100644--- a/apps/mobile/src/session/CompanionWorkingStatus.tsx+++ b/apps/mobile/src/session/CompanionWorkingStatus.tsx@@ -1,10 +1,8 @@-import { useEffect, useMemo, useState, useSyncExternalStore } from 'react';+import { useCompanionGenerationCopy } from './useCompanionGenerationCopy';+import { useMemo, useSyncExternalStore } from 'react';import { ActivityIndicator, StyleSheet, View } from 'react-native';import { useTranslation } from 'react-i18next';-import { REMOTE_RESOURCE_GET_CHANNEL, REMOTE_RESOURCE_PROTOCOL_VERSION } from '@cindy/device-link';-import { hasPublicWorkingSubject } from '@cindy/maker-shared';-import { useDeviceLink } from '@/device-link/DeviceLinkContext';-import { useAuth } from '@/auth/AuthContext';+import { isCompactingWorkingStatus, readWorkingPhase } from '@cindy/maker-shared';import { Text } from '@/components/AppText';import { spacing, typeScale, useTheme } from '@/theme';import { remoteSessionStore, type RemoteSessionRunStatus } from './remoteSessionStore';@@ -16,33 +14,15 @@ export function useCompanionWorkingLabel({ sessionId, deviceId, botId, active, msessionId: string; deviceId: string; botId: string; active: boolean;messages: readonly RemoteMessage[]; reconnectAttempt: RemoteSessionRunStatus['reconnectAttempt'];}) {- const { t, i18n } = useTranslation();- const { invoke } = useDeviceLink();- const { accountGeneration } = useAuth();+ const { t } = useTranslation();const activity = useSyncExternalStore(remoteSessionStore.subscribe, () => remoteSessionStore.getSessionLiveActivity(sessionId));- const { phase, turnId } = useMemo(() => companionWorkingPhase(messages), [messages]);- const shown = active && activity?.phase !== 'needs-interaction' && activity?.phase !== 'error' && (!!reconnectAttempt || phase !== null);- const scope = JSON.stringify([accountGeneration, deviceId, botId, sessionId, turnId, phase, i18n.language, shown, !!reconnectAttempt]);- const [caption, setCaption] = useState<{ scope: string; text: string } | null>(null);- useEffect(() => {- let cancelled = false;- if (shown && phase && hasPublicWorkingSubject(phase) && !reconnectAttempt) {- void invoke<unknown>(deviceId, REMOTE_RESOURCE_GET_CHANNEL, [{ client: {- protocolVersion: REMOTE_RESOURCE_PROTOCOL_VERSION, primitives: ['status'], locale: i18n.language,- }, ref: { collectionId: 'teammates', kind: 'bot', id: `working:${botId}/${phase}` } }]).then(value => {- if (cancelled || !value || typeof value !== 'object') return;- const blocks = (value as { blocks?: unknown }).blocks;- if (!Array.isArray(blocks)) return;- const text = blocks.find(block => block?.id === 'working' && block.primitive === 'status')?.fallbackMarkdown;- if (typeof text === 'string' && text.trim() && text.length <= 160) setCaption({ scope, text });- }).catch(() => { /* Older hosts retain the local factual caption. */ });- }- return () => { cancelled = true; };- }, [scope, invoke]);+ const { phase: fallbackPhase, turnId } = useMemo(() => companionWorkingPhase(messages), [messages]);+ const phase = readWorkingPhase(activity?.workingPhase) ?? (isCompactingWorkingStatus(activity?.compactDetail) ? 'compacting' : fallbackPhase);+ const shown = active && activity?.phase !== 'needs-interaction' && activity?.phase !== 'error' && activity?.phase !== 'completed' && (!!reconnectAttempt || phase !== null);+ const copy = useCompanionGenerationCopy({ deviceId, botId, phase, active: shown && !reconnectAttempt, turnId });if (!shown) return null;return reconnectAttempt ? t(reconnectAttempt.kind === 'overload' ? 'session.screen.modelBusyRetrying'- : reconnectAttempt.kind === 'rate-limit' ? 'session.screen.rateLimitRetrying' : 'session.screen.networkReconnecting')- : caption?.scope === scope ? caption.text : t(`devices.companions.working.${phase ?? 'thinking'}`);+ : reconnectAttempt.kind === 'rate-limit' ? 'session.screen.rateLimitRetrying' : 'session.screen.networkReconnecting') : copy;}export function CompanionWorkingStatus({ label }: { label: string | null }) {diff --git a/apps/mobile/src/session/TeammateGenerationLabel.tsx b/apps/mobile/src/session/TeammateGenerationLabel.tsxnew file mode 100644index 0000000000..df120503de--- /dev/null+++ b/apps/mobile/src/session/TeammateGenerationLabel.tsx@@ -0,0 +1,14 @@+import { readWorkingPhase } from '@cindy/maker-shared';+import type { RemoteResourceDisplay } from '@cindy/device-link';+import { Text } from '@/components/AppText';+import { useTheme, typeScale } from '@/theme';+import { useCompanionGenerationCopy } from './useCompanionGenerationCopy';++export function TeammateGenerationLabel({ deviceId, botId, generation }: {+ deviceId: string; botId: string; generation: NonNullable<RemoteResourceDisplay['generation']>;+}) {+ const { colors } = useTheme();+ const label = useCompanionGenerationCopy({ deviceId, botId, phase: readWorkingPhase(generation.phase) ?? 'processing',+ active: true, turnId: String(generation.startedAt) });+ return <Text numberOfLines={1} style={{ color: colors.textSecondary, fontSize: typeScale.footnote }}>{label}</Text>;+}diff --git a/apps/mobile/src/session/TeammateList.tsx b/apps/mobile/src/session/TeammateList.tsxindex 30ecc135b5..d8838bd00c 100644--- a/apps/mobile/src/session/TeammateList.tsx+++ b/apps/mobile/src/session/TeammateList.tsx@@ -1,3 +1,5 @@+import { readWorkingPhase } from '@cindy/maker-shared';+import { TeammateGenerationLabel } from './TeammateGenerationLabel';import { useMemo, useState } from 'react';import { ActivityIndicator, FlatList, Pressable, RefreshControl, StyleSheet, View } from 'react-native';import { useTranslation } from 'react-i18next';@@ -23,6 +25,7 @@ export interface TeammateListProps {refreshing: boolean;error: string | null;isOnline(host: RemoteResourceHostTarget): boolean;+ connectionState?(host: RemoteResourceHostTarget): boolean | null;onRefresh(): void;onSelect(item: HostedRemoteCollectionItem): void;current?: LastTeammateIdentity | null;@@ -32,7 +35,7 @@ export interface TeammateListProps {onInteract?(): void;}/** Flat identity list shared by home, collection route and the name picker. No host headings or groups. */-export function TeammateList({ items, loading, refreshing, error, isOnline, onRefresh, onSelect,+export function TeammateList({ items, loading, refreshing, error, isOnline, connectionState, onRefresh, onSelect,current = null, embedded = false, autoFocusSearch = false, onInteract }: TeammateListProps) {const { t, i18n } = useTranslation();const { user } = useAuth();@@ -72,6 +75,9 @@ export function TeammateList({ items, loading, refreshing, error, isOnline, onReconst preview = display.preview ? parseMobileMarkdownInlines(resolveRemoteText(display.preview, i18n.language)).map(inline => inline.type === 'image' ? inline.alt : inline.text).join('').replace(/\s+/g, ' ').trim() : '';const online = isOnline(row.host);+ const connected = connectionState ? connectionState(row.host) : online;+ const accessiblePreview = online && display.generation+ ? t(`devices.companions.working.${readWorkingPhase(display.generation.phase) ?? 'processing'}`) : online ? preview : '';const ambiguous = (duplicateNames.get(title.normalize('NFKC').toLocaleLowerCase(i18n.language)) ?? 0) > 1;const source = ambiguous ? row.host.deviceName : '';const unread = isRemoteResourceUnread(user?.id ?? '', row.host.deviceId, row.item.ref.id, display.lastReplyAt);@@ -79,18 +85,18 @@ export function TeammateList({ items, loading, refreshing, error, isOnline, onReconst time = timestamp !== undefined && Number.isFinite(new Date(timestamp).getTime())? formatRemoteSessionSidebarTime(new Date(timestamp).toISOString(), now) : '';const selected = sameTeammate(current, teammateIdentity(row));- const meta = [!online ? t('devices.resources.hostOffline') : '', source].filter(Boolean).join(' · ');+ const meta = [connected === false ? t('devices.resources.hostOffline') : connected === null ? t('devices.resources.connectionUnknown') : '', source].filter(Boolean).join(' · ');return <Pressable key={row.key} accessibilityRole="button" accessibilityState={{ selected, disabled: !online }}- accessibilityLabel={[title, preview, time, unread ? t('devices.companions.unread') : '', meta].filter(Boolean).join(', ')}+ accessibilityLabel={[title, accessiblePreview, time, unread ? t('devices.companions.unread') : '', meta].filter(Boolean).join(', ')}disabled={!online} onPress={() => onSelect(row)} style={({ pressed }) => [styles.row, selected && styles.selected, pressed && styles.pressed]}testID={`teammates.item.${row.host.deviceId}.${row.item.ref.id}`}>- <View style={styles.avatar}><RemoteCompanionAvatar avatar={display.avatar} deviceId={row.host.deviceId} name={title} online={online} /></View>+ <View style={styles.avatar}><RemoteCompanionAvatar avatar={display.avatar} deviceId={row.host.deviceId} name={title} online={online} /><View testID="teammate.connection" style={[styles.connection, { backgroundColor: connected === null ? colors.textTertiary : connected ? colors.statusDone : colors.statusError }]} /></View><View style={styles.body}><View style={styles.titleRow}><Text numberOfLines={1} style={styles.title}>{title}</Text>{time ? <Text numberOfLines={1} style={styles.time}>{time}</Text> : null}{unread ? <View style={styles.unread} accessibilityLabel={t('devices.companions.unread')} /> : null}</View>- {preview && online ? <Text numberOfLines={1} style={styles.preview}>{preview}</Text> : null}+ {online && display.generation ? <TeammateGenerationLabel deviceId={row.host.deviceId} botId={row.item.ref.id} generation={display.generation} /> : preview && online ? <Text numberOfLines={1} style={styles.preview}>{preview}</Text> : null}{meta ? <Text numberOfLines={1} style={styles.meta}>{meta}</Text> : null}</View></Pressable>;@@ -114,6 +120,7 @@ const makeStyles = (colors: ThemeColors) => StyleSheet.create({retry: { minWidth: 44, minHeight: 44, alignItems: 'center', justifyContent: 'center' },row: { flexDirection: 'row', alignItems: 'center', gap: spacing.md, paddingHorizontal: spacing.lg, paddingVertical: spacing.md, minHeight: 78 },avatar: { width: 44, height: 44, borderRadius: radius.pill, backgroundColor: colors.surfaceChip, alignItems: 'center', justifyContent: 'center' },+ connection: { position: 'absolute', right: 0, bottom: 0, width: 10, height: 10, borderRadius: radius.pill, borderWidth: 2, borderColor: colors.surface },selected: { backgroundColor: colors.surfaceChip, borderRadius: radius.container },pressed: { opacity: 0.72 },body: { flex: 1, minWidth: 0, gap: spacing.xs, borderBottomColor: colors.border,diff --git a/apps/mobile/src/session/companionConversationPresentation.ts b/apps/mobile/src/session/companionConversationPresentation.tsnew file mode 100644index 0000000000..05f1ff5a42--- /dev/null+++ b/apps/mobile/src/session/companionConversationPresentation.ts@@ -0,0 +1,49 @@+import { HISTORY_GAP_SPLIT_MS } from '@cindy/maker-shared/history-gap';+import { collectMobileMarkdownImages } from './messageMarkdown';+import type { MobileMessageRenderItem } from './messageRenderModel';++const isDelivery = (item: MobileMessageRenderItem) => item.type === 'tool_media' && item.tools.some(tool => !!tool.media?.length || !!tool.files?.length)+ || item.type === 'message' && (!!item.message.attachments?.length || !!item.message.media?.length+ || !!item.message.files?.length || collectMobileMarkdownImages(item.message.body).length > 0);++/** Presentation only. The host's persisted messages and lazy history remain intact. */+export function companionConversationItems(items: readonly MobileMessageRenderItem[]): MobileMessageRenderItem[] {+ const sealed = new Set<string>();+ let sealedRun = false;+ let nextAssistantAt: number | null = null;+ for (const item of [...items].reverse()) {+ if (item.type !== 'message' || item.message.kind !== 'assistant' || !item.message.body.trim() || item.message.systemCardType) {+ sealedRun = false;+ nextAssistantAt = null;+ } else {+ const createdAt = Date.parse(item.message.createdAt);+ if (Number.isFinite(createdAt)) {+ // Missing history may hide the user boundary between these messages.+ // A newer final marker can only seal prose in the same loaded window.+ if (nextAssistantAt !== null && nextAssistantAt - createdAt > HISTORY_GAP_SPLIT_MS) sealedRun = false;+ nextAssistantAt = createdAt;+ }+ sealedRun ||= item.message.turnCompleted === true;+ if (sealedRun) sealed.add(item.key);+ }+ }+ const flattened = items.flatMap(item => item.type === 'work_group' ? companionConversationItems(item.children) : [item]);+ // A later delivery is already the result. Do not restore its unsealed preamble.+ const deliveredAfter = new Set<string>();+ let delivery = false;+ for (const item of [...flattened].reverse()) {+ if (item.type === 'message' && item.message.kind === 'user') delivery = false;+ else if (isDelivery(item)) delivery = true;+ else if (delivery) deliveredAfter.add(item.key);+ }+ return flattened.filter(item => {+ if (item.type === 'thinking' || item.type === 'tool_group' || item.type === 'agent_task'+ || item.type === 'subagent_group' || item.type === 'todo') return false;+ if (item.type !== 'message') return true;+ const message = item.message;+ if (message.systemCardType) return true;+ if (message.kind === 'thinking' || message.kind === 'tool') return false;+ return message.kind !== 'assistant' || message.turnCompleted || sealed.has(item.key) || isDelivery(item)+ || message.isTurnFinalAssistant && !deliveredAfter.has(item.key);+ });+}diff --git a/apps/mobile/src/session/companionWorkingPhase.ts b/apps/mobile/src/session/companionWorkingPhase.tsindex 8da4dcc451..f469241419 100644--- a/apps/mobile/src/session/companionWorkingPhase.ts+++ b/apps/mobile/src/session/companionWorkingPhase.ts@@ -19,7 +19,7 @@ export function companionWorkingPhase(messages: readonly RemoteMessage[]): { pha} else if (message.role === 'tool_result') {const id = message.toolUseId ?? (message.content && typeof message.content === 'object' ? (message.content as Record<string, unknown>).toolUseId : null);if (typeof id === 'string' && tools.has(id)) { phase = publicToolResultPhase(tools.get(id)!); tools.delete(id); }- } else if (message.role === 'assistant' && messageContentToPreview(message.content).trim()) phase = null;+ } else if (message.role === 'assistant' && messageContentToPreview(message.content).trim()) phase = 'replying';else if (message.role === 'ask_user' || message.role === 'plan_review' || message.role === 'error') phase = null;}return { phase, turnId };diff --git a/apps/mobile/src/session/remoteSessionStore.ts b/apps/mobile/src/session/remoteSessionStore.tsindex a870bb62c6..28934e1a03 100644--- a/apps/mobile/src/session/remoteSessionStore.ts+++ b/apps/mobile/src/session/remoteSessionStore.ts@@ -4513,6 +4513,7 @@ export const remoteSessionStore = {sessionId,phase,compactDetail,+ workingPhase: readString(payload, 'workingPhase') ?? undefined,interactionKind: readString(payload, 'interactionKind') ?? undefined,attention: payload.attention === true,};diff --git a/apps/mobile/src/session/useCompanionGenerationCopy.ts b/apps/mobile/src/session/useCompanionGenerationCopy.tsnew file mode 100644index 0000000000..dad1cc68fb--- /dev/null+++ b/apps/mobile/src/session/useCompanionGenerationCopy.ts@@ -0,0 +1,33 @@+import { useEffect, useState } from 'react';+import { useTranslation } from 'react-i18next';+import { REMOTE_RESOURCE_GET_CHANNEL, REMOTE_RESOURCE_PROTOCOL_VERSION } from '@cindy/device-link';+import { hasPublicWorkingSubject, type WorkingPhase } from '@cindy/maker-shared';+import { useDeviceLink } from '@/device-link/DeviceLinkContext';+import { useAuth } from '@/auth/AuthContext';++/** Both list and composer read the host's per-turn/per-language cache. */+export function useCompanionGenerationCopy({ deviceId, botId, phase, active, turnId }: {+ deviceId: string; botId: string; phase: WorkingPhase | null; active: boolean; turnId: string;+}) {+ const { t, i18n } = useTranslation();+ const { invoke } = useDeviceLink();+ const { accountGeneration } = useAuth();+ const scope = JSON.stringify([accountGeneration, deviceId, botId, turnId, phase, i18n.language, active]);+ const [caption, setCaption] = useState<{ scope: string; text: string } | null>(null);+ useEffect(() => {+ let cancelled = false;+ if (active && phase && hasPublicWorkingSubject(phase)) {+ void invoke<unknown>(deviceId, REMOTE_RESOURCE_GET_CHANNEL, [{ client: {+ protocolVersion: REMOTE_RESOURCE_PROTOCOL_VERSION, primitives: ['status'], locale: i18n.language,+ }, ref: { collectionId: 'teammates', kind: 'bot', id: `working:${botId}/${phase}` } }]).then(value => {+ if (cancelled || !value || typeof value !== 'object') return;+ const blocks = (value as { blocks?: unknown }).blocks;+ if (!Array.isArray(blocks)) return;+ const text = blocks.find(block => block?.id === 'working' && block.primitive === 'status')?.fallbackMarkdown;+ if (typeof text === 'string' && text.trim() && text.length <= 160) setCaption({ scope, text });+ }).catch(() => { /* Older hosts retain the local factual caption. */ });+ }+ return () => { cancelled = true; };+ }, [scope, invoke]);+ return active ? caption?.scope === scope ? caption.text : t(`devices.companions.working.${phase ?? 'processing'}`) : null;+}diff --git a/apps/mobile/src/session/useRemoteResourceList.ts b/apps/mobile/src/session/useRemoteResourceList.tsindex a3bc2c89a1..0d593a0c8a 100644--- a/apps/mobile/src/session/useRemoteResourceList.ts+++ b/apps/mobile/src/session/useRemoteResourceList.ts@@ -9,10 +9,11 @@ import {cacheRemoteResourceItems, readRemoteResourceSnapshot,remoteResourceCacheRevision, subscribeRemoteResourceCache,} from '@/device-link/remoteResourceCache';-import { isRemoteResourceHostOnline, readRemoteCollectionCache, writeRemoteCollectionCache } from '@/device-link/remoteResourceAvailability';+import { remoteResourceConnectionState, isRemoteResourceHostOnline, readRemoteCollectionCache, writeRemoteCollectionCache } from '@/device-link/remoteResourceAvailability';import { listRemoteCollection, mergeRemoteCollectionHostShards, normalizeRemoteCollectionItems,type HostedRemoteCollectionItem, type RemoteResourceHostTarget } from '@/device-link/remoteResources';import { formatRemoteError } from '@/device-link/remoteStatus';+import { useRemoteSyncCoordinator } from '@/device-link/remoteSyncTask';import { startBoundedStartupRead } from './mobileHomeStartup';/** One roster reader for resource routes, home and the picker. Host shards reconcile independently. */@@ -49,10 +50,10 @@ export function useRemoteResourceList(collectionId: string, targets: readonly Rereturn () => { cancelled = true; generation.current += 1; };}, [binding, collectionId, owner, user?.id]);- const refresh = useCallback(async (visible = true) => {+ const read = useCallback(async (visible: boolean, isStale: () => boolean) => {if (!enabled || !active.current || hydrated !== binding || !collectionId) return;const expected = ++generation.current;- const current = () => generation.current === expected && bindingRef.current === binding && active.current;+ const current = () => !isStale() && generation.current === expected && bindingRef.current === binding && active.current;setState((old) => ({ ...old, loading: true, refreshing: visible, error: null }));const next: HostedRemoteCollectionItem[] = [];const succeeded = new Set<string>();@@ -84,6 +85,13 @@ export function useRemoteResourceList(collectionId: string, targets: readonly Re});}, [binding, collectionId, connectionEpoch, enabled, getPresenceAvailability, hydrated, i18n.language, invoke, openLink, presenceKey, status, t, targets]);+ // Phase pushes can arrive faster than a roster RPC. Keep one active read and+ // one latest follow-up, using the same coordinator as other remote snapshots.+ const requestRefresh = useRemoteSyncCoordinator(+ (run) => read(run.reasons.includes('visible'), run.isStale), binding,+ );+ const refresh = useCallback((visible = true) => requestRefresh({ reason: visible ? 'visible' : 'changed' }), [read, requestRefresh]);+// Persist after commit, never from a React state updater (which may be replayed).useEffect(() => {if (state.binding !== binding || state.loading || hydrated !== binding) return;@@ -114,5 +122,6 @@ export function useRemoteResourceList(collectionId: string, targets: readonly Rerefreshing: ownState && state.refreshing,error: ownState ? state.error : null,isOnline, refresh,+ connectionState: (host: RemoteResourceHostTarget) => ownState ? remoteResourceConnectionState(status, getPresenceAvailability(host.deviceId)) : null,};}diff --git a/docs/design-previews/teammate-generation/README.md b/docs/design-previews/teammate-generation/README.mdnew file mode 100644index 0000000000..3b9026b992--- /dev/null+++ b/docs/design-previews/teammate-generation/README.md@@ -0,0 +1,48 @@+# 伙伴连接与生成状态:组件证据++本次统一三件事:头像圆点只表示连接可达性;伙伴正文没有工作过程入口;列表忙时显示与输入框同源的公开生成状态,空闲时恢复消息摘要。++## 前后对照++栅格截图按设计治理规范保存在本任务交付材料中,不写入 Git 历史。当前尚无公开 PR 图片附件链接;可使用本目录脚本重现。共十六张 PNG(含追加的压缩场景):`desktop-before/after-light/dark.png`、`mobile-before/after-light/dark.png`,对应压缩场景文件在 `.png` 前加 `-compacting`。++## 证据边界++这些是 headless Chromium 中的**真实组件 fixture**,不是正式安装版截图,也不是 iOS / Android 实机验收。修改前基线为 `73ae8eaf3772d50173cf5c0aa63666b9d0482e01`。++- Desktop 使用真实 `CindyDeviceRow`、`BotConnectionStatus`、`BotWorkingStatus`、`WorkingStatusText`、`WorkGroupBlock` 及伙伴消息投影。主题使用真实 Default Light / Dark tokens。外层窗口、输入框容器和示例消息为夹具。+- Mobile 使用真实 `TeammateList`、`RemoteCompanionAvatar`、`CompanionWorkingStatus`、`AppText` 和主题,通过 React Native Web 渲染。外层手机框、输入框容器和连接状态为夹具,不能证明原生导航、键盘或字号度量。+- 活动、登录和网络服务均为离线注入,不读取私人聊天,不调用生成模型。截图中的文案是公开阶段默认文案;宿主缓存复用和迟到结果丢弃另由测试验证。+- 已目检两端 Light / Dark 图片:桌面移除重复过程入口并保留输入框状态;列表在线运行保持绿点,移动列表显示公开阶段,已知离线为红点。+- 真实双设备连接、断连恢复、存量安装升级、iOS / Android 聊天实机仍需在发版验收时检查。本次未重启、发布或替换正式应用。++## 行为验证矩阵++| 场景 | Desktop 本地 | Desktop 远程 | Mobile |+| --- | --- | --- | --- |+| 在线且生成 | 连接绿点 + 公开状态;组件/状态机回归 | 宿主资源阶段 + 同一润色缓存;契约回归 | 列表公开状态 + 绿点;真实组件测试 |+| 在线空闲 / 模型错误 | 连接色不随运行或错误改变;最终摘要/错误保留 | API 失败不伪造断线;连接回归 | 连接与列表操作可用性分离;组件回归 |+| 真正离线 / 未知 | 本地不伪造离线 | 已知离线红、未确认中性色;连接回归 | 已知离线红、未知中性色;连接回归 |+| 运行结束 | 主机撤掉瞬时状态;终态回归 | 资源失效重读撤状态;契约回归 | 沿宿主终态,聊天标签停止;投影回归 |+| 最终答复 / 附件 / 无最终答复 | 消息投影保留结果、授权与错误;中止保留有用末段 | 复用桌面消息投影 | 实际 normalize/render 链保留结果与中止末段 |+| 未打开聊天 | 主进程活动源持续更新 | 资源列表不依赖已加载消息 | 列表读取宿主生成状态 |++普通任务视图和持久消息不受正文过滤影响。字段为可选增量;旧主机仍能聊天,但列表状态需要主机与控制端都升级。服务端、原生 fingerprint、权限边界均无变更。协议说明见 [兼容合同](../../dev-rules/protocol-compatibility.md#伙伴公开生成状态)。++## 重现材料++[Desktop 夹具](fixtures/desktop-teammate-fixture.tsx)、[Mobile 夹具](fixtures/mobile-teammate-fixture.tsx) 与截图脚本保留在本目录,均不进入应用构建。安装仓库依赖和 Playwright Chromium 后,在仓库根执行:++```sh+node docs/design-previews/teammate-generation/fixtures/capture-teammate-components.cjs+node docs/design-previews/teammate-generation/fixtures/capture-mobile-components.cjs+```++中间 bundle 写入忽略的 `tmp/teammate-generation-components`,PNG 写入 `tmp/teammate-generation-evidence/`。脚本将修改前模块固定为上述基线,不会因后续提交而悄悄更换对照。+++## 对话整理(上下文压缩)补充++三种运行时均已有真实事件:Claude/Codex 发 `status: Compacting...`,Pi 发 `status: Compacting context…`;成功后发 `compact_boundary`。本次在宿主公共阶段中识别它们,优先于前一个工具结果和旧消息,发布 `compacting`。边界回到思考,后续文本回到回复;停止/错误撤下生成状态,新一轮重新开始。后台手动压缩不伪造前台生成轮。++五语言的列表和输入框使用同一固定本地化文案(简中“正在整理对话…”),不为压缩调用润色模型。既有 1 秒文字切换节奏和 alpha 动画保持;晚到的旧润色结果因阶段变化丢弃。状态机、远程列表、Desktop 真实组件和 Mobile hook 测试覆盖开始、结束、恢复、停止、失败和缓存残留。新增图片仍为离线真实组件 fixture,不是新正式版或手机实机截图。diff --git a/docs/design-previews/teammate-generation/fixtures/capture-mobile-components.cjs b/docs/design-previews/teammate-generation/fixtures/capture-mobile-components.cjsnew file mode 100644index 0000000000..e3f5cff2e0--- /dev/null+++ b/docs/design-previews/teammate-generation/fixtures/capture-mobile-components.cjs@@ -0,0 +1,28 @@+const fs=require('node:fs'),path=require('node:path'),cp=require('node:child_process'),esbuild=require('esbuild');+const {chromium}=require('playwright-core');+const root=process.cwd(),fixture=path.join(root,'docs/design-previews/teammate-generation/fixtures'),mobile=path.join(root,'apps/mobile/src');+const stubs={+ '@/auth/AuthContext':`export const useAuth=()=>({user:{id:'fixture'},accountGeneration:1,apiFetch:async()=>({})});`,+ '@/device-link/DeviceLinkContext':`export const useDeviceLink=()=>({invoke:async()=>({blocks:[]})});`,+ '@/session/remoteSessionStore':`const activity={phase:'running',workingPhase:new URLSearchParams(location.search).get('scenario')==='compacting'?'compacting':'replying'};export const remoteSessionStore={subscribe:()=>()=>{},getSessionLiveActivity:()=>activity};`,+ '@/session/remoteMedia':`export const resolveMobileRemoteMedia=async()=>({previewable:false});`,+ '@/device-link/mobileMakerTransport':`export const createMobileMakerTransport=()=>({});`,+ '@/config/env':`export const DEVICE_LINK_API_BASE_URL='';`,+ '@/components/MobilePrimitives':`export const MainWindowEmptyState=()=>null;`,+ '@/device-link/remoteResourceCache':`export const isRemoteResourceUnread=()=>false;`,+ '@/i18n':`import i18n from 'i18next';export {i18n};`,+};+const resolve=(v)=>{if(fs.existsSync(v)&&fs.statSync(v).isDirectory())v=path.join(v,'index');if(!fs.existsSync(v))for(const ext of ['.tsx','.ts','.js'])if(fs.existsSync(v+ext))return v+ext;return v};+fs.mkdirSync(path.join(root,'tmp/teammate-generation-evidence'),{recursive:true});+(async()=>{const browser=await chromium.launch({headless:true});try{for(const before of [true,false]){+ const stage=before?'before':'after',bundle=path.join(root,'tmp/teammate-generation-components',`mobile-${stage}.js`);+ await esbuild.build({entryPoints:[path.join(fixture,'mobile-teammate-fixture.tsx')],outfile:bundle,bundle:true,format:'esm',platform:'browser',resolveExtensions:['.web.tsx','.web.ts','.web.js','.tsx','.ts','.js','.json'],jsx:'automatic',loader:{'.png':'dataurl'},define:{__BEFORE__:String(before),__DEV__:'false','process.env.NODE_ENV':'"production"'},plugins:[{name:'mobile-fixture',setup(build){+ build.onResolve({filter:/^react-native-svg$/},()=>({path:path.join(root,'node_modules/react-native-svg/lib/module/ReactNativeSVG.web.js')}));+ build.onResolve({filter:/^react-native$/},()=>({path:require.resolve('react-native-web')}));+ build.onResolve({filter:/^@\//},args=>stubs[args.path]?{path:args.path,namespace:'stub'}:{path:resolve(path.join(mobile,args.path.slice(2)))});+ build.onResolve({filter:/^\.\/remoteSessionStore$/},()=>({path:'@/session/remoteSessionStore',namespace:'stub'}));+ build.onLoad({filter:/.*/,namespace:'stub'},args=>({contents:stubs[args.path],loader:'tsx',resolveDir:root}));+ build.onLoad({filter:/(?:TeammateList|CompanionWorkingStatus)\.tsx$/},args=>before?{contents:cp.execFileSync('git',['show',`73ae8eaf3772d50173cf5c0aa63666b9d0482e01:${path.relative(root,args.path)}`],{encoding:'utf8'}),loader:'tsx',resolveDir:path.dirname(args.path)}:undefined);+ }}],logLevel:'warning'});+ for(const scenario of ['working','compacting'])for(const theme of ['light','dark']){const page=await browser.newPage({viewport:{width:420,height:740},deviceScaleFactor:1});const errors=[];page.on('pageerror',e=>errors.push(e.message));await page.route('http://fixture.local/**',route=>route.fulfill({contentType:'text/html',body:`<!doctype html><html><head><meta charset="utf-8"><style>body{margin:0}h2{font-family:-apple-system,sans-serif}</style></head><body><div id="root"></div><script type="module">${fs.readFileSync(bundle,'utf8').replace(/<\/script/gi,'<\\/script')}</script></body></html>`}));await page.goto(`http://fixture.local/?theme=${theme}&scenario=${scenario}`);await page.waitForSelector('[data-testid="teammates.list"]');await page.waitForTimeout(300);if(errors.length)throw Error(errors.join('\n'));await page.screenshot({path:path.join(root,`tmp/teammate-generation-evidence/mobile-${stage}-${theme}${scenario==='compacting'?'-compacting':''}.png`)});console.log(stage,theme,await page.locator('body').innerText());await page.close()}+}}finally{await browser.close()}})().catch(e=>{console.error(e);process.exitCode=1});diff --git a/docs/design-previews/teammate-generation/fixtures/capture-teammate-components.cjs b/docs/design-previews/teammate-generation/fixtures/capture-teammate-components.cjsnew file mode 100644index 0000000000..48e9e0208c--- /dev/null+++ b/docs/design-previews/teammate-generation/fixtures/capture-teammate-components.cjs@@ -0,0 +1,51 @@+const fs=require('node:fs'),path=require('node:path'),cp=require('node:child_process');+const esbuild=require('esbuild'),postcss=require('postcss'),tailwind=require('tailwindcss');+const {chromium}=require('playwright-core');+const root=process.cwd(),fixture=path.join(root,'docs/design-previews/teammate-generation/fixtures'),renderer=path.join(root,'apps/desktop/src/renderer');+const themes=path.join(root,'tmp/teammate-generation-evidence');+const stubModules={+ '@/components/chat/markdownImageTargets':`export const extractRenderedMarkdownImageTargets=()=>[];`,+ '@/i18n':`import i18n from 'i18next';export {i18n};export default i18n;`,+ '@/features/bots/botStore':`export const useBotProfiles=()=>[];export const useBotUnreadCounts=()=>({});`,+ '@/features/device-link/useDeviceLinkDeviceList':`export const useDeviceLinkDeviceList=()=>[];`,+ '@/contexts/AuthContext':`export const useAuth=()=>({});`,+ '@/lib/logger':`export const createLogger=()=>({info(){},warn(){},error(){},debug(){}});`,+ '@/state/agentIslandActivity':`export const useAgentIslandActivity=()=>null;`,+ '@/features/device-link/remoteSessionActivityStore':`export const useRemoteSessionActivity=()=>null;`,+};+fs.mkdirSync(path.join(root,'tmp/teammate-generation-evidence'),{recursive:true});+(async()=>{+ const cfg=require('tailwindcss/loadConfig')(path.join(root,'apps/desktop/tailwind.config.ts'));+ cfg.content=[path.join(renderer,'features/bots/*.tsx'),path.join(renderer,'components/chat/WorkGroupBlock.tsx'),path.join(renderer,'components/ui/{select,button,spinner}.tsx')];+ cfg.content.push({raw:cp.execFileSync('git',['show','73ae8eaf3772d50173cf5c0aa63666b9d0482e01:apps/desktop/src/renderer/features/bots/BotConnectionStatus.tsx'],{encoding:'utf8'}),extension:'tsx'});+ const css=(await postcss([tailwind(cfg)]).process(fs.readFileSync(path.join(renderer,'styles/generated/tokens.css'),'utf8')+'\n'+fs.readFileSync(path.join(renderer,'styles/globals.css'),'utf8').replace(/^@import.*$/gm,''),{from:undefined})).css;+ const extra=`body{margin:0;background:var(--surface);color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,sans-serif}.fixture-caption{font-size:12px;padding:16px 24px;color:var(--text-secondary);border-bottom:1px solid var(--border-default)}.layout{display:flex;height:575px}aside{width:290px;padding:24px 14px;background:var(--sidebar-background,var(--surface-chip));border-right:1px solid var(--border-default)}h2{font-size:18px;font-weight:600;margin:0 10px 22px}main{flex:1;display:flex;flex-direction:column}header{height:66px;padding:20px;display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--border-default)}.messages{padding:28px;flex:1;display:flex;flex-direction:column;gap:26px}.user-bubble{align-self:flex-end;background:var(--surface-chip);padding:12px 18px;border-radius:20px;font-size:15px}.answer{font-size:15px;line-height:1.7}footer{padding:20px 28px}.composer{border:1px solid var(--border-default);background:var(--surface-elevated);border-radius:28px;padding:18px;color:var(--text-tertiary);font-size:14px}.composer span{float:right;color:var(--text-primary)}`;+ const browser=await chromium.launch({headless:true});+ try{for(const before of [true,false]){+ const stage=before?'before':'after',bundle=path.join(root,'tmp/teammate-generation-components',`desktop-${stage}.js`);+ const plugin={name:'isolated-fixture',setup(build){+ build.onResolve({filter:/^@\//},args=>{if(stubModules[args.path])return{path:args.path,namespace:'stub'};return {path:path.join(renderer,args.path.slice(2))+(!path.extname(args.path)?'': '')};});+ // These modules are never rendered in the collapsed work header fixture.+ build.onResolve({filter:/\/AgentActionRow$|^\.\/AgentActionRow$/},()=>({path:'action',namespace:'stub'}));+ build.onResolve({filter:/ThinkingText$/},()=>({path:'thinking-text',namespace:'stub'}));+ build.onResolve({filter:/^\.\/botStore$/},()=>({path:'@/features/bots/botStore',namespace:'stub'}));+ build.onLoad({filter:/.*/,namespace:'stub'},args=>({contents:stubModules[args.path]||(args.path==='thinking-text'?'export const ThinkingText=()=>null;':'export const AgentActionRow=()=>{throw Error("Unexpected expanded tool")};'),loader:'tsx'}));+ build.onLoad({filter:/\.(tsx?|js)$/},args=>{+ let filename=args.path;+ if(!fs.existsSync(filename)){for(const ext of ['.tsx','.ts','.js'])if(fs.existsSync(filename+ext)){filename+=ext;break;}}+ if(before&&['BotConnectionStatus.tsx','CindyDeviceRow.tsx','BotWorkingStatus.tsx','localizeAgentStatus.ts','botConversationPresentation.ts'].includes(path.basename(filename)))return {contents:cp.execFileSync('git',['show',`73ae8eaf3772d50173cf5c0aa63666b9d0482e01:${path.relative(root,filename)}`],{encoding:'utf8'}),loader:filename.endsWith('tsx')?'tsx':'ts',resolveDir:path.dirname(filename)};+ });+ }};+ // Let esbuild's normal resolver handle TS extension lookup after aliases.+ const resolve=plugin.setup;plugin.setup=build=>{const orig=build.onResolve.bind(build);build.onResolve=(opts,cb)=>orig(opts,async args=>{const v=await cb(args);if(v?.path&&v.namespace!=='stub'&&!fs.existsSync(v.path)){for(const ext of ['.tsx','.ts','.js'])if(fs.existsSync(v.path+ext)){v.path+=ext;break;}}return v});resolve(build)};+ await esbuild.build({entryPoints:[path.join(fixture,'desktop-teammate-fixture.tsx')],outfile:bundle,bundle:true,format:'esm',platform:'browser',jsx:'automatic',loader:{'.png':'dataurl','.svg':'dataurl'},define:{__BEFORE__:String(before),'import.meta.env.PROD':'true','import.meta.env.DEV':'false'},plugins:[plugin],logLevel:'warning'});+ for(const scenario of ['working','compacting'])for(const theme of ['light','dark']){+ const page=await browser.newPage({viewport:{width:1040,height:625},deviceScaleFactor:1});const errors=[];page.on('pageerror',e=>errors.push(e.message));+ await page.route('http://fixture.local/**',route=>route.fulfill({contentType:'text/html',body:`<!doctype html><html><head><meta charset="utf-8"><style>${css}${extra}</style></head><body><div id="root"></div><script type="module">${fs.readFileSync(bundle,'utf8').replace(/<\/script/gi,'<\\/script')}</script></body></html>`}));+ await page.goto(`http://fixture.local/?theme=${theme}&scenario=${scenario}`);await page.waitForSelector('[data-testid="bot-working-indicator"]');await page.waitForTimeout(1200);+ if(errors.length)throw Error(errors.join('\n'));+ await page.screenshot({path:path.join(themes,`desktop-${stage}-${theme}${scenario==='compacting'?'-compacting':''}.png`)});+ console.log(stage,theme,await page.locator('body').innerText());await page.close();+ }+ }}finally{await browser.close()}+})().catch(e=>{console.error(e);process.exitCode=1});diff --git a/docs/design-previews/teammate-generation/fixtures/desktop-teammate-fixture.tsx b/docs/design-previews/teammate-generation/fixtures/desktop-teammate-fixture.tsxnew file mode 100644index 0000000000..9bcbc301e0--- /dev/null+++ b/docs/design-previews/teammate-generation/fixtures/desktop-teammate-fixture.tsx@@ -0,0 +1,37 @@+import React from 'react';+import { createRoot } from 'react-dom/client';+import i18next from 'i18next';+import { initReactI18next } from 'react-i18next';+import { MemoryRouter } from 'react-router-dom';+import zh from '../../../../apps/desktop/src/renderer/i18n/locales/zh-CN/common.json';+import { defaultLight as cindyLight } from '../../../../apps/desktop/src/renderer/themes/builtin/default-light';+import '../../../../apps/desktop/src/renderer/themes/colors';+import { ThemeService } from '../../../../apps/desktop/src/renderer/themes/theme-service';+import { defaultDark as cindyDark } from '../../../../apps/desktop/src/renderer/themes/builtin/default-dark';+import { CindyDeviceRow } from '../../../../apps/desktop/src/renderer/features/bots/CindyDeviceRow';+import { BotWorkingStatus } from '../../../../apps/desktop/src/renderer/features/bots/BotWorkingStatus';+import { BotGenerationLabel } from '../../../../apps/desktop/src/renderer/features/bots/BotGenerationLabel';+import { BotAvatar } from '../../../../apps/desktop/src/renderer/features/bots/BotAvatar';+import { WorkGroupBlock } from '../../../../apps/desktop/src/renderer/components/chat/WorkGroupBlock';+import { simplifyBotRenderItems } from '../../../../apps/desktop/src/renderer/features/bots/botConversationPresentation';+import { groupWorkRuns } from '../../../../apps/desktop/src/renderer/components/chat/messageWorkGroups';+const q = new URLSearchParams(location.search);+const dark = q.get('theme') === 'dark';+const scenario = q.get('scenario') || 'working';+const compacting = scenario === 'compacting';+const running = scenario === 'working' || compacting;+const online = scenario !== 'offline';+const theme = dark ? cindyDark : cindyLight;+new ThemeService().applyTheme(theme);+document.documentElement.classList.toggle('dark',dark);+await i18next.use(initReactI18next).init({ lng:'zh-CN', resources:{ 'zh-CN':{ translation:zh }}, interpolation:{ escapeValue:false }});+const bot = { id:'demo',name:'Cindy',avatar:'cindy://avatar/preset/cindy',avatarColor:'teal' };+const current = {key:'local', bot, label:'这台电脑', deviceName:'这台电脑', online, unread:false,route:'/bots/demo'};+const inputs:any[] = [+ {type:'message',key:'user',message:{clientId:'user',role:'user',content:'帮我整理今天的安排。'}},+ {type:'message',key:'progress',message:{clientId:'progress',role:'assistant',content:'我先查看相关记录,再整理安排。',isStreaming:running}},+ ...(running ? [] : [{type:'message',key:'answer',message:{clientId:'answer',role:'assistant',content:'已整理好今天的安排,重点事项有三项。',turnCompleted:true}}]),+];+const items=simplifyBotRenderItems(groupWorkRuns(inputs,running),running);+function App(){return <MemoryRouter><div className="fixture-caption">{__BEFORE__?'修改前':'修改后'} · Desktop · {dark?'Dark':'Light'} · 真实组件 / 离线夹具</div><div className="layout"><aside><h2>伙伴</h2><CindyDeviceRow current={current as any} options={[current] as any} selected typing={running} timestamp="现在" onOpen={()=>{}} onSelect={()=>{}} subtitle={running?(__BEFORE__?(compacting?'Compacting...':'我先查看相关记录,再整理安排。'):<BotGenerationLabel sessionId="demo" phase={compacting?'compacting':'replying'} startedAt={1}/>):'已整理好今天的安排。'}/></aside><main><header><BotAvatar bot={bot} size="sm"/> Cindy</header><section className="messages">{items.map(item=>item.type==='work_group'?<WorkGroupBlock key={item.key} blockId={item.key} compact isStreaming={running} childItems={[{kind:'rendered',key:'public',renderNode:()=> <div>我先查看相关记录,再整理安排。</div>}]} />:item.type==='message'?<div key={item.key} className={item.message.role==='user'?'user-bubble':'answer'}>{item.message.content}</div>:null)}</section><footer><BotWorkingStatus visible={running} status={compacting?'Compacting...':'Generating…'} messages={[{clientId:'progress',role:'assistant',content:'公开进度',isStreaming:running && !compacting}]} startedAt={1} foregroundRunning={running} backgroundWorkActive={false} avatar={<BotAvatar bot={bot} size="sm"/>}/><div className="composer">发消息给 Cindy <span>↑</span></div></footer></main></div></MemoryRouter>}+createRoot(document.getElementById('root')!).render(<App/>);diff --git a/docs/design-previews/teammate-generation/fixtures/mobile-teammate-fixture.tsx b/docs/design-previews/teammate-generation/fixtures/mobile-teammate-fixture.tsxnew file mode 100644index 0000000000..97675af839--- /dev/null+++ b/docs/design-previews/teammate-generation/fixtures/mobile-teammate-fixture.tsx@@ -0,0 +1,17 @@+import React from 'react';+import { createRoot } from 'react-dom/client';+import i18next from 'i18next';+import { initReactI18next } from 'react-i18next';+import { ThemeOverrideProvider } from '../../../../apps/mobile/src/theme/ThemeProvider';+import { lightColors,darkColors } from '../../../../apps/mobile/src/theme/tokens';+import { TeammateList } from '../../../../apps/mobile/src/session/TeammateList';+import { CompanionWorkingStatus, useCompanionWorkingLabel } from '../../../../apps/mobile/src/session/CompanionWorkingStatus';+import zh from '../../../../apps/mobile/src/i18n/locales/zh-CN/index';+const dark=new URLSearchParams(location.search).get('theme')==='dark';+const compacting=new URLSearchParams(location.search).get('scenario')==='compacting';+await i18next.use(initReactI18next).init({lng:'zh-CN',resources:{'zh-CN':{translation:zh}},interpolation:{escapeValue:false}});+const colors=dark?darkColors:lightColors;+const rows=['Cindy','Mimi','Nova'].map((name,i)=>({key:`host-${i}:${name}`,host:{deviceId:`host-${i}`,deviceName:`Computer ${i}`},item:{ref:{collectionId:'teammates',kind:'bot',id:name},revision:'1',links:[],display:{title:name,preview:i===0?(compacting?'Compacting...':'我先查看相关记录,再整理安排。'):'已整理好今天的安排。',avatar:{kind:'emoji',value:['🤖','🐱','🐻'][i],fallbackText:name[0]},...(!__BEFORE__&&i===0?{generation:{phase:compacting?'compacting':'replying',startedAt:1}}:{})}}}));+const messages:any[]=[{id:'u',role:'user',content:'整理安排'},{id:'t',role:'tool_use',content:{toolName:'unknown',input:{}}}];+function Status(){ const label=useCompanionWorkingLabel({sessionId:'demo',deviceId:'host-0',botId:'Cindy',active:true,messages,reconnectAttempt:null});return <CompanionWorkingStatus label={label}/>;}+createRoot(document.getElementById('root')!).render(<ThemeOverrideProvider mode={dark?'dark':'light'}><div style={{background:colors.surface,color:colors.textPrimary,minHeight:720,fontFamily:'-apple-system,sans-serif'}}><div style={{fontSize:11,padding:16,color:colors.textSecondary,borderBottom:`1px solid ${colors.border}`}}>{__BEFORE__?'修改前':'修改后'} · Mobile · {dark?'Dark':'Light'} · React Native Web 组件夹具</div><h2 style={{fontSize:26,padding:'4px 22px'}}>伙伴</h2><TeammateList items={rows as any} embedded loading={false} refreshing={false} error={null} isOnline={host=>host.deviceId!=='host-2'} onRefresh={()=>{}} onSelect={()=>{}}/><div style={{margin:'90px 18px 0',paddingTop:16,borderTop:`1px solid ${colors.border}`}}><Status/><div style={{borderRadius:24,border:`1px solid ${colors.border}`,padding:'16px 18px',color:colors.textTertiary}}>发消息给 Cindy</div></div></div></ThemeOverrideProvider>);diff --git a/docs/design-rules/design-inventory.md b/docs/design-rules/design-inventory.mdindex f7866e6443..a66766287a 100644--- a/docs/design-rules/design-inventory.md+++ b/docs/design-rules/design-inventory.md@@ -18,7 +18,7 @@| `desktop.auth.add-account` | desktop | 添加账号 | hash `/add-account`(ProtectedRoute → AddAccountLoginPage) | AddAccountLoginPage | apps/desktop/src/renderer/components/login/AddAccountLoginPage.tsx, apps/desktop/src/renderer/components/login/LoginBrandStage.tsx, apps/desktop/src/renderer/components/login/LoginCaptchaOverlay.tsx, apps/desktop/src/renderer/components/login/LoginControls.tsx, apps/desktop/src/renderer/components/login/LoginPage.tsx, apps/desktop/src/renderer/components/login/loginDesignTokens.ts | 59 | 0 | 20 || `desktop.auth.legacy-migration` | desktop | 首登数据迁移弹窗 | App 顶层挂载 LegacyMigrationDialog(仅主窗;main 检测到旧版 userData 经 `legacy-migration:state` 驱动) | LegacyMigrationDialog | apps/desktop/src/renderer/components/auth/LegacyMigrationDialog.tsx | 8 | 0 | 2 || `desktop.auth.login` | desktop | 登录页 | hash `/login`(GuestRoute → LoginPage) | LoginBrandStage, LoginCaptchaOverlay, LoginControls, LoginPage | apps/desktop/src/renderer/components/login/LoginBrandStage.tsx, apps/desktop/src/renderer/components/login/LoginCaptchaOverlay.tsx, apps/desktop/src/renderer/components/login/LoginControls.tsx, apps/desktop/src/renderer/components/login/LoginPage.tsx, apps/desktop/src/renderer/components/login/loginDesignTokens.ts | 59 | 0 | 20 |-| `desktop.bots` | desktop | 伙伴(列表 / 对话 / 设置 / 历史 / 伙伴私聊) | hash `/bots`、`/bots/list`、`/bots/:botId`、`/bots/roster` 及伙伴当前/历史任务、伙伴私聊路由(BotsFeatureLayout) | BotBasicProfileFields, BotCollaborationCard, BotDirectMessageView, BotHistorySessionView, BotLifecycleSettings, BotModelChainEditor, BotRosterView, BotSessionView, BotSettingsDrawer, BotsHomeView, BotsListView, RemoteBotSessionView | apps/desktop/src/renderer/components/chat/AgentActionRow.tsx, apps/desktop/src/renderer/components/chat/AgentActionsBlock.tsx, apps/desktop/src/renderer/components/chat/AgentTaskCard.tsx, apps/desktop/src/renderer/components/chat/AskUserQuestionBubble.tsx, apps/desktop/src/renderer/components/chat/AssistantMessage.tsx, apps/desktop/src/renderer/components/chat/AutomationOriginBadge.tsx, apps/desktop/src/renderer/components/chat/ChatAudioCard.tsx, apps/desktop/src/renderer/components/chat/ChatDisplaySnapshotContext.tsx, apps/desktop/src/renderer/components/chat/ChatImageView.tsx, apps/desktop/src/renderer/components/chat/ChatSessionFileContext.tsx, apps/desktop/src/renderer/components/chat/ChatSoundEffectCard.tsx, apps/desktop/src/renderer/components/chat/ChatVideoView.tsx, apps/desktop/src/renderer/components/chat/CindyMakeDoctorCard.tsx, apps/desktop/src/renderer/components/chat/CopyAsImageBlock.tsx, apps/desktop/src/renderer/components/chat/CredentialSwitchWaitBanner.tsx, apps/desktop/src/renderer/components/chat/DiffView.tsx, apps/desktop/src/renderer/components/chat/ErrorBanner.tsx, apps/desktop/src/renderer/components/chat/ErrorMessageCard.tsx, apps/desktop/src/renderer/components/chat/GeneratedFilesCard.tsx, apps/desktop/src/renderer/components/chat/GhostSummonCard.tsx, apps/desktop/src/renderer/components/chat/GhostToolCard.tsx, apps/desktop/src/renderer/components/chat/HookTaskCard.tsx, apps/desktop/src/renderer/components/chat/ImageGalleryContext.tsx, apps/desktop/src/renderer/components/chat/ImageHoverPreview.tsx, apps/desktop/src/renderer/components/chat/ImageLightbox.tsx, apps/desktop/src/renderer/components/chat/ImageMissingPlaceholder.tsx, apps/desktop/src/renderer/components/chat/InlineReferenceChip.tsx, apps/desktop/src/renderer/components/chat/InterruptedTurnBanner.tsx, apps/desktop/src/renderer/components/chat/JumpToBottomChip.tsx, apps/desktop/src/renderer/components/chat/MarkdownDiffBlock.tsx, apps/desktop/src/renderer/components/chat/MarkdownMermaidBlock.tsx, apps/desktop/src/renderer/components/chat/MarkdownRenderer.tsx, apps/desktop/src/renderer/components/chat/MermaidLightbox.tsx, apps/desktop/src/renderer/components/chat/MessageActionBar.tsx, apps/desktop/src/renderer/components/chat/MessageNavRail.tsx, apps/desktop/src/renderer/components/chat/MessageStream.tsx, apps/desktop/src/renderer/components/chat/ModelLightbox.tsx, apps/desktop/src/renderer/components/chat/NewMessageIndicator.tsx, apps/desktop/src/renderer/components/chat/PlanReviewBubble.tsx, apps/desktop/src/renderer/components/chat/PrevMessageJumpChip.tsx, apps/desktop/src/renderer/components/chat/ProjectLinkChip.tsx, apps/desktop/src/renderer/components/chat/QuoteChip.tsx, apps/desktop/src/renderer/components/chat/RewindPreviewDialog.tsx, apps/desktop/src/renderer/components/chat/SelectionQuoteButton.tsx, apps/desktop/src/renderer/components/chat/SentAgentReferenceChip.tsx, apps/desktop/src/renderer/components/chat/SentInlineAtomBody.tsx, apps/desktop/src/renderer/components/chat/SessionHandoffCard.tsx, apps/desktop/src/renderer/components/chat/SessionLinkChip.tsx, apps/desktop/src/renderer/components/chat/ShareMessageCheckbox.tsx, apps/desktop/src/renderer/components/chat/ShareSelectionBar.tsx, apps/desktop/src/renderer/components/chat/SlackIcon.tsx, apps/desktop/src/renderer/components/chat/StreamFadeSpan.tsx, apps/desktop/src/renderer/components/chat/StreamingMarkdownChunk.tsx, apps/desktop/src/renderer/components/chat/SystemCard.tsx, apps/desktop/src/renderer/components/chat/TextLightbox.tsx, apps/desktop/src/renderer/components/chat/ThinkingCard.tsx, apps/desktop/src/renderer/components/chat/ThinkingText.tsx, apps/desktop/src/renderer/components/chat/TodoListCard.tsx, apps/desktop/src/renderer/components/chat/ToolCallCard.tsx, apps/desktop/src/renderer/components/chat/ToolPayloadLightbox.tsx, apps/desktop/src/renderer/components/chat/TopRightChipStack.tsx, apps/desktop/src/renderer/components/chat/TurnChangesCard.tsx, apps/desktop/src/renderer/components/chat/UnreadFailedScheduleBanner.tsx, apps/desktop/src/renderer/components/chat/UpgradeBanner.tsx, apps/desktop/src/renderer/components/chat/UserMessage.tsx, apps/desktop/src/renderer/components/chat/UserMessageEditBox.tsx, apps/desktop/src/renderer/components/chat/UserMessageUrlLink.tsx, apps/desktop/src/renderer/components/chat/VideoLightbox.tsx, apps/desktop/src/renderer/components/chat/WorkGroupBlock.tsx, apps/desktop/src/renderer/components/chat/WorktreeRestoreBanner.tsx, apps/desktop/src/renderer/components/chat/XIcon.tsx, apps/desktop/src/renderer/components/chat/activityRowChrome.ts, apps/desktop/src/renderer/components/chat/autoFollowIntent.ts, apps/desktop/src/renderer/components/chat/chatChrome.ts, apps/desktop/src/renderer/components/chat/errorReasonI18n.ts, apps/desktop/src/renderer/components/chat/generatedFilesProjection.ts, apps/desktop/src/renderer/components/chat/imageDisplaySize.ts, apps/desktop/src/renderer/components/chat/lightboxAnnotations.ts, apps/desktop/src/renderer/components/chat/lightboxGestures.ts, apps/desktop/src/renderer/components/chat/markdownImageTargets.ts, apps/desktop/src/renderer/components/chat/messageNavRailModel.ts, apps/desktop/src/renderer/components/chat/messageNavRailWheel.ts, apps/desktop/src/renderer/components/chat/messageProjectionCache.ts, apps/desktop/src/renderer/components/chat/messageStreamIndicatorPosition.ts, apps/desktop/src/renderer/components/chat/messageViewportCompensation.ts, apps/desktop/src/renderer/components/chat/messageWorkGroups.ts, apps/desktop/src/renderer/components/chat/rehypeFencedCodeMarker.ts, apps/desktop/src/renderer/components/chat/rehypeMathBlockMarker.ts, apps/desktop/src/renderer/components/chat/rehypeStreamWordFade.ts, apps/desktop/src/renderer/components/chat/remarkHtmlImages.ts, apps/desktop/src/renderer/components/chat/remarkLocalPathLinks.ts, apps/desktop/src/renderer/components/chat/remarkPreserveRawLocalDestinations.ts, apps/desktop/src/renderer/components/chat/remarkSessionLinks.ts, apps/desktop/src/renderer/components/chat/remarkStrictInlineMath.ts, apps/desktop/src/renderer/components/chat/remarkTruncateCjkUrls.ts, apps/desktop/src/renderer/components/chat/repairStreamingMarkdown.ts, apps/desktop/src/renderer/components/chat/scrollAnchoringDetect.ts, apps/desktop/src/renderer/components/chat/shareSelectionStore.ts, apps/desktop/src/renderer/components/chat/streamingMarkdownBlocks.tsx, apps/desktop/src/renderer/components/chat/streamingMarkdownChunks.ts, apps/desktop/src/renderer/components/chat/toolLoopI18n.ts, apps/desktop/src/renderer/components/chat/unreadCount.ts, apps/desktop/src/renderer/components/chat/useAutomaticHistoryLoadBudget.ts, apps/desktop/src/renderer/components/chat/useCopyAsImage.tsx, apps/desktop/src/renderer/components/chat/useDeleteMessage.ts, apps/desktop/src/renderer/components/chat/useFileChipContextMenu.tsx, apps/desktop/src/renderer/components/chat/useForkAtMessage.ts, apps/desktop/src/renderer/components/chat/useNavigationKeyListener.ts, apps/desktop/src/renderer/components/chat/useOpenWithMenu.tsx, apps/desktop/src/renderer/components/chat/usePrevUserMessageInView.ts, apps/desktop/src/renderer/components/chat/useTurnChangeSets.ts, apps/desktop/src/renderer/components/chat/userMessageCollapse.ts, apps/desktop/src/renderer/components/chat/userMessageDisplayText.ts, apps/desktop/src/renderer/components/chat/userMessageLinkify.ts, apps/desktop/src/renderer/components/chat/viewportFillDetect.ts, apps/desktop/src/renderer/components/new-chat/AddRemoteProjectDialog.tsx, apps/desktop/src/renderer/components/new-chat/AgentSelect.tsx, apps/desktop/src/renderer/components/new-chat/AskUserQuestionPrompt.tsx, apps/desktop/src/renderer/components/new-chat/AtMentionPanel.tsx, apps/desktop/src/renderer/components/new-chat/AttachmentTypeThumb.tsx, apps/desktop/src/renderer/components/new-chat/ChatInput.tsx, apps/desktop/src/renderer/components/new-chat/CjkPunctDecoration.ts, apps/desktop/src/renderer/components/new-chat/CjkPunctuationUtils.ts, apps/desktop/src/renderer/components/new-chat/ComposerListIndentDecoration.ts, apps/desktop/src/renderer/components/new-chat/ComposerListNodes.ts, apps/desktop/src/renderer/components/new-chat/ComposerQuoteNode.tsx, apps/desktop/src/renderer/components/new-chat/DeviceSwitcherPill.tsx, apps/desktop/src/renderer/components/new-chat/EffortSlider.tsx, apps/desktop/src/renderer/components/new-chat/EmptyDocSelectionGuard.ts, apps/desktop/src/renderer/components/new-chat/ExtraDirsButton.tsx, apps/desktop/src/renderer/components/new-chat/FastModeToggle.tsx, apps/desktop/src/renderer/components/new-chat/FolderPickerPopover.tsx, apps/desktop/src/renderer/components/new-chat/FullAccessConfirmContent.tsx, apps/desktop/src/renderer/components/new-chat/GhostCommandDecoration.ts, apps/desktop/src/renderer/components/new-chat/GoalAdvancedLimits.tsx, apps/desktop/src/renderer/components/new-chat/GoalIndicator.tsx, apps/desktop/src/renderer/components/new-chat/HomeUsageDashboard.tsx, apps/desktop/src/renderer/components/new-chat/ListComposerTextarea.tsx, apps/desktop/src/renderer/components/new-chat/MentionChipNode.tsx, apps/desktop/src/renderer/components/new-chat/MentionDragCaretDecoration.ts, apps/desktop/src/renderer/components/new-chat/ModelCompatibilityNotice.tsx, apps/desktop/src/renderer/components/new-chat/ModelConfigFlyout.tsx, apps/desktop/src/renderer/components/new-chat/ModelHarnessPicker.tsx, apps/desktop/src/renderer/components/new-chat/ModelSelector.tsx, apps/desktop/src/renderer/components/new-chat/ModelSourceDetails.tsx, apps/desktop/src/renderer/components/new-chat/NewGoalDialog.tsx, apps/desktop/src/renderer/components/new-chat/PastedTextChipNode.tsx, apps/desktop/src/renderer/components/new-chat/PendingQueuePanel.tsx, apps/desktop/src/renderer/components/new-chat/PermissionPrompt.tsx, apps/desktop/src/renderer/components/new-chat/PermissionSelector.tsx, apps/desktop/src/renderer/components/new-chat/PinnedPlanPanel.tsx, apps/desktop/src/renderer/components/new-chat/PlanActionCard.tsx, apps/desktop/src/renderer/components/new-chat/PlanModeIndicator.tsx, apps/desktop/src/renderer/components/new-chat/PlanViewerCard.tsx, apps/desktop/src/renderer/components/new-chat/PluginConnectionForm.tsx, apps/desktop/src/renderer/components/new-chat/PluginOauthDeviceCode.tsx, apps/desktop/src/renderer/components/new-chat/PluginSetupPrompt.tsx, apps/desktop/src/renderer/components/new-chat/QuickStartPillMark.ts, apps/desktop/src/renderer/components/new-chat/RemoteOauthSetupCard.tsx, apps/desktop/src/renderer/components/new-chat/SendButton.tsx, apps/desktop/src/renderer/components/new-chat/SlashCommandDecoration.ts, apps/desktop/src/renderer/components/new-chat/SlashCommandPalette.tsx, apps/desktop/src/renderer/components/new-chat/TakeoverMask.tsx, apps/desktop/src/renderer/components/new-chat/ThinkingToggle.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedFlyoutHost.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedModelPanel.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedModelRail.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedModelRow.tsx, apps/desktop/src/renderer/components/new-chat/UsageDailyBars.tsx, apps/desktop/src/renderer/components/new-chat/UsageHeatmap.tsx, apps/desktop/src/renderer/components/new-chat/VendorSegmentedSwitcher.tsx, apps/desktop/src/renderer/components/new-chat/VoiceInputDraftDecoration.ts, apps/desktop/src/renderer/components/new-chat/WindowsSelectionReplacement.ts, apps/desktop/src/renderer/components/new-chat/WorktreeChipsRow.tsx, apps/desktop/src/renderer/components/new-chat/WorktreeCreatingOverlay.tsx, apps/desktop/src/renderer/components/new-chat/agentOptions.ts, apps/desktop/src/renderer/components/new-chat/agentSwitchConfirmation.ts, apps/desktop/src/renderer/components/new-chat/branchPick.ts, apps/desktop/src/renderer/components/new-chat/composerBlankPointerFocus.ts, apps/desktop/src/renderer/components/new-chat/composerContentSerialization.ts, apps/desktop/src/renderer/components/new-chat/composerDocState.ts, apps/desktop/src/renderer/components/new-chat/composerFrameScheduler.ts, apps/desktop/src/renderer/components/new-chat/composerHistoryProjection.ts, apps/desktop/src/renderer/components/new-chat/composerModelSelection.ts, apps/desktop/src/renderer/components/new-chat/composerPromptRecommendation.ts, apps/desktop/src/renderer/components/new-chat/composerRenderGate.ts, apps/desktop/src/renderer/components/new-chat/composerSendOwnership.ts, apps/desktop/src/renderer/components/new-chat/composerSendSnapshot.ts, apps/desktop/src/renderer/components/new-chat/effortChangeQueue.ts, apps/desktop/src/renderer/components/new-chat/extraDirsActions.ts, apps/desktop/src/renderer/components/new-chat/ghostComposerPlacement.ts, apps/desktop/src/renderer/components/new-chat/localAttachmentPicker.ts, apps/desktop/src/renderer/components/new-chat/mentionChipInsertion.ts, apps/desktop/src/renderer/components/new-chat/modelWindowErrorToast.ts, apps/desktop/src/renderer/components/new-chat/pastePipeline.ts, apps/desktop/src/renderer/components/new-chat/pathPaste.ts, apps/desktop/src/renderer/components/new-chat/pendingQueueLocks.ts, apps/desktop/src/renderer/components/new-chat/pendingQueueRowActivity.ts, apps/desktop/src/renderer/components/new-chat/pendingQueueRowPresentation.ts, apps/desktop/src/renderer/components/new-chat/planModeComposerCommand.ts, apps/desktop/src/renderer/components/new-chat/priceTierMarks.tsx, apps/desktop/src/renderer/components/new-chat/remoteBrowseAdapters.ts, apps/desktop/src/renderer/components/new-chat/remoteExistingProjects.ts, apps/desktop/src/renderer/components/new-chat/restoreComposerDocument.ts, apps/desktop/src/renderer/components/new-chat/sessionLinkPaste.ts, apps/desktop/src/renderer/components/new-chat/sourceSwitch.ts, apps/desktop/src/renderer/components/new-chat/unifiedModelSelection.ts, apps/desktop/src/renderer/components/new-chat/usagePalette.ts, apps/desktop/src/renderer/components/new-chat/useComposerSendFocusRestore.ts, apps/desktop/src/renderer/components/new-chat/useModelDiscoveryPending.ts, apps/desktop/src/renderer/components/new-chat/useProviderWeeklyQuota.ts, apps/desktop/src/renderer/components/new-chat/useUnifiedRowActions.ts, apps/desktop/src/renderer/features/bots/BotAuthorizationCard.tsx, apps/desktop/src/renderer/features/bots/BotAvatar.tsx, apps/desktop/src/renderer/features/bots/BotBasicProfileFields.tsx, apps/desktop/src/renderer/features/bots/BotCapabilitySettings.tsx, apps/desktop/src/renderer/features/bots/BotCollaborationCard.tsx, apps/desktop/src/renderer/features/bots/BotConnectionStatus.tsx, apps/desktop/src/renderer/features/bots/BotCreateMenu.tsx, apps/desktop/src/renderer/features/bots/BotDeleteDialog.tsx, apps/desktop/src/renderer/features/bots/BotDirectMessageCard.tsx, apps/desktop/src/renderer/features/bots/BotDirectMessageView.tsx, apps/desktop/src/renderer/features/bots/BotHistorySessionView.tsx, apps/desktop/src/renderer/features/bots/BotInvitationWelcome.tsx, apps/desktop/src/renderer/features/bots/BotLifecycleSettings.tsx, apps/desktop/src/renderer/features/bots/BotModelChainEditor.tsx, apps/desktop/src/renderer/features/bots/BotPortraitPicker.tsx, apps/desktop/src/renderer/features/bots/BotRosterView.tsx, apps/desktop/src/renderer/features/bots/BotRoutines.tsx, apps/desktop/src/renderer/features/bots/BotSessionContentHeader.tsx, apps/desktop/src/renderer/features/bots/BotSessionView.tsx, apps/desktop/src/renderer/features/bots/BotSettingsBlock.tsx, apps/desktop/src/renderer/features/bots/BotSettingsDrawer.tsx, apps/desktop/src/renderer/features/bots/BotWorkingStatus.tsx, apps/desktop/src/renderer/features/bots/BotsFeatureLayout.tsx, apps/desktop/src/renderer/features/bots/BotsGlobalSettingsSection.tsx, apps/desktop/src/renderer/features/bots/BotsHomeView.tsx, apps/desktop/src/renderer/features/bots/BotsListView.tsx, apps/desktop/src/renderer/features/bots/BotsSidebar.tsx, apps/desktop/src/renderer/features/bots/CindyDevicePicker.tsx, apps/desktop/src/renderer/features/bots/CindyDeviceRow.tsx, apps/desktop/src/renderer/features/bots/RemoteBotSessionView.tsx, apps/desktop/src/renderer/features/bots/botAvatarIdentity.ts, apps/desktop/src/renderer/features/bots/botCapabilityDefaults.ts, apps/desktop/src/renderer/features/bots/botChatPresentation.ts, apps/desktop/src/renderer/features/bots/botConversationPresentation.ts, apps/desktop/src/renderer/features/bots/botConversationTimeline.ts, apps/desktop/src/renderer/features/bots/botDelegationLive.ts, apps/desktop/src/renderer/features/bots/botGeneratedArtifacts.ts, apps/desktop/src/renderer/features/bots/botListDisplay.ts, apps/desktop/src/renderer/features/bots/botNavigation.ts, apps/desktop/src/renderer/features/bots/botPronounContext.tsx, apps/desktop/src/renderer/features/bots/botReadState.ts, apps/desktop/src/renderer/features/bots/botRosterDisplay.ts, apps/desktop/src/renderer/features/bots/botSessionOwners.ts, apps/desktop/src/renderer/features/bots/botSettingsAutosave.ts, apps/desktop/src/renderer/features/bots/botStore.ts, apps/desktop/src/renderer/features/bots/botWelcomeContext.ts, apps/desktop/src/renderer/features/bots/cindyDeviceRoster.ts, apps/desktop/src/renderer/features/bots/remoteBotRoster.ts, apps/desktop/src/renderer/features/bots/useBotGeneratedFileDeliveries.ts, apps/desktop/src/renderer/features/bots/useBotIslandVisibleSession.ts, apps/desktop/src/renderer/features/bots/useBotSettingsAutosave.ts, apps/desktop/src/renderer/features/bots/useRemoteBots.ts, apps/desktop/src/renderer/features/bots/useWorkingStatusCopy.ts, apps/desktop/src/renderer/features/cc-agent/CCAgentFeatureLayout.tsx, apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx | 275 | 43 | 437 |+| `desktop.bots` | desktop | 伙伴(列表 / 对话 / 设置 / 历史 / 伙伴私聊) | hash `/bots`、`/bots/list`、`/bots/:botId`、`/bots/roster` 及伙伴当前/历史任务、伙伴私聊路由(BotsFeatureLayout) | BotBasicProfileFields, BotCollaborationCard, BotDirectMessageView, BotHistorySessionView, BotLifecycleSettings, BotModelChainEditor, BotRosterView, BotSessionView, BotSettingsDrawer, BotsHomeView, BotsListView, RemoteBotSessionView | apps/desktop/src/renderer/components/chat/AgentActionRow.tsx, apps/desktop/src/renderer/components/chat/AgentActionsBlock.tsx, apps/desktop/src/renderer/components/chat/AgentTaskCard.tsx, apps/desktop/src/renderer/components/chat/AskUserQuestionBubble.tsx, apps/desktop/src/renderer/components/chat/AssistantMessage.tsx, apps/desktop/src/renderer/components/chat/AutomationOriginBadge.tsx, apps/desktop/src/renderer/components/chat/ChatAudioCard.tsx, apps/desktop/src/renderer/components/chat/ChatDisplaySnapshotContext.tsx, apps/desktop/src/renderer/components/chat/ChatImageView.tsx, apps/desktop/src/renderer/components/chat/ChatSessionFileContext.tsx, apps/desktop/src/renderer/components/chat/ChatSoundEffectCard.tsx, apps/desktop/src/renderer/components/chat/ChatVideoView.tsx, apps/desktop/src/renderer/components/chat/CindyMakeDoctorCard.tsx, apps/desktop/src/renderer/components/chat/CopyAsImageBlock.tsx, apps/desktop/src/renderer/components/chat/CredentialSwitchWaitBanner.tsx, apps/desktop/src/renderer/components/chat/DiffView.tsx, apps/desktop/src/renderer/components/chat/ErrorBanner.tsx, apps/desktop/src/renderer/components/chat/ErrorMessageCard.tsx, apps/desktop/src/renderer/components/chat/GeneratedFilesCard.tsx, apps/desktop/src/renderer/components/chat/GhostSummonCard.tsx, apps/desktop/src/renderer/components/chat/GhostToolCard.tsx, apps/desktop/src/renderer/components/chat/HookTaskCard.tsx, apps/desktop/src/renderer/components/chat/ImageGalleryContext.tsx, apps/desktop/src/renderer/components/chat/ImageHoverPreview.tsx, apps/desktop/src/renderer/components/chat/ImageLightbox.tsx, apps/desktop/src/renderer/components/chat/ImageMissingPlaceholder.tsx, apps/desktop/src/renderer/components/chat/InlineReferenceChip.tsx, apps/desktop/src/renderer/components/chat/InterruptedTurnBanner.tsx, apps/desktop/src/renderer/components/chat/JumpToBottomChip.tsx, apps/desktop/src/renderer/components/chat/MarkdownDiffBlock.tsx, apps/desktop/src/renderer/components/chat/MarkdownMermaidBlock.tsx, apps/desktop/src/renderer/components/chat/MarkdownRenderer.tsx, apps/desktop/src/renderer/components/chat/MermaidLightbox.tsx, apps/desktop/src/renderer/components/chat/MessageActionBar.tsx, apps/desktop/src/renderer/components/chat/MessageNavRail.tsx, apps/desktop/src/renderer/components/chat/MessageStream.tsx, apps/desktop/src/renderer/components/chat/ModelLightbox.tsx, apps/desktop/src/renderer/components/chat/NewMessageIndicator.tsx, apps/desktop/src/renderer/components/chat/PlanReviewBubble.tsx, apps/desktop/src/renderer/components/chat/PrevMessageJumpChip.tsx, apps/desktop/src/renderer/components/chat/ProjectLinkChip.tsx, apps/desktop/src/renderer/components/chat/QuoteChip.tsx, apps/desktop/src/renderer/components/chat/RewindPreviewDialog.tsx, apps/desktop/src/renderer/components/chat/SelectionQuoteButton.tsx, apps/desktop/src/renderer/components/chat/SentAgentReferenceChip.tsx, apps/desktop/src/renderer/components/chat/SentInlineAtomBody.tsx, apps/desktop/src/renderer/components/chat/SessionHandoffCard.tsx, apps/desktop/src/renderer/components/chat/SessionLinkChip.tsx, apps/desktop/src/renderer/components/chat/ShareMessageCheckbox.tsx, apps/desktop/src/renderer/components/chat/ShareSelectionBar.tsx, apps/desktop/src/renderer/components/chat/SlackIcon.tsx, apps/desktop/src/renderer/components/chat/StreamFadeSpan.tsx, apps/desktop/src/renderer/components/chat/StreamingMarkdownChunk.tsx, apps/desktop/src/renderer/components/chat/SystemCard.tsx, apps/desktop/src/renderer/components/chat/TextLightbox.tsx, apps/desktop/src/renderer/components/chat/ThinkingCard.tsx, apps/desktop/src/renderer/components/chat/ThinkingText.tsx, apps/desktop/src/renderer/components/chat/TodoListCard.tsx, apps/desktop/src/renderer/components/chat/ToolCallCard.tsx, apps/desktop/src/renderer/components/chat/ToolPayloadLightbox.tsx, apps/desktop/src/renderer/components/chat/TopRightChipStack.tsx, apps/desktop/src/renderer/components/chat/TurnChangesCard.tsx, apps/desktop/src/renderer/components/chat/UnreadFailedScheduleBanner.tsx, apps/desktop/src/renderer/components/chat/UpgradeBanner.tsx, apps/desktop/src/renderer/components/chat/UserMessage.tsx, apps/desktop/src/renderer/components/chat/UserMessageEditBox.tsx, apps/desktop/src/renderer/components/chat/UserMessageUrlLink.tsx, apps/desktop/src/renderer/components/chat/VideoLightbox.tsx, apps/desktop/src/renderer/components/chat/WorkGroupBlock.tsx, apps/desktop/src/renderer/components/chat/WorktreeRestoreBanner.tsx, apps/desktop/src/renderer/components/chat/XIcon.tsx, apps/desktop/src/renderer/components/chat/activityRowChrome.ts, apps/desktop/src/renderer/components/chat/autoFollowIntent.ts, apps/desktop/src/renderer/components/chat/chatChrome.ts, apps/desktop/src/renderer/components/chat/errorReasonI18n.ts, apps/desktop/src/renderer/components/chat/generatedFilesProjection.ts, apps/desktop/src/renderer/components/chat/imageDisplaySize.ts, apps/desktop/src/renderer/components/chat/lightboxAnnotations.ts, apps/desktop/src/renderer/components/chat/lightboxGestures.ts, apps/desktop/src/renderer/components/chat/markdownImageTargets.ts, apps/desktop/src/renderer/components/chat/messageNavRailModel.ts, apps/desktop/src/renderer/components/chat/messageNavRailWheel.ts, apps/desktop/src/renderer/components/chat/messageProjectionCache.ts, apps/desktop/src/renderer/components/chat/messageStreamIndicatorPosition.ts, apps/desktop/src/renderer/components/chat/messageViewportCompensation.ts, apps/desktop/src/renderer/components/chat/messageWorkGroups.ts, apps/desktop/src/renderer/components/chat/rehypeFencedCodeMarker.ts, apps/desktop/src/renderer/components/chat/rehypeMathBlockMarker.ts, apps/desktop/src/renderer/components/chat/rehypeStreamWordFade.ts, apps/desktop/src/renderer/components/chat/remarkHtmlImages.ts, apps/desktop/src/renderer/components/chat/remarkLocalPathLinks.ts, apps/desktop/src/renderer/components/chat/remarkPreserveRawLocalDestinations.ts, apps/desktop/src/renderer/components/chat/remarkSessionLinks.ts, apps/desktop/src/renderer/components/chat/remarkStrictInlineMath.ts, apps/desktop/src/renderer/components/chat/remarkTruncateCjkUrls.ts, apps/desktop/src/renderer/components/chat/repairStreamingMarkdown.ts, apps/desktop/src/renderer/components/chat/scrollAnchoringDetect.ts, apps/desktop/src/renderer/components/chat/shareSelectionStore.ts, apps/desktop/src/renderer/components/chat/streamingMarkdownBlocks.tsx, apps/desktop/src/renderer/components/chat/streamingMarkdownChunks.ts, apps/desktop/src/renderer/components/chat/toolLoopI18n.ts, apps/desktop/src/renderer/components/chat/unreadCount.ts, apps/desktop/src/renderer/components/chat/useAutomaticHistoryLoadBudget.ts, apps/desktop/src/renderer/components/chat/useCopyAsImage.tsx, apps/desktop/src/renderer/components/chat/useDeleteMessage.ts, apps/desktop/src/renderer/components/chat/useFileChipContextMenu.tsx, apps/desktop/src/renderer/components/chat/useForkAtMessage.ts, apps/desktop/src/renderer/components/chat/useNavigationKeyListener.ts, apps/desktop/src/renderer/components/chat/useOpenWithMenu.tsx, apps/desktop/src/renderer/components/chat/usePrevUserMessageInView.ts, apps/desktop/src/renderer/components/chat/useTurnChangeSets.ts, apps/desktop/src/renderer/components/chat/userMessageCollapse.ts, apps/desktop/src/renderer/components/chat/userMessageDisplayText.ts, apps/desktop/src/renderer/components/chat/userMessageLinkify.ts, apps/desktop/src/renderer/components/chat/viewportFillDetect.ts, apps/desktop/src/renderer/components/new-chat/AddRemoteProjectDialog.tsx, apps/desktop/src/renderer/components/new-chat/AgentSelect.tsx, apps/desktop/src/renderer/components/new-chat/AskUserQuestionPrompt.tsx, apps/desktop/src/renderer/components/new-chat/AtMentionPanel.tsx, apps/desktop/src/renderer/components/new-chat/AttachmentTypeThumb.tsx, apps/desktop/src/renderer/components/new-chat/ChatInput.tsx, apps/desktop/src/renderer/components/new-chat/CjkPunctDecoration.ts, apps/desktop/src/renderer/components/new-chat/CjkPunctuationUtils.ts, apps/desktop/src/renderer/components/new-chat/ComposerListIndentDecoration.ts, apps/desktop/src/renderer/components/new-chat/ComposerListNodes.ts, apps/desktop/src/renderer/components/new-chat/ComposerQuoteNode.tsx, apps/desktop/src/renderer/components/new-chat/DeviceSwitcherPill.tsx, apps/desktop/src/renderer/components/new-chat/EffortSlider.tsx, apps/desktop/src/renderer/components/new-chat/EmptyDocSelectionGuard.ts, apps/desktop/src/renderer/components/new-chat/ExtraDirsButton.tsx, apps/desktop/src/renderer/components/new-chat/FastModeToggle.tsx, apps/desktop/src/renderer/components/new-chat/FolderPickerPopover.tsx, apps/desktop/src/renderer/components/new-chat/FullAccessConfirmContent.tsx, apps/desktop/src/renderer/components/new-chat/GhostCommandDecoration.ts, apps/desktop/src/renderer/components/new-chat/GoalAdvancedLimits.tsx, apps/desktop/src/renderer/components/new-chat/GoalIndicator.tsx, apps/desktop/src/renderer/components/new-chat/HomeUsageDashboard.tsx, apps/desktop/src/renderer/components/new-chat/ListComposerTextarea.tsx, apps/desktop/src/renderer/components/new-chat/MentionChipNode.tsx, apps/desktop/src/renderer/components/new-chat/MentionDragCaretDecoration.ts, apps/desktop/src/renderer/components/new-chat/ModelCompatibilityNotice.tsx, apps/desktop/src/renderer/components/new-chat/ModelConfigFlyout.tsx, apps/desktop/src/renderer/components/new-chat/ModelHarnessPicker.tsx, apps/desktop/src/renderer/components/new-chat/ModelSelector.tsx, apps/desktop/src/renderer/components/new-chat/ModelSourceDetails.tsx, apps/desktop/src/renderer/components/new-chat/NewGoalDialog.tsx, apps/desktop/src/renderer/components/new-chat/PastedTextChipNode.tsx, apps/desktop/src/renderer/components/new-chat/PendingQueuePanel.tsx, apps/desktop/src/renderer/components/new-chat/PermissionPrompt.tsx, apps/desktop/src/renderer/components/new-chat/PermissionSelector.tsx, apps/desktop/src/renderer/components/new-chat/PinnedPlanPanel.tsx, apps/desktop/src/renderer/components/new-chat/PlanActionCard.tsx, apps/desktop/src/renderer/components/new-chat/PlanModeIndicator.tsx, apps/desktop/src/renderer/components/new-chat/PlanViewerCard.tsx, apps/desktop/src/renderer/components/new-chat/PluginConnectionForm.tsx, apps/desktop/src/renderer/components/new-chat/PluginOauthDeviceCode.tsx, apps/desktop/src/renderer/components/new-chat/PluginSetupPrompt.tsx, apps/desktop/src/renderer/components/new-chat/QuickStartPillMark.ts, apps/desktop/src/renderer/components/new-chat/RemoteOauthSetupCard.tsx, apps/desktop/src/renderer/components/new-chat/SendButton.tsx, apps/desktop/src/renderer/components/new-chat/SlashCommandDecoration.ts, apps/desktop/src/renderer/components/new-chat/SlashCommandPalette.tsx, apps/desktop/src/renderer/components/new-chat/TakeoverMask.tsx, apps/desktop/src/renderer/components/new-chat/ThinkingToggle.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedFlyoutHost.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedModelPanel.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedModelRail.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedModelRow.tsx, apps/desktop/src/renderer/components/new-chat/UsageDailyBars.tsx, apps/desktop/src/renderer/components/new-chat/UsageHeatmap.tsx, apps/desktop/src/renderer/components/new-chat/VendorSegmentedSwitcher.tsx, apps/desktop/src/renderer/components/new-chat/VoiceInputDraftDecoration.ts, apps/desktop/src/renderer/components/new-chat/WindowsSelectionReplacement.ts, apps/desktop/src/renderer/components/new-chat/WorktreeChipsRow.tsx, apps/desktop/src/renderer/components/new-chat/WorktreeCreatingOverlay.tsx, apps/desktop/src/renderer/components/new-chat/agentOptions.ts, apps/desktop/src/renderer/components/new-chat/agentSwitchConfirmation.ts, apps/desktop/src/renderer/components/new-chat/branchPick.ts, apps/desktop/src/renderer/components/new-chat/composerBlankPointerFocus.ts, apps/desktop/src/renderer/components/new-chat/composerContentSerialization.ts, apps/desktop/src/renderer/components/new-chat/composerDocState.ts, apps/desktop/src/renderer/components/new-chat/composerFrameScheduler.ts, apps/desktop/src/renderer/components/new-chat/composerHistoryProjection.ts, apps/desktop/src/renderer/components/new-chat/composerModelSelection.ts, apps/desktop/src/renderer/components/new-chat/composerPromptRecommendation.ts, apps/desktop/src/renderer/components/new-chat/composerRenderGate.ts, apps/desktop/src/renderer/components/new-chat/composerSendOwnership.ts, apps/desktop/src/renderer/components/new-chat/composerSendSnapshot.ts, apps/desktop/src/renderer/components/new-chat/effortChangeQueue.ts, apps/desktop/src/renderer/components/new-chat/extraDirsActions.ts, apps/desktop/src/renderer/components/new-chat/ghostComposerPlacement.ts, apps/desktop/src/renderer/components/new-chat/localAttachmentPicker.ts, apps/desktop/src/renderer/components/new-chat/mentionChipInsertion.ts, apps/desktop/src/renderer/components/new-chat/modelWindowErrorToast.ts, apps/desktop/src/renderer/components/new-chat/pastePipeline.ts, apps/desktop/src/renderer/components/new-chat/pathPaste.ts, apps/desktop/src/renderer/components/new-chat/pendingQueueLocks.ts, apps/desktop/src/renderer/components/new-chat/pendingQueueRowActivity.ts, apps/desktop/src/renderer/components/new-chat/pendingQueueRowPresentation.ts, apps/desktop/src/renderer/components/new-chat/planModeComposerCommand.ts, apps/desktop/src/renderer/components/new-chat/priceTierMarks.tsx, apps/desktop/src/renderer/components/new-chat/remoteBrowseAdapters.ts, apps/desktop/src/renderer/components/new-chat/remoteExistingProjects.ts, apps/desktop/src/renderer/components/new-chat/restoreComposerDocument.ts, apps/desktop/src/renderer/components/new-chat/sessionLinkPaste.ts, apps/desktop/src/renderer/components/new-chat/sourceSwitch.ts, apps/desktop/src/renderer/components/new-chat/unifiedModelSelection.ts, apps/desktop/src/renderer/components/new-chat/usagePalette.ts, apps/desktop/src/renderer/components/new-chat/useComposerSendFocusRestore.ts, apps/desktop/src/renderer/components/new-chat/useModelDiscoveryPending.ts, apps/desktop/src/renderer/components/new-chat/useProviderWeeklyQuota.ts, apps/desktop/src/renderer/components/new-chat/useUnifiedRowActions.ts, apps/desktop/src/renderer/features/bots/BotAuthorizationCard.tsx, apps/desktop/src/renderer/features/bots/BotAvatar.tsx, apps/desktop/src/renderer/features/bots/BotBasicProfileFields.tsx, apps/desktop/src/renderer/features/bots/BotCapabilitySettings.tsx, apps/desktop/src/renderer/features/bots/BotCollaborationCard.tsx, apps/desktop/src/renderer/features/bots/BotConnectionStatus.tsx, apps/desktop/src/renderer/features/bots/BotCreateMenu.tsx, apps/desktop/src/renderer/features/bots/BotDeleteDialog.tsx, apps/desktop/src/renderer/features/bots/BotDirectMessageCard.tsx, apps/desktop/src/renderer/features/bots/BotDirectMessageView.tsx, apps/desktop/src/renderer/features/bots/BotGenerationLabel.tsx, apps/desktop/src/renderer/features/bots/BotHistorySessionView.tsx, apps/desktop/src/renderer/features/bots/BotInvitationWelcome.tsx, apps/desktop/src/renderer/features/bots/BotLifecycleSettings.tsx, apps/desktop/src/renderer/features/bots/BotModelChainEditor.tsx, apps/desktop/src/renderer/features/bots/BotPortraitPicker.tsx, apps/desktop/src/renderer/features/bots/BotRosterView.tsx, apps/desktop/src/renderer/features/bots/BotRoutines.tsx, apps/desktop/src/renderer/features/bots/BotSessionContentHeader.tsx, apps/desktop/src/renderer/features/bots/BotSessionView.tsx, apps/desktop/src/renderer/features/bots/BotSettingsBlock.tsx, apps/desktop/src/renderer/features/bots/BotSettingsDrawer.tsx, apps/desktop/src/renderer/features/bots/BotWorkingStatus.tsx, apps/desktop/src/renderer/features/bots/BotsFeatureLayout.tsx, apps/desktop/src/renderer/features/bots/BotsGlobalSettingsSection.tsx, apps/desktop/src/renderer/features/bots/BotsHomeView.tsx, apps/desktop/src/renderer/features/bots/BotsListView.tsx, apps/desktop/src/renderer/features/bots/BotsSidebar.tsx, apps/desktop/src/renderer/features/bots/CindyDevicePicker.tsx, apps/desktop/src/renderer/features/bots/CindyDeviceRow.tsx, apps/desktop/src/renderer/features/bots/RemoteBotSessionView.tsx, apps/desktop/src/renderer/features/bots/botAvatarIdentity.ts, apps/desktop/src/renderer/features/bots/botCapabilityDefaults.ts, apps/desktop/src/renderer/features/bots/botChatPresentation.ts, apps/desktop/src/renderer/features/bots/botConversationPresentation.ts, apps/desktop/src/renderer/features/bots/botConversationTimeline.ts, apps/desktop/src/renderer/features/bots/botDelegationLive.ts, apps/desktop/src/renderer/features/bots/botGeneratedArtifacts.ts, apps/desktop/src/renderer/features/bots/botListDisplay.ts, apps/desktop/src/renderer/features/bots/botNavigation.ts, apps/desktop/src/renderer/features/bots/botPronounContext.tsx, apps/desktop/src/renderer/features/bots/botReadState.ts, apps/desktop/src/renderer/features/bots/botRosterDisplay.ts, apps/desktop/src/renderer/features/bots/botSessionOwners.ts, apps/desktop/src/renderer/features/bots/botSettingsAutosave.ts, apps/desktop/src/renderer/features/bots/botStore.ts, apps/desktop/src/renderer/features/bots/botWelcomeContext.ts, apps/desktop/src/renderer/features/bots/cindyDeviceRoster.ts, apps/desktop/src/renderer/features/bots/remoteBotRoster.ts, apps/desktop/src/renderer/features/bots/useBotGeneratedFileDeliveries.ts, apps/desktop/src/renderer/features/bots/useBotIslandVisibleSession.ts, apps/desktop/src/renderer/features/bots/useBotSettingsAutosave.ts, apps/desktop/src/renderer/features/bots/useRemoteBots.ts, apps/desktop/src/renderer/features/bots/useWorkingStatusCopy.ts, apps/desktop/src/renderer/features/cc-agent/CCAgentFeatureLayout.tsx, apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx | 276 | 43 | 437 || `desktop.chat.files` | desktop | 工作目录文件浏览 | hash `/cc-agent/files/:sessionId`(WorkdirBrowseRoute) | FileBodyView, FileTreeView, WorkdirBrowseRoute | apps/desktop/src/renderer/features/cc-agent/workdir-browse/DocSearchBar.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/DrawioPreview.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/FileBodyView.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/FileFilterInput.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/FileTabsBar.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/FileTreeView.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/FilterResultList.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/ImagePreview.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/OpenInSystemActions.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/PdfPreview.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/SessionTabsBar.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/UnrenderablePlaceholder.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/WorkdirBrowseRoute.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/WorkdirBrowseSidebar.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/hooks/useChatRailCollapsed.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/hooks/useChatRailResize.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/hooks/useConfirmSwitchAwayIfDirty.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/hooks/useDelayedFlag.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/hooks/useFileContent.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/hooks/useFileTree.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/hooks/useOpenTabs.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/hooks/useProjectFileList.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/hooks/useRevealFileInTree.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/activeFileBodyHandle.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/docModeSwitchProjects.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/drawioExt.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/expandedStore.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/fileContentCache.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/fileIcon.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/fileMeta.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/fileScrollStore.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/fileSelectionParams.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/filterFiles.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/imageExt.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/markdownAutosave.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/openTabsStore.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/pdfExt.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/lib/selectedFileStore.ts, apps/desktop/src/renderer/features/cc-agent/workdir-browse/search/SearchInput.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/search/SearchPanel.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/search/SearchResults.tsx, apps/desktop/src/renderer/features/cc-agent/workdir-browse/search/hooks/useProjectSearch.ts | 17 | 7 | 62 || `desktop.chat.new-draft` | desktop | 新建任务草稿页 | hash `/cc-agent/new`(NewMakerDraftRoute) | NewMakerDraftRoute | apps/desktop/src/renderer/features/cc-agent/NewMakerDraftRoute.tsx | 15 | 0 | 2 || `desktop.chat.orca-workflow` | desktop | Orca 协同工作台 | hash `/cc-agent/orca/:sessionId`(OrcaWorkflowRoute) | CCAgentSessionView, OrcaSplitView, OrcaWorkerPanel, OrcaWorkflowRoute | apps/desktop/src/renderer/components/chat/AgentActionRow.tsx, apps/desktop/src/renderer/components/chat/AgentActionsBlock.tsx, apps/desktop/src/renderer/components/chat/AgentTaskCard.tsx, apps/desktop/src/renderer/components/chat/AskUserQuestionBubble.tsx, apps/desktop/src/renderer/components/chat/AssistantMessage.tsx, apps/desktop/src/renderer/components/chat/AutomationOriginBadge.tsx, apps/desktop/src/renderer/components/chat/ChatAudioCard.tsx, apps/desktop/src/renderer/components/chat/ChatDisplaySnapshotContext.tsx, apps/desktop/src/renderer/components/chat/ChatImageView.tsx, apps/desktop/src/renderer/components/chat/ChatSessionFileContext.tsx, apps/desktop/src/renderer/components/chat/ChatSoundEffectCard.tsx, apps/desktop/src/renderer/components/chat/ChatVideoView.tsx, apps/desktop/src/renderer/components/chat/CindyMakeDoctorCard.tsx, apps/desktop/src/renderer/components/chat/CopyAsImageBlock.tsx, apps/desktop/src/renderer/components/chat/CredentialSwitchWaitBanner.tsx, apps/desktop/src/renderer/components/chat/DiffView.tsx, apps/desktop/src/renderer/components/chat/ErrorBanner.tsx, apps/desktop/src/renderer/components/chat/ErrorMessageCard.tsx, apps/desktop/src/renderer/components/chat/GeneratedFilesCard.tsx, apps/desktop/src/renderer/components/chat/GhostSummonCard.tsx, apps/desktop/src/renderer/components/chat/GhostToolCard.tsx, apps/desktop/src/renderer/components/chat/HookTaskCard.tsx, apps/desktop/src/renderer/components/chat/ImageGalleryContext.tsx, apps/desktop/src/renderer/components/chat/ImageHoverPreview.tsx, apps/desktop/src/renderer/components/chat/ImageLightbox.tsx, apps/desktop/src/renderer/components/chat/ImageMissingPlaceholder.tsx, apps/desktop/src/renderer/components/chat/InlineReferenceChip.tsx, apps/desktop/src/renderer/components/chat/InterruptedTurnBanner.tsx, apps/desktop/src/renderer/components/chat/JumpToBottomChip.tsx, apps/desktop/src/renderer/components/chat/MarkdownDiffBlock.tsx, apps/desktop/src/renderer/components/chat/MarkdownMermaidBlock.tsx, apps/desktop/src/renderer/components/chat/MarkdownRenderer.tsx, apps/desktop/src/renderer/components/chat/MermaidLightbox.tsx, apps/desktop/src/renderer/components/chat/MessageActionBar.tsx, apps/desktop/src/renderer/components/chat/MessageNavRail.tsx, apps/desktop/src/renderer/components/chat/MessageStream.tsx, apps/desktop/src/renderer/components/chat/ModelLightbox.tsx, apps/desktop/src/renderer/components/chat/NewMessageIndicator.tsx, apps/desktop/src/renderer/components/chat/PlanReviewBubble.tsx, apps/desktop/src/renderer/components/chat/PrevMessageJumpChip.tsx, apps/desktop/src/renderer/components/chat/ProjectLinkChip.tsx, apps/desktop/src/renderer/components/chat/QuoteChip.tsx, apps/desktop/src/renderer/components/chat/RewindPreviewDialog.tsx, apps/desktop/src/renderer/components/chat/SelectionQuoteButton.tsx, apps/desktop/src/renderer/components/chat/SentAgentReferenceChip.tsx, apps/desktop/src/renderer/components/chat/SentInlineAtomBody.tsx, apps/desktop/src/renderer/components/chat/SessionHandoffCard.tsx, apps/desktop/src/renderer/components/chat/SessionLinkChip.tsx, apps/desktop/src/renderer/components/chat/ShareMessageCheckbox.tsx, apps/desktop/src/renderer/components/chat/ShareSelectionBar.tsx, apps/desktop/src/renderer/components/chat/SlackIcon.tsx, apps/desktop/src/renderer/components/chat/StreamFadeSpan.tsx, apps/desktop/src/renderer/components/chat/StreamingMarkdownChunk.tsx, apps/desktop/src/renderer/components/chat/SystemCard.tsx, apps/desktop/src/renderer/components/chat/TextLightbox.tsx, apps/desktop/src/renderer/components/chat/ThinkingCard.tsx, apps/desktop/src/renderer/components/chat/ThinkingText.tsx, apps/desktop/src/renderer/components/chat/TodoListCard.tsx, apps/desktop/src/renderer/components/chat/ToolCallCard.tsx, apps/desktop/src/renderer/components/chat/ToolPayloadLightbox.tsx, apps/desktop/src/renderer/components/chat/TopRightChipStack.tsx, apps/desktop/src/renderer/components/chat/TurnChangesCard.tsx, apps/desktop/src/renderer/components/chat/UnreadFailedScheduleBanner.tsx, apps/desktop/src/renderer/components/chat/UpgradeBanner.tsx, apps/desktop/src/renderer/components/chat/UserMessage.tsx, apps/desktop/src/renderer/components/chat/UserMessageEditBox.tsx, apps/desktop/src/renderer/components/chat/UserMessageUrlLink.tsx, apps/desktop/src/renderer/components/chat/VideoLightbox.tsx, apps/desktop/src/renderer/components/chat/WorkGroupBlock.tsx, apps/desktop/src/renderer/components/chat/WorktreeRestoreBanner.tsx, apps/desktop/src/renderer/components/chat/XIcon.tsx, apps/desktop/src/renderer/components/chat/activityRowChrome.ts, apps/desktop/src/renderer/components/chat/autoFollowIntent.ts, apps/desktop/src/renderer/components/chat/chatChrome.ts, apps/desktop/src/renderer/components/chat/errorReasonI18n.ts, apps/desktop/src/renderer/components/chat/generatedFilesProjection.ts, apps/desktop/src/renderer/components/chat/imageDisplaySize.ts, apps/desktop/src/renderer/components/chat/lightboxAnnotations.ts, apps/desktop/src/renderer/components/chat/lightboxGestures.ts, apps/desktop/src/renderer/components/chat/markdownImageTargets.ts, apps/desktop/src/renderer/components/chat/messageNavRailModel.ts, apps/desktop/src/renderer/components/chat/messageNavRailWheel.ts, apps/desktop/src/renderer/components/chat/messageProjectionCache.ts, apps/desktop/src/renderer/components/chat/messageStreamIndicatorPosition.ts, apps/desktop/src/renderer/components/chat/messageViewportCompensation.ts, apps/desktop/src/renderer/components/chat/messageWorkGroups.ts, apps/desktop/src/renderer/components/chat/rehypeFencedCodeMarker.ts, apps/desktop/src/renderer/components/chat/rehypeMathBlockMarker.ts, apps/desktop/src/renderer/components/chat/rehypeStreamWordFade.ts, apps/desktop/src/renderer/components/chat/remarkHtmlImages.ts, apps/desktop/src/renderer/components/chat/remarkLocalPathLinks.ts, apps/desktop/src/renderer/components/chat/remarkPreserveRawLocalDestinations.ts, apps/desktop/src/renderer/components/chat/remarkSessionLinks.ts, apps/desktop/src/renderer/components/chat/remarkStrictInlineMath.ts, apps/desktop/src/renderer/components/chat/remarkTruncateCjkUrls.ts, apps/desktop/src/renderer/components/chat/repairStreamingMarkdown.ts, apps/desktop/src/renderer/components/chat/scrollAnchoringDetect.ts, apps/desktop/src/renderer/components/chat/shareSelectionStore.ts, apps/desktop/src/renderer/components/chat/streamingMarkdownBlocks.tsx, apps/desktop/src/renderer/components/chat/streamingMarkdownChunks.ts, apps/desktop/src/renderer/components/chat/toolLoopI18n.ts, apps/desktop/src/renderer/components/chat/unreadCount.ts, apps/desktop/src/renderer/components/chat/useAutomaticHistoryLoadBudget.ts, apps/desktop/src/renderer/components/chat/useCopyAsImage.tsx, apps/desktop/src/renderer/components/chat/useDeleteMessage.ts, apps/desktop/src/renderer/components/chat/useFileChipContextMenu.tsx, apps/desktop/src/renderer/components/chat/useForkAtMessage.ts, apps/desktop/src/renderer/components/chat/useNavigationKeyListener.ts, apps/desktop/src/renderer/components/chat/useOpenWithMenu.tsx, apps/desktop/src/renderer/components/chat/usePrevUserMessageInView.ts, apps/desktop/src/renderer/components/chat/useTurnChangeSets.ts, apps/desktop/src/renderer/components/chat/userMessageCollapse.ts, apps/desktop/src/renderer/components/chat/userMessageDisplayText.ts, apps/desktop/src/renderer/components/chat/userMessageLinkify.ts, apps/desktop/src/renderer/components/chat/viewportFillDetect.ts, apps/desktop/src/renderer/components/new-chat/AddRemoteProjectDialog.tsx, apps/desktop/src/renderer/components/new-chat/AgentSelect.tsx, apps/desktop/src/renderer/components/new-chat/AskUserQuestionPrompt.tsx, apps/desktop/src/renderer/components/new-chat/AtMentionPanel.tsx, apps/desktop/src/renderer/components/new-chat/AttachmentTypeThumb.tsx, apps/desktop/src/renderer/components/new-chat/ChatInput.tsx, apps/desktop/src/renderer/components/new-chat/CjkPunctDecoration.ts, apps/desktop/src/renderer/components/new-chat/CjkPunctuationUtils.ts, apps/desktop/src/renderer/components/new-chat/ComposerListIndentDecoration.ts, apps/desktop/src/renderer/components/new-chat/ComposerListNodes.ts, apps/desktop/src/renderer/components/new-chat/ComposerQuoteNode.tsx, apps/desktop/src/renderer/components/new-chat/DeviceSwitcherPill.tsx, apps/desktop/src/renderer/components/new-chat/EffortSlider.tsx, apps/desktop/src/renderer/components/new-chat/EmptyDocSelectionGuard.ts, apps/desktop/src/renderer/components/new-chat/ExtraDirsButton.tsx, apps/desktop/src/renderer/components/new-chat/FastModeToggle.tsx, apps/desktop/src/renderer/components/new-chat/FolderPickerPopover.tsx, apps/desktop/src/renderer/components/new-chat/FullAccessConfirmContent.tsx, apps/desktop/src/renderer/components/new-chat/GhostCommandDecoration.ts, apps/desktop/src/renderer/components/new-chat/GoalAdvancedLimits.tsx, apps/desktop/src/renderer/components/new-chat/GoalIndicator.tsx, apps/desktop/src/renderer/components/new-chat/HomeUsageDashboard.tsx, apps/desktop/src/renderer/components/new-chat/ListComposerTextarea.tsx, apps/desktop/src/renderer/components/new-chat/MentionChipNode.tsx, apps/desktop/src/renderer/components/new-chat/MentionDragCaretDecoration.ts, apps/desktop/src/renderer/components/new-chat/ModelCompatibilityNotice.tsx, apps/desktop/src/renderer/components/new-chat/ModelConfigFlyout.tsx, apps/desktop/src/renderer/components/new-chat/ModelHarnessPicker.tsx, apps/desktop/src/renderer/components/new-chat/ModelSelector.tsx, apps/desktop/src/renderer/components/new-chat/ModelSourceDetails.tsx, apps/desktop/src/renderer/components/new-chat/NewGoalDialog.tsx, apps/desktop/src/renderer/components/new-chat/PastedTextChipNode.tsx, apps/desktop/src/renderer/components/new-chat/PendingQueuePanel.tsx, apps/desktop/src/renderer/components/new-chat/PermissionPrompt.tsx, apps/desktop/src/renderer/components/new-chat/PermissionSelector.tsx, apps/desktop/src/renderer/components/new-chat/PinnedPlanPanel.tsx, apps/desktop/src/renderer/components/new-chat/PlanActionCard.tsx, apps/desktop/src/renderer/components/new-chat/PlanModeIndicator.tsx, apps/desktop/src/renderer/components/new-chat/PlanViewerCard.tsx, apps/desktop/src/renderer/components/new-chat/PluginConnectionForm.tsx, apps/desktop/src/renderer/components/new-chat/PluginOauthDeviceCode.tsx, apps/desktop/src/renderer/components/new-chat/PluginSetupPrompt.tsx, apps/desktop/src/renderer/components/new-chat/QuickStartPillMark.ts, apps/desktop/src/renderer/components/new-chat/RemoteOauthSetupCard.tsx, apps/desktop/src/renderer/components/new-chat/SendButton.tsx, apps/desktop/src/renderer/components/new-chat/SlashCommandDecoration.ts, apps/desktop/src/renderer/components/new-chat/SlashCommandPalette.tsx, apps/desktop/src/renderer/components/new-chat/TakeoverMask.tsx, apps/desktop/src/renderer/components/new-chat/ThinkingToggle.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedFlyoutHost.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedModelPanel.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedModelRail.tsx, apps/desktop/src/renderer/components/new-chat/UnifiedModelRow.tsx, apps/desktop/src/renderer/components/new-chat/UsageDailyBars.tsx, apps/desktop/src/renderer/components/new-chat/UsageHeatmap.tsx, apps/desktop/src/renderer/components/new-chat/VendorSegmentedSwitcher.tsx, apps/desktop/src/renderer/components/new-chat/VoiceInputDraftDecoration.ts, apps/desktop/src/renderer/components/new-chat/WindowsSelectionReplacement.ts, apps/desktop/src/renderer/components/new-chat/WorktreeChipsRow.tsx, apps/desktop/src/renderer/components/new-chat/WorktreeCreatingOverlay.tsx, apps/desktop/src/renderer/components/new-chat/agentOptions.ts, apps/desktop/src/renderer/components/new-chat/agentSwitchConfirmation.ts, apps/desktop/src/renderer/components/new-chat/branchPick.ts, apps/desktop/src/renderer/components/new-chat/composerBlankPointerFocus.ts, apps/desktop/src/renderer/components/new-chat/composerContentSerialization.ts, apps/desktop/src/renderer/components/new-chat/composerDocState.ts, apps/desktop/src/renderer/components/new-chat/composerFrameScheduler.ts, apps/desktop/src/renderer/components/new-chat/composerHistoryProjection.ts, apps/desktop/src/renderer/components/new-chat/composerModelSelection.ts, apps/desktop/src/renderer/components/new-chat/composerPromptRecommendation.ts, apps/desktop/src/renderer/components/new-chat/composerRenderGate.ts, apps/desktop/src/renderer/components/new-chat/composerSendOwnership.ts, apps/desktop/src/renderer/components/new-chat/composerSendSnapshot.ts, apps/desktop/src/renderer/components/new-chat/effortChangeQueue.ts, apps/desktop/src/renderer/components/new-chat/extraDirsActions.ts, apps/desktop/src/renderer/components/new-chat/ghostComposerPlacement.ts, apps/desktop/src/renderer/components/new-chat/localAttachmentPicker.ts, apps/desktop/src/renderer/components/new-chat/mentionChipInsertion.ts, apps/desktop/src/renderer/components/new-chat/modelWindowErrorToast.ts, apps/desktop/src/renderer/components/new-chat/pastePipeline.ts, apps/desktop/src/renderer/components/new-chat/pathPaste.ts, apps/desktop/src/renderer/components/new-chat/pendingQueueLocks.ts, apps/desktop/src/renderer/components/new-chat/pendingQueueRowActivity.ts, apps/desktop/src/renderer/components/new-chat/pendingQueueRowPresentation.ts, apps/desktop/src/renderer/components/new-chat/planModeComposerCommand.ts, apps/desktop/src/renderer/components/new-chat/priceTierMarks.tsx, apps/desktop/src/renderer/components/new-chat/remoteBrowseAdapters.ts, apps/desktop/src/renderer/components/new-chat/remoteExistingProjects.ts, apps/desktop/src/renderer/components/new-chat/restoreComposerDocument.ts, apps/desktop/src/renderer/components/new-chat/sessionLinkPaste.ts, apps/desktop/src/renderer/components/new-chat/sourceSwitch.ts, apps/desktop/src/renderer/components/new-chat/unifiedModelSelection.ts, apps/desktop/src/renderer/components/new-chat/usagePalette.ts, apps/desktop/src/renderer/components/new-chat/useComposerSendFocusRestore.ts, apps/desktop/src/renderer/components/new-chat/useModelDiscoveryPending.ts, apps/desktop/src/renderer/components/new-chat/useProviderWeeklyQuota.ts, apps/desktop/src/renderer/components/new-chat/useUnifiedRowActions.ts, apps/desktop/src/renderer/features/cc-agent/CCAgentFeatureLayout.tsx, apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx, apps/desktop/src/renderer/features/cc-agent/OrcaSplitView.tsx, apps/desktop/src/renderer/features/cc-agent/OrcaWorkerPanel.tsx, apps/desktop/src/renderer/features/cc-agent/OrcaWorkflowRoute.tsx | 256 | 43 | 355 |@@ -55,16 +55,16 @@| `mobile.auth` | mobile | 登录与添加账号 | app/(auth)/login.tsx / app/add-account.tsx | AccountSwitcherSheet, AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, DeviceLinkContext, FoldTouchpad, HomeEntryProvider, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, IncomingShareBridge, LoginCaptchaWebView, LoginNativeButton, LoginNativeButton.ios, LoginSkinControls, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, ResidentHomeList, SheetModal, SheetSurface, StartupSplashOverlay, SystemNavigationBack, ThemeProvider, _layout, add-account, gestureHandler, login, peerFileTransport, useLocale | apps/mobile/app/(auth)/login.tsx, apps/mobile/app/_layout.tsx, apps/mobile/app/add-account.tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/LoginCaptchaWebView.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/LoginNativeButton.ios.tsx, apps/mobile/src/components/LoginNativeButton.tsx, apps/mobile/src/components/LoginSkinControls.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SystemNavigationBack.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/AccountSwitcherSheet.tsx, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 211 | 80 || `mobile.automations` | mobile | 自动化 | app/automations/[deviceId].tsx | AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, DeviceLinkContext, FoldTouchpad, HomeEntryProvider, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeNativeStackHeader, IncomingShareBridge, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, ResidentHomeList, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, ThemeProvider, [deviceId], _layout, gestureHandler, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/automations/[deviceId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 74 || `mobile.chat.new` | mobile | 新建任务 | app/sessions/new.tsx | AdaptiveWindow, AndroidUpdateSheet, AnnotationBurnInWebView, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerAttachmentTray, ComposerFrame, ComposerFrame.ios, ComposerKeyboardAvoidingView, ComposerNativeRow, ComposerNativeRow.ios, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, ContextSheetGoalView, ContextSheetGoalView.ios, ContextSheetMediaViews, DeviceLinkContext, FileTypeIcon, FoldTouchpad, HomeEntryProvider, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeNativeStackHeader, ImageLightbox, IncomingShareBridge, MobileAgentMark, MobileAgentSwitcher, MobileChoicePickerList, MobileComposerInputRow, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileModelPickerList, MobileModelPickerList.ios, MobileOutboxBridge, MobilePermissionPickerList, MobilePermissionPickerList.ios, MobilePrimitives, MobileProviderMark, MobileVendorIcon, ModelOptionsSheetView, ModelOptionsSheetView.ios, ModelPickerNativeHeader, ModelPickerNativeHeader.ios, ModelPickerSheet, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePermissionSheet, NativePermissionSheet.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, NewTaskSelectionSheet, NewTaskSelectionSheet.ios, PaperPlaneIcon, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PlanModeChip, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, ResidentHomeList, SheetModal, SheetSurface, SimpleStackHeader, SlowSendNotice, StartupSplashOverlay, ThemeProvider, UnifiedModelPickerSheet, UnifiedModelPickerView, UnifiedModelPickerView.ios, VoiceRecordingPill, _layout, gestureHandler, new, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/sessions/new.tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/FileTypeIcon.tsx, apps/mobile/src/components/MobileAgentMark.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/MobileVendorIcon.tsx, apps/mobile/src/components/PaperPlaneIcon.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/AnnotationBurnInWebView.tsx, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerAttachmentTray.tsx, apps/mobile/src/session/ComposerFrame.ios.tsx, apps/mobile/src/session/ComposerFrame.tsx, apps/mobile/src/session/ComposerKeyboardAvoidingView.tsx, apps/mobile/src/session/ComposerNativeRow.ios.tsx, apps/mobile/src/session/ComposerNativeRow.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/ContextSheetGoalView.ios.tsx, apps/mobile/src/session/ContextSheetGoalView.tsx, apps/mobile/src/session/ContextSheetMediaViews.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/ImageLightbox.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileAgentSwitcher.tsx, apps/mobile/src/session/MobileChoicePickerList.tsx, apps/mobile/src/session/MobileComposerInputRow.tsx, apps/mobile/src/session/MobileModelPickerList.ios.tsx, apps/mobile/src/session/MobileModelPickerList.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/MobilePermissionPickerList.ios.tsx, apps/mobile/src/session/MobilePermissionPickerList.tsx, apps/mobile/src/session/MobileProviderMark.tsx, apps/mobile/src/session/ModelOptionsSheetView.ios.tsx, apps/mobile/src/session/ModelOptionsSheetView.tsx, apps/mobile/src/session/ModelPickerNativeHeader.ios.tsx, apps/mobile/src/session/ModelPickerNativeHeader.tsx, apps/mobile/src/session/ModelPickerSheet.tsx, apps/mobile/src/session/NativePermissionSheet.ios.tsx, apps/mobile/src/session/NativePermissionSheet.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/NewTaskSelectionSheet.ios.tsx, apps/mobile/src/session/NewTaskSelectionSheet.tsx, apps/mobile/src/session/PlanModeChip.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/session/SlowSendNotice.tsx, apps/mobile/src/session/UnifiedModelPickerSheet.tsx, apps/mobile/src/session/UnifiedModelPickerView.ios.tsx, apps/mobile/src/session/UnifiedModelPickerView.tsx, apps/mobile/src/session/VoiceRecordingPill.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 236 | 113 |-| `mobile.chat.session` | mobile | 任务内容与输入 | app/sessions/[sessionId].tsx | AccountSwitcherSheet, AdaptiveWindow, AndroidUpdateSheet, AnnotationBurnInWebView, AppText, AuthContext, AuthorizationMessageCard, AutomationTimerIcon, BlurBackdrop, CenteredScreen, ChatFileChipMenuSheet, CompanionAutomationNativeView, CompanionAutomationNativeView.ios, CompanionAutomationSheet, CompanionChoice, CompanionCreateNativeView, CompanionCreateNativeView.ios, CompanionHeader, CompanionMessageActions, CompanionMessageCard, CompanionModelChain, CompanionNativeContent.ios, CompanionNavigationDrawer, CompanionPortraitPicker, CompanionProfileArtifacts, CompanionProfileNativeView, CompanionProfileNativeView.ios, CompanionProfileSheet, CompanionSettingsRow, CompanionSettingsRow.ios, CompanionSheet, CompanionSheet.ios, CompanionWorkingStatus, ComposerAttachmentTray, ComposerExpandButton, ComposerExpandButton.ios, ComposerFrame, ComposerFrame.ios, ComposerKeyboardAvoidingView, ComposerNativeInput, ComposerNativeInput.ios, ComposerNativeRow, ComposerNativeRow.ios, ComposerNativeSection, ComposerNativeSection.ios, ComposerRichInput, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, ContextSheetGoalView, ContextSheetGoalView.ios, ContextSheetMediaViews, ConversationSearchFilterSheet, ConversationShareSvg, ConversationShareWebView, DeviceLinkContext, FailedScheduleNotice, FileTypeIcon, FoldTouchpad, HomeChromeDrawer, HomeChromeFrost, HomeEntryProvider, HomeGlassMenuPanel, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeListVisuals, HomeModeSwitch, HomeNativeStackHeader, HomeNewTaskButton, HomeProjectMachineLabel, HomeSearchBar, HomeSurface, ImageLightbox, IncomingShareBridge, InlineQueueSection, InlineQuoteChip, InlineReferenceChip, InteractionPanel, LoginNativeButton, LoginNativeButton.ios, MarkdownBlockContent, MessageActionSheet, MessageRenderer, MobileAgentMark, MobileAgentSwitcher, MobileBoundaryNotice, MobileComposerInputRow, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileModelPickerList, MobileModelPickerList.ios, MobileOutboxBridge, MobilePermissionPickerList, MobilePermissionPickerList.ios, MobilePrimitives, MobileProviderMark, MobileVendorIcon, ModalContentArea, ModelOptionsSheetView, ModelOptionsSheetView.ios, ModelPickerNativeHeader, ModelPickerNativeHeader.ios, ModelPickerSheet, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePermissionSheet, NativePermissionSheet.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PaperPlaneIcon, PendingSendBubble, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PlanModeChip, PluginInvocationHeader, PromptRecommendation, PushNotificationsBridge, QuietSyncIndicator, QuoteCapsule, RecentMessageHistories, RemoteAccessGuide, RemoteCompanionAvatar, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, RemoteTaskSuggestions, RenameSessionModal, ResidentHomeList, RewindPreviewPanel, SentInlineAtomBody, SessionActionSheet, SessionDetailsNative, SessionDetailsNative.ios, SessionHeaderNativeControls, SessionHeaderNativeControls.ios, SessionListDrawer, SessionMenuSheet, SessionOptionsExpoSheet, SessionResourceCards, SessionSearchNative, SessionSearchNative.ios, SessionTailBanner, SessionUsageSummary, ShareImageNativeButton, ShareImageNativeButton.ios, ShareMessageCheckbox, ShareSelectAllButton, ShareSelectionBar, SharedTaskEndedState, SharedTaskScreen, SheetModal, SheetSurface, SimpleStackHeader, SlowSendNotice, StartupSplashOverlay, StreamingStatusText, SwipeableSessionRow, SwipeableSessionRow.ios, SystemNavigationBack, TaskTags, TaskTagsSheet, TeammateList, TeammatePicker, ThemeProvider, UnifiedModelPickerSheet, UnifiedModelPickerView, UnifiedModelPickerView.ios, VoiceRecordingPill, [sessionId], _layout, gestureHandler, mathWebView, mediaPlayerWebView, mermaidWebView, peerFileTransport, useLocale, useSharedTaskConfirmation | apps/mobile/app/_layout.tsx, apps/mobile/app/sessions/[sessionId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/FileTypeIcon.tsx, apps/mobile/src/components/LoginNativeButton.ios.tsx, apps/mobile/src/components/LoginNativeButton.tsx, apps/mobile/src/components/MobileAgentMark.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/MobileVendorIcon.tsx, apps/mobile/src/components/PaperPlaneIcon.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/RemoteAccessGuide.tsx, apps/mobile/src/components/RemoteCompanionAvatar.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/ModalContentArea.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/chrome/SystemNavigationBack.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/AccountSwitcherSheet.tsx, apps/mobile/src/session/AnnotationBurnInWebView.tsx, apps/mobile/src/session/AuthorizationMessageCard.tsx, apps/mobile/src/session/AutomationTimerIcon.tsx, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ChatFileChipMenuSheet.tsx, apps/mobile/src/session/CompanionAutomationNativeView.ios.tsx, apps/mobile/src/session/CompanionAutomationNativeView.tsx, apps/mobile/src/session/CompanionAutomationSheet.tsx, apps/mobile/src/session/CompanionChoice.tsx, apps/mobile/src/session/CompanionCreateNativeView.ios.tsx, apps/mobile/src/session/CompanionCreateNativeView.tsx, apps/mobile/src/session/CompanionHeader.tsx, apps/mobile/src/session/CompanionMessageActions.tsx, apps/mobile/src/session/CompanionMessageCard.tsx, apps/mobile/src/session/CompanionModelChain.tsx, apps/mobile/src/session/CompanionNativeContent.ios.tsx, apps/mobile/src/session/CompanionNavigationDrawer.tsx, apps/mobile/src/session/CompanionPortraitPicker.tsx, apps/mobile/src/session/CompanionProfileArtifacts.tsx, apps/mobile/src/session/CompanionProfileNativeView.ios.tsx, apps/mobile/src/session/CompanionProfileNativeView.tsx, apps/mobile/src/session/CompanionProfileSheet.tsx, apps/mobile/src/session/CompanionSettingsRow.ios.tsx, apps/mobile/src/session/CompanionSettingsRow.tsx, apps/mobile/src/session/CompanionSheet.ios.tsx, apps/mobile/src/session/CompanionSheet.tsx, apps/mobile/src/session/CompanionWorkingStatus.tsx, apps/mobile/src/session/ComposerAttachmentTray.tsx, apps/mobile/src/session/ComposerExpandButton.ios.tsx, apps/mobile/src/session/ComposerExpandButton.tsx, apps/mobile/src/session/ComposerFrame.ios.tsx, apps/mobile/src/session/ComposerFrame.tsx, apps/mobile/src/session/ComposerKeyboardAvoidingView.tsx, apps/mobile/src/session/ComposerNativeInput.ios.tsx, apps/mobile/src/session/ComposerNativeInput.tsx, apps/mobile/src/session/ComposerNativeRow.ios.tsx, apps/mobile/src/session/ComposerNativeRow.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerRichInput.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/ContextSheetGoalView.ios.tsx, apps/mobile/src/session/ContextSheetGoalView.tsx, apps/mobile/src/session/ContextSheetMediaViews.tsx, apps/mobile/src/session/ConversationSearchFilterSheet.tsx, apps/mobile/src/session/ConversationShareSvg.tsx, apps/mobile/src/session/ConversationShareWebView.tsx, apps/mobile/src/session/FailedScheduleNotice.tsx, apps/mobile/src/session/HomeChromeDrawer.tsx, apps/mobile/src/session/HomeChromeFrost.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeGlassMenuPanel.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/HomeListVisuals.tsx, apps/mobile/src/session/HomeModeSwitch.tsx, apps/mobile/src/session/HomeNewTaskButton.tsx, apps/mobile/src/session/HomeProjectMachineLabel.tsx, apps/mobile/src/session/HomeSearchBar.tsx, apps/mobile/src/session/HomeSurface.tsx, apps/mobile/src/session/ImageLightbox.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/InlineQueueSection.tsx, apps/mobile/src/session/InlineQuoteChip.tsx, apps/mobile/src/session/InlineReferenceChip.tsx, apps/mobile/src/session/InteractionPanel.tsx, apps/mobile/src/session/MarkdownBlockContent.tsx, apps/mobile/src/session/MessageActionSheet.tsx, apps/mobile/src/session/MessageRenderer.tsx, apps/mobile/src/session/MobileAgentSwitcher.tsx, apps/mobile/src/session/MobileBoundaryNotice.tsx, apps/mobile/src/session/MobileComposerInputRow.tsx, apps/mobile/src/session/MobileModelPickerList.ios.tsx, apps/mobile/src/session/MobileModelPickerList.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/MobilePermissionPickerList.ios.tsx, apps/mobile/src/session/MobilePermissionPickerList.tsx, apps/mobile/src/session/MobileProviderMark.tsx, apps/mobile/src/session/ModelOptionsSheetView.ios.tsx, apps/mobile/src/session/ModelOptionsSheetView.tsx, apps/mobile/src/session/ModelPickerNativeHeader.ios.tsx, apps/mobile/src/session/ModelPickerNativeHeader.tsx, apps/mobile/src/session/ModelPickerSheet.tsx, apps/mobile/src/session/NativePermissionSheet.ios.tsx, apps/mobile/src/session/NativePermissionSheet.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/PendingSendBubble.tsx, apps/mobile/src/session/PlanModeChip.tsx, apps/mobile/src/session/PluginInvocationHeader.tsx, apps/mobile/src/session/PromptRecommendation.tsx, apps/mobile/src/session/QuoteCapsule.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/RemoteTaskSuggestions.tsx, apps/mobile/src/session/RenameSessionModal.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/RewindPreviewPanel.tsx, apps/mobile/src/session/SentInlineAtomBody.tsx, apps/mobile/src/session/SessionActionSheet.tsx, apps/mobile/src/session/SessionDetailsNative.ios.tsx, apps/mobile/src/session/SessionDetailsNative.tsx, apps/mobile/src/session/SessionHeaderNativeControls.ios.tsx, apps/mobile/src/session/SessionHeaderNativeControls.tsx, apps/mobile/src/session/SessionListDrawer.tsx, apps/mobile/src/session/SessionMenuSheet.tsx, apps/mobile/src/session/SessionOptionsExpoSheet.tsx, apps/mobile/src/session/SessionResourceCards.tsx, apps/mobile/src/session/SessionSearchNative.ios.tsx, apps/mobile/src/session/SessionSearchNative.tsx, apps/mobile/src/session/SessionTailBanner.tsx, apps/mobile/src/session/SessionUsageSummary.tsx, apps/mobile/src/session/ShareImageNativeButton.ios.tsx, apps/mobile/src/session/ShareImageNativeButton.tsx, apps/mobile/src/session/ShareMessageCheckbox.tsx, apps/mobile/src/session/ShareSelectAllButton.tsx, apps/mobile/src/session/ShareSelectionBar.tsx, apps/mobile/src/session/SharedTaskEndedState.tsx, apps/mobile/src/session/SharedTaskScreen.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/session/SlowSendNotice.tsx, apps/mobile/src/session/StreamingStatusText.tsx, apps/mobile/src/session/SwipeableSessionRow.ios.tsx, apps/mobile/src/session/SwipeableSessionRow.tsx, apps/mobile/src/session/TaskTags.tsx, apps/mobile/src/session/TaskTagsSheet.tsx, apps/mobile/src/session/TeammateList.tsx, apps/mobile/src/session/TeammatePicker.tsx, apps/mobile/src/session/UnifiedModelPickerSheet.tsx, apps/mobile/src/session/UnifiedModelPickerView.ios.tsx, apps/mobile/src/session/UnifiedModelPickerView.tsx, apps/mobile/src/session/VoiceRecordingPill.tsx, apps/mobile/src/session/composerRichInputHtml.ts, apps/mobile/src/session/conversationShareWebViewHtml.ts, apps/mobile/src/session/mathWebView.tsx, apps/mobile/src/session/mathWebViewHtml.ts, apps/mobile/src/session/mediaPlayerWebView.tsx, apps/mobile/src/session/mediaPlayerWebViewHtml.ts, apps/mobile/src/session/mermaidWebView.tsx, apps/mobile/src/session/mermaidWebViewHtml.ts, apps/mobile/src/session/selectableMarkdownHtml.ts, apps/mobile/src/session/useSharedTaskConfirmation.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 7 | 237 | 298 |+| `mobile.chat.session` | mobile | 任务内容与输入 | app/sessions/[sessionId].tsx | AccountSwitcherSheet, AdaptiveWindow, AndroidUpdateSheet, AnnotationBurnInWebView, AppText, AuthContext, AuthorizationMessageCard, AutomationTimerIcon, BlurBackdrop, CenteredScreen, ChatFileChipMenuSheet, CompanionAutomationNativeView, CompanionAutomationNativeView.ios, CompanionAutomationSheet, CompanionChoice, CompanionCreateNativeView, CompanionCreateNativeView.ios, CompanionHeader, CompanionMessageActions, CompanionMessageCard, CompanionModelChain, CompanionNativeContent.ios, CompanionNavigationDrawer, CompanionPortraitPicker, CompanionProfileArtifacts, CompanionProfileNativeView, CompanionProfileNativeView.ios, CompanionProfileSheet, CompanionSettingsRow, CompanionSettingsRow.ios, CompanionSheet, CompanionSheet.ios, CompanionWorkingStatus, ComposerAttachmentTray, ComposerExpandButton, ComposerExpandButton.ios, ComposerFrame, ComposerFrame.ios, ComposerKeyboardAvoidingView, ComposerNativeInput, ComposerNativeInput.ios, ComposerNativeRow, ComposerNativeRow.ios, ComposerNativeSection, ComposerNativeSection.ios, ComposerRichInput, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, ContextSheetGoalView, ContextSheetGoalView.ios, ContextSheetMediaViews, ConversationSearchFilterSheet, ConversationShareSvg, ConversationShareWebView, DeviceLinkContext, FailedScheduleNotice, FileTypeIcon, FoldTouchpad, HomeChromeDrawer, HomeChromeFrost, HomeEntryProvider, HomeGlassMenuPanel, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeListVisuals, HomeModeSwitch, HomeNativeStackHeader, HomeNewTaskButton, HomeProjectMachineLabel, HomeSearchBar, HomeSurface, ImageLightbox, IncomingShareBridge, InlineQueueSection, InlineQuoteChip, InlineReferenceChip, InteractionPanel, LoginNativeButton, LoginNativeButton.ios, MarkdownBlockContent, MessageActionSheet, MessageRenderer, MobileAgentMark, MobileAgentSwitcher, MobileBoundaryNotice, MobileComposerInputRow, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileModelPickerList, MobileModelPickerList.ios, MobileOutboxBridge, MobilePermissionPickerList, MobilePermissionPickerList.ios, MobilePrimitives, MobileProviderMark, MobileVendorIcon, ModalContentArea, ModelOptionsSheetView, ModelOptionsSheetView.ios, ModelPickerNativeHeader, ModelPickerNativeHeader.ios, ModelPickerSheet, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePermissionSheet, NativePermissionSheet.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PaperPlaneIcon, PendingSendBubble, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PlanModeChip, PluginInvocationHeader, PromptRecommendation, PushNotificationsBridge, QuietSyncIndicator, QuoteCapsule, RecentMessageHistories, RemoteAccessGuide, RemoteCompanionAvatar, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, RemoteTaskSuggestions, RenameSessionModal, ResidentHomeList, RewindPreviewPanel, SentInlineAtomBody, SessionActionSheet, SessionDetailsNative, SessionDetailsNative.ios, SessionHeaderNativeControls, SessionHeaderNativeControls.ios, SessionListDrawer, SessionMenuSheet, SessionOptionsExpoSheet, SessionResourceCards, SessionSearchNative, SessionSearchNative.ios, SessionTailBanner, SessionUsageSummary, ShareImageNativeButton, ShareImageNativeButton.ios, ShareMessageCheckbox, ShareSelectAllButton, ShareSelectionBar, SharedTaskEndedState, SharedTaskScreen, SheetModal, SheetSurface, SimpleStackHeader, SlowSendNotice, StartupSplashOverlay, StreamingStatusText, SwipeableSessionRow, SwipeableSessionRow.ios, SystemNavigationBack, TaskTags, TaskTagsSheet, TeammateGenerationLabel, TeammateList, TeammatePicker, ThemeProvider, UnifiedModelPickerSheet, UnifiedModelPickerView, UnifiedModelPickerView.ios, VoiceRecordingPill, [sessionId], _layout, gestureHandler, mathWebView, mediaPlayerWebView, mermaidWebView, peerFileTransport, useLocale, useSharedTaskConfirmation | apps/mobile/app/_layout.tsx, apps/mobile/app/sessions/[sessionId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/FileTypeIcon.tsx, apps/mobile/src/components/LoginNativeButton.ios.tsx, apps/mobile/src/components/LoginNativeButton.tsx, apps/mobile/src/components/MobileAgentMark.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/MobileVendorIcon.tsx, apps/mobile/src/components/PaperPlaneIcon.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/RemoteAccessGuide.tsx, apps/mobile/src/components/RemoteCompanionAvatar.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/ModalContentArea.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/chrome/SystemNavigationBack.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/AccountSwitcherSheet.tsx, apps/mobile/src/session/AnnotationBurnInWebView.tsx, apps/mobile/src/session/AuthorizationMessageCard.tsx, apps/mobile/src/session/AutomationTimerIcon.tsx, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ChatFileChipMenuSheet.tsx, apps/mobile/src/session/CompanionAutomationNativeView.ios.tsx, apps/mobile/src/session/CompanionAutomationNativeView.tsx, apps/mobile/src/session/CompanionAutomationSheet.tsx, apps/mobile/src/session/CompanionChoice.tsx, apps/mobile/src/session/CompanionCreateNativeView.ios.tsx, apps/mobile/src/session/CompanionCreateNativeView.tsx, apps/mobile/src/session/CompanionHeader.tsx, apps/mobile/src/session/CompanionMessageActions.tsx, apps/mobile/src/session/CompanionMessageCard.tsx, apps/mobile/src/session/CompanionModelChain.tsx, apps/mobile/src/session/CompanionNativeContent.ios.tsx, apps/mobile/src/session/CompanionNavigationDrawer.tsx, apps/mobile/src/session/CompanionPortraitPicker.tsx, apps/mobile/src/session/CompanionProfileArtifacts.tsx, apps/mobile/src/session/CompanionProfileNativeView.ios.tsx, apps/mobile/src/session/CompanionProfileNativeView.tsx, apps/mobile/src/session/CompanionProfileSheet.tsx, apps/mobile/src/session/CompanionSettingsRow.ios.tsx, apps/mobile/src/session/CompanionSettingsRow.tsx, apps/mobile/src/session/CompanionSheet.ios.tsx, apps/mobile/src/session/CompanionSheet.tsx, apps/mobile/src/session/CompanionWorkingStatus.tsx, apps/mobile/src/session/ComposerAttachmentTray.tsx, apps/mobile/src/session/ComposerExpandButton.ios.tsx, apps/mobile/src/session/ComposerExpandButton.tsx, apps/mobile/src/session/ComposerFrame.ios.tsx, apps/mobile/src/session/ComposerFrame.tsx, apps/mobile/src/session/ComposerKeyboardAvoidingView.tsx, apps/mobile/src/session/ComposerNativeInput.ios.tsx, apps/mobile/src/session/ComposerNativeInput.tsx, apps/mobile/src/session/ComposerNativeRow.ios.tsx, apps/mobile/src/session/ComposerNativeRow.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerRichInput.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/ContextSheetGoalView.ios.tsx, apps/mobile/src/session/ContextSheetGoalView.tsx, apps/mobile/src/session/ContextSheetMediaViews.tsx, apps/mobile/src/session/ConversationSearchFilterSheet.tsx, apps/mobile/src/session/ConversationShareSvg.tsx, apps/mobile/src/session/ConversationShareWebView.tsx, apps/mobile/src/session/FailedScheduleNotice.tsx, apps/mobile/src/session/HomeChromeDrawer.tsx, apps/mobile/src/session/HomeChromeFrost.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeGlassMenuPanel.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/HomeListVisuals.tsx, apps/mobile/src/session/HomeModeSwitch.tsx, apps/mobile/src/session/HomeNewTaskButton.tsx, apps/mobile/src/session/HomeProjectMachineLabel.tsx, apps/mobile/src/session/HomeSearchBar.tsx, apps/mobile/src/session/HomeSurface.tsx, apps/mobile/src/session/ImageLightbox.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/InlineQueueSection.tsx, apps/mobile/src/session/InlineQuoteChip.tsx, apps/mobile/src/session/InlineReferenceChip.tsx, apps/mobile/src/session/InteractionPanel.tsx, apps/mobile/src/session/MarkdownBlockContent.tsx, apps/mobile/src/session/MessageActionSheet.tsx, apps/mobile/src/session/MessageRenderer.tsx, apps/mobile/src/session/MobileAgentSwitcher.tsx, apps/mobile/src/session/MobileBoundaryNotice.tsx, apps/mobile/src/session/MobileComposerInputRow.tsx, apps/mobile/src/session/MobileModelPickerList.ios.tsx, apps/mobile/src/session/MobileModelPickerList.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/MobilePermissionPickerList.ios.tsx, apps/mobile/src/session/MobilePermissionPickerList.tsx, apps/mobile/src/session/MobileProviderMark.tsx, apps/mobile/src/session/ModelOptionsSheetView.ios.tsx, apps/mobile/src/session/ModelOptionsSheetView.tsx, apps/mobile/src/session/ModelPickerNativeHeader.ios.tsx, apps/mobile/src/session/ModelPickerNativeHeader.tsx, apps/mobile/src/session/ModelPickerSheet.tsx, apps/mobile/src/session/NativePermissionSheet.ios.tsx, apps/mobile/src/session/NativePermissionSheet.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/PendingSendBubble.tsx, apps/mobile/src/session/PlanModeChip.tsx, apps/mobile/src/session/PluginInvocationHeader.tsx, apps/mobile/src/session/PromptRecommendation.tsx, apps/mobile/src/session/QuoteCapsule.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/RemoteTaskSuggestions.tsx, apps/mobile/src/session/RenameSessionModal.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/RewindPreviewPanel.tsx, apps/mobile/src/session/SentInlineAtomBody.tsx, apps/mobile/src/session/SessionActionSheet.tsx, apps/mobile/src/session/SessionDetailsNative.ios.tsx, apps/mobile/src/session/SessionDetailsNative.tsx, apps/mobile/src/session/SessionHeaderNativeControls.ios.tsx, apps/mobile/src/session/SessionHeaderNativeControls.tsx, apps/mobile/src/session/SessionListDrawer.tsx, apps/mobile/src/session/SessionMenuSheet.tsx, apps/mobile/src/session/SessionOptionsExpoSheet.tsx, apps/mobile/src/session/SessionResourceCards.tsx, apps/mobile/src/session/SessionSearchNative.ios.tsx, apps/mobile/src/session/SessionSearchNative.tsx, apps/mobile/src/session/SessionTailBanner.tsx, apps/mobile/src/session/SessionUsageSummary.tsx, apps/mobile/src/session/ShareImageNativeButton.ios.tsx, apps/mobile/src/session/ShareImageNativeButton.tsx, apps/mobile/src/session/ShareMessageCheckbox.tsx, apps/mobile/src/session/ShareSelectAllButton.tsx, apps/mobile/src/session/ShareSelectionBar.tsx, apps/mobile/src/session/SharedTaskEndedState.tsx, apps/mobile/src/session/SharedTaskScreen.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/session/SlowSendNotice.tsx, apps/mobile/src/session/StreamingStatusText.tsx, apps/mobile/src/session/SwipeableSessionRow.ios.tsx, apps/mobile/src/session/SwipeableSessionRow.tsx, apps/mobile/src/session/TaskTags.tsx, apps/mobile/src/session/TaskTagsSheet.tsx, apps/mobile/src/session/TeammateGenerationLabel.tsx, apps/mobile/src/session/TeammateList.tsx, apps/mobile/src/session/TeammatePicker.tsx, apps/mobile/src/session/UnifiedModelPickerSheet.tsx, apps/mobile/src/session/UnifiedModelPickerView.ios.tsx, apps/mobile/src/session/UnifiedModelPickerView.tsx, apps/mobile/src/session/VoiceRecordingPill.tsx, apps/mobile/src/session/composerRichInputHtml.ts, apps/mobile/src/session/conversationShareWebViewHtml.ts, apps/mobile/src/session/mathWebView.tsx, apps/mobile/src/session/mathWebViewHtml.ts, apps/mobile/src/session/mediaPlayerWebView.tsx, apps/mobile/src/session/mediaPlayerWebViewHtml.ts, apps/mobile/src/session/mermaidWebView.tsx, apps/mobile/src/session/mermaidWebViewHtml.ts, apps/mobile/src/session/selectableMarkdownHtml.ts, apps/mobile/src/session/useSharedTaskConfirmation.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 7 | 237 | 299 || `mobile.chat.sharing` | mobile | 共享任务邀请与成员 | app/shared-session.tsx | AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, DeviceLinkContext, FoldTouchpad, HomeEntryProvider, IncomingShareBridge, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, ResidentHomeList, SharedTaskEndedState, SharedTaskScreen, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, ThemeProvider, _layout, gestureHandler, peerFileTransport, shared-session, useLocale, useSharedTaskConfirmation | apps/mobile/app/_layout.tsx, apps/mobile/app/shared-session.tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SharedTaskEndedState.tsx, apps/mobile/src/session/SharedTaskScreen.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/session/useSharedTaskConfirmation.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 61 || `mobile.companions.direct` | mobile | 伙伴私聊回看 | app/companions/direct/[threadId].tsx | AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, DeviceLinkContext, FoldTouchpad, HomeEntryProvider, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeNativeStackHeader, IncomingShareBridge, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, ResidentHomeList, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, ThemeProvider, [threadId], _layout, gestureHandler, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/companions/direct/[threadId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 53 || `mobile.device-management` | mobile | 设备管理 | app/devices/manage.tsx / app/devices/manage/[deviceId].tsx | AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, DeviceInformationFields, DeviceInformationFields.ios, DeviceLinkContext, DeviceManagementDialogs, DeviceManagementList, DeviceManagementList.ios, FoldTouchpad, HomeEntryProvider, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeNativeStackHeader, IncomingShareBridge, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, ModalContentArea, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, RenameDeviceModal, ResidentHomeList, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, ThemeProvider, [deviceId], _layout, gestureHandler, manage, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/devices/manage.tsx, apps/mobile/app/devices/manage/[deviceId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceInformationFields.ios.tsx, apps/mobile/src/device-link/DeviceInformationFields.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/DeviceManagementDialogs.tsx, apps/mobile/src/device-link/DeviceManagementList.ios.tsx, apps/mobile/src/device-link/DeviceManagementList.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/ModalContentArea.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/RenameDeviceModal.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 56 || `mobile.devices` | mobile | 主机详情 | app/devices/[deviceId].tsx | AccountSwitcherSheet, AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, AutomationTimerIcon, BlurBackdrop, CenteredScreen, ComposerNativeRow, ComposerNativeRow.ios, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, ConversationSearchFilterSheet, DeviceLinkContext, FoldTouchpad, HomeChromeDrawer, HomeChromeFrost, HomeEntryProvider, HomeGlassMenuPanel, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeListVisuals, HomeModeSwitch, HomeNativeStackHeader, HomeNewTaskButton, HomeProjectMachineLabel, HomeSearchBar, HomeSurface, IncomingShareBridge, LoginNativeButton, LoginNativeButton.ios, MobileAgentMark, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, MobileVendorIcon, ModalContentArea, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteAccessGuide, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, RemoteTaskSuggestions, RenameSessionModal, ResidentHomeList, SessionActionSheet, SessionDetailsNative, SessionDetailsNative.ios, SessionHeaderNativeControls, SessionHeaderNativeControls.ios, SessionOptionsExpoSheet, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, SwipeableSessionRow, SwipeableSessionRow.ios, TaskTags, ThemeProvider, [deviceId], _layout, gestureHandler, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/devices/[deviceId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/LoginNativeButton.ios.tsx, apps/mobile/src/components/LoginNativeButton.tsx, apps/mobile/src/components/MobileAgentMark.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/MobileVendorIcon.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/RemoteAccessGuide.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/ModalContentArea.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/AccountSwitcherSheet.tsx, apps/mobile/src/session/AutomationTimerIcon.tsx, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeRow.ios.tsx, apps/mobile/src/session/ComposerNativeRow.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/ConversationSearchFilterSheet.tsx, apps/mobile/src/session/HomeChromeDrawer.tsx, apps/mobile/src/session/HomeChromeFrost.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeGlassMenuPanel.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/HomeListVisuals.tsx, apps/mobile/src/session/HomeModeSwitch.tsx, apps/mobile/src/session/HomeNewTaskButton.tsx, apps/mobile/src/session/HomeProjectMachineLabel.tsx, apps/mobile/src/session/HomeSearchBar.tsx, apps/mobile/src/session/HomeSurface.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/RemoteTaskSuggestions.tsx, apps/mobile/src/session/RenameSessionModal.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SessionActionSheet.tsx, apps/mobile/src/session/SessionDetailsNative.ios.tsx, apps/mobile/src/session/SessionDetailsNative.tsx, apps/mobile/src/session/SessionHeaderNativeControls.ios.tsx, apps/mobile/src/session/SessionHeaderNativeControls.tsx, apps/mobile/src/session/SessionOptionsExpoSheet.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/session/SwipeableSessionRow.ios.tsx, apps/mobile/src/session/SwipeableSessionRow.tsx, apps/mobile/src/session/TaskTags.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 113 || `mobile.files` | mobile | 任务文件与预览 | app/files/[sessionId].tsx / app/files/preview/[sessionId].tsx | AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, DeviceLinkContext, FileTypeIcon, FileTypeTile, FoldTouchpad, HomeEntryProvider, HtmlBrowserChrome, HtmlBrowserChrome.ios, HtmlFileReader, HtmlWebsiteBrowser, ImageLightbox, IncomingShareBridge, MarkdownFileReader, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, ModalContentArea, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, ResidentHomeList, SheetModal, SheetSurface, StartupSplashOverlay, SystemNavigationBack, ThemeProvider, [sessionId], _layout, gestureHandler, mediaPlayerWebView, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/files/[sessionId].tsx, apps/mobile/app/files/preview/[sessionId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/FileTypeIcon.tsx, apps/mobile/src/components/FileTypeTile.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/ModalContentArea.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SystemNavigationBack.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HtmlBrowserChrome.ios.tsx, apps/mobile/src/session/HtmlBrowserChrome.tsx, apps/mobile/src/session/HtmlFileReader.tsx, apps/mobile/src/session/HtmlWebsiteBrowser.tsx, apps/mobile/src/session/ImageLightbox.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MarkdownFileReader.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/session/mathWebViewHtml.ts, apps/mobile/src/session/mediaPlayerWebView.tsx, apps/mobile/src/session/mediaPlayerWebViewHtml.ts, apps/mobile/src/session/selectableMarkdownHtml.ts, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 236 | 79 |-| `mobile.home` | mobile | 主机与资源首页 | app/index.tsx / app/devices/index.tsx | AccountSwitcherSheet, AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, AutomationTimerIcon, BlurBackdrop, CenteredScreen, CompanionCreateNativeView, CompanionCreateNativeView.ios, CompanionModelChain, CompanionNativeContent.ios, CompanionPortraitPicker, CompanionProfileArtifacts, CompanionProfileNativeView, CompanionProfileNativeView.ios, CompanionProfileSheet, CompanionSettingsRow, CompanionSettingsRow.ios, CompanionSheet, CompanionSheet.ios, ComposerNativeRow, ComposerNativeRow.ios, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, ConversationSearchFilterSheet, DeviceLinkContext, FoldTouchpad, HomeChromeDrawer, HomeChromeFrost, HomeEntryProvider, HomeGlassMenuPanel, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeListVisuals, HomeModePanes, HomeModeSwitch, HomeNativeStackHeader, HomeNewTaskButton, HomeProjectMachineLabel, HomeSearchBar, HomeSurface, IncomingShareBridge, LoginNativeButton, LoginNativeButton.ios, MobileAgentMark, MobileAgentSwitcher, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileModelPickerList, MobileModelPickerList.ios, MobileOutboxBridge, MobilePermissionPickerList, MobilePermissionPickerList.ios, MobilePrimitives, MobileProviderMark, MobileVendorIcon, ModalContentArea, ModelOptionsSheetView, ModelOptionsSheetView.ios, ModelPickerNativeHeader, ModelPickerNativeHeader.ios, ModelPickerSheet, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteAccessGuide, RemoteCompanionAvatar, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, RemoteTaskSuggestions, RenameSessionModal, ResidentHomeList, SessionActionSheet, SessionDetailsNative, SessionDetailsNative.ios, SessionHeaderNativeControls, SessionHeaderNativeControls.ios, SessionOptionsExpoSheet, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, SwipeableSessionRow, SwipeableSessionRow.ios, TaskTags, TeammateCreateButton, TeammateHomeScreen, TeammateList, ThemeProvider, UnifiedModelPickerSheet, UnifiedModelPickerView, UnifiedModelPickerView.ios, _layout, gestureHandler, index, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/devices/index.tsx, apps/mobile/app/index.tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/LoginNativeButton.ios.tsx, apps/mobile/src/components/LoginNativeButton.tsx, apps/mobile/src/components/MobileAgentMark.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/MobileVendorIcon.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/RemoteAccessGuide.tsx, apps/mobile/src/components/RemoteCompanionAvatar.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/ModalContentArea.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/AccountSwitcherSheet.tsx, apps/mobile/src/session/AutomationTimerIcon.tsx, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/CompanionCreateNativeView.ios.tsx, apps/mobile/src/session/CompanionCreateNativeView.tsx, apps/mobile/src/session/CompanionModelChain.tsx, apps/mobile/src/session/CompanionNativeContent.ios.tsx, apps/mobile/src/session/CompanionPortraitPicker.tsx, apps/mobile/src/session/CompanionProfileArtifacts.tsx, apps/mobile/src/session/CompanionProfileNativeView.ios.tsx, apps/mobile/src/session/CompanionProfileNativeView.tsx, apps/mobile/src/session/CompanionProfileSheet.tsx, apps/mobile/src/session/CompanionSettingsRow.ios.tsx, apps/mobile/src/session/CompanionSettingsRow.tsx, apps/mobile/src/session/CompanionSheet.ios.tsx, apps/mobile/src/session/CompanionSheet.tsx, apps/mobile/src/session/ComposerNativeRow.ios.tsx, apps/mobile/src/session/ComposerNativeRow.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/ConversationSearchFilterSheet.tsx, apps/mobile/src/session/HomeChromeDrawer.tsx, apps/mobile/src/session/HomeChromeFrost.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeGlassMenuPanel.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/HomeListVisuals.tsx, apps/mobile/src/session/HomeModePanes.tsx, apps/mobile/src/session/HomeModeSwitch.tsx, apps/mobile/src/session/HomeNewTaskButton.tsx, apps/mobile/src/session/HomeProjectMachineLabel.tsx, apps/mobile/src/session/HomeSearchBar.tsx, apps/mobile/src/session/HomeSurface.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileAgentSwitcher.tsx, apps/mobile/src/session/MobileModelPickerList.ios.tsx, apps/mobile/src/session/MobileModelPickerList.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/MobilePermissionPickerList.ios.tsx, apps/mobile/src/session/MobilePermissionPickerList.tsx, apps/mobile/src/session/MobileProviderMark.tsx, apps/mobile/src/session/ModelOptionsSheetView.ios.tsx, apps/mobile/src/session/ModelOptionsSheetView.tsx, apps/mobile/src/session/ModelPickerNativeHeader.ios.tsx, apps/mobile/src/session/ModelPickerNativeHeader.tsx, apps/mobile/src/session/ModelPickerSheet.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/RemoteTaskSuggestions.tsx, apps/mobile/src/session/RenameSessionModal.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SessionActionSheet.tsx, apps/mobile/src/session/SessionDetailsNative.ios.tsx, apps/mobile/src/session/SessionDetailsNative.tsx, apps/mobile/src/session/SessionHeaderNativeControls.ios.tsx, apps/mobile/src/session/SessionHeaderNativeControls.tsx, apps/mobile/src/session/SessionOptionsExpoSheet.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/session/SwipeableSessionRow.ios.tsx, apps/mobile/src/session/SwipeableSessionRow.tsx, apps/mobile/src/session/TaskTags.tsx, apps/mobile/src/session/TeammateCreateButton.tsx, apps/mobile/src/session/TeammateHomeScreen.tsx, apps/mobile/src/session/TeammateList.tsx, apps/mobile/src/session/UnifiedModelPickerSheet.tsx, apps/mobile/src/session/UnifiedModelPickerView.ios.tsx, apps/mobile/src/session/UnifiedModelPickerView.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 134 |+| `mobile.home` | mobile | 主机与资源首页 | app/index.tsx / app/devices/index.tsx | AccountSwitcherSheet, AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, AutomationTimerIcon, BlurBackdrop, CenteredScreen, CompanionCreateNativeView, CompanionCreateNativeView.ios, CompanionModelChain, CompanionNativeContent.ios, CompanionPortraitPicker, CompanionProfileArtifacts, CompanionProfileNativeView, CompanionProfileNativeView.ios, CompanionProfileSheet, CompanionSettingsRow, CompanionSettingsRow.ios, CompanionSheet, CompanionSheet.ios, ComposerNativeRow, ComposerNativeRow.ios, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, ConversationSearchFilterSheet, DeviceLinkContext, FoldTouchpad, HomeChromeDrawer, HomeChromeFrost, HomeEntryProvider, HomeGlassMenuPanel, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeListVisuals, HomeModePanes, HomeModeSwitch, HomeNativeStackHeader, HomeNewTaskButton, HomeProjectMachineLabel, HomeSearchBar, HomeSurface, IncomingShareBridge, LoginNativeButton, LoginNativeButton.ios, MobileAgentMark, MobileAgentSwitcher, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileModelPickerList, MobileModelPickerList.ios, MobileOutboxBridge, MobilePermissionPickerList, MobilePermissionPickerList.ios, MobilePrimitives, MobileProviderMark, MobileVendorIcon, ModalContentArea, ModelOptionsSheetView, ModelOptionsSheetView.ios, ModelPickerNativeHeader, ModelPickerNativeHeader.ios, ModelPickerSheet, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteAccessGuide, RemoteCompanionAvatar, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, RemoteTaskSuggestions, RenameSessionModal, ResidentHomeList, SessionActionSheet, SessionDetailsNative, SessionDetailsNative.ios, SessionHeaderNativeControls, SessionHeaderNativeControls.ios, SessionOptionsExpoSheet, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, SwipeableSessionRow, SwipeableSessionRow.ios, TaskTags, TeammateCreateButton, TeammateGenerationLabel, TeammateHomeScreen, TeammateList, ThemeProvider, UnifiedModelPickerSheet, UnifiedModelPickerView, UnifiedModelPickerView.ios, _layout, gestureHandler, index, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/devices/index.tsx, apps/mobile/app/index.tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/LoginNativeButton.ios.tsx, apps/mobile/src/components/LoginNativeButton.tsx, apps/mobile/src/components/MobileAgentMark.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/MobileVendorIcon.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/RemoteAccessGuide.tsx, apps/mobile/src/components/RemoteCompanionAvatar.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/ModalContentArea.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/AccountSwitcherSheet.tsx, apps/mobile/src/session/AutomationTimerIcon.tsx, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/CompanionCreateNativeView.ios.tsx, apps/mobile/src/session/CompanionCreateNativeView.tsx, apps/mobile/src/session/CompanionModelChain.tsx, apps/mobile/src/session/CompanionNativeContent.ios.tsx, apps/mobile/src/session/CompanionPortraitPicker.tsx, apps/mobile/src/session/CompanionProfileArtifacts.tsx, apps/mobile/src/session/CompanionProfileNativeView.ios.tsx, apps/mobile/src/session/CompanionProfileNativeView.tsx, apps/mobile/src/session/CompanionProfileSheet.tsx, apps/mobile/src/session/CompanionSettingsRow.ios.tsx, apps/mobile/src/session/CompanionSettingsRow.tsx, apps/mobile/src/session/CompanionSheet.ios.tsx, apps/mobile/src/session/CompanionSheet.tsx, apps/mobile/src/session/ComposerNativeRow.ios.tsx, apps/mobile/src/session/ComposerNativeRow.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/ConversationSearchFilterSheet.tsx, apps/mobile/src/session/HomeChromeDrawer.tsx, apps/mobile/src/session/HomeChromeFrost.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeGlassMenuPanel.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/HomeListVisuals.tsx, apps/mobile/src/session/HomeModePanes.tsx, apps/mobile/src/session/HomeModeSwitch.tsx, apps/mobile/src/session/HomeNewTaskButton.tsx, apps/mobile/src/session/HomeProjectMachineLabel.tsx, apps/mobile/src/session/HomeSearchBar.tsx, apps/mobile/src/session/HomeSurface.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileAgentSwitcher.tsx, apps/mobile/src/session/MobileModelPickerList.ios.tsx, apps/mobile/src/session/MobileModelPickerList.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/MobilePermissionPickerList.ios.tsx, apps/mobile/src/session/MobilePermissionPickerList.tsx, apps/mobile/src/session/MobileProviderMark.tsx, apps/mobile/src/session/ModelOptionsSheetView.ios.tsx, apps/mobile/src/session/ModelOptionsSheetView.tsx, apps/mobile/src/session/ModelPickerNativeHeader.ios.tsx, apps/mobile/src/session/ModelPickerNativeHeader.tsx, apps/mobile/src/session/ModelPickerSheet.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/RemoteTaskSuggestions.tsx, apps/mobile/src/session/RenameSessionModal.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SessionActionSheet.tsx, apps/mobile/src/session/SessionDetailsNative.ios.tsx, apps/mobile/src/session/SessionDetailsNative.tsx, apps/mobile/src/session/SessionHeaderNativeControls.ios.tsx, apps/mobile/src/session/SessionHeaderNativeControls.tsx, apps/mobile/src/session/SessionOptionsExpoSheet.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/session/SwipeableSessionRow.ios.tsx, apps/mobile/src/session/SwipeableSessionRow.tsx, apps/mobile/src/session/TaskTags.tsx, apps/mobile/src/session/TeammateCreateButton.tsx, apps/mobile/src/session/TeammateGenerationLabel.tsx, apps/mobile/src/session/TeammateHomeScreen.tsx, apps/mobile/src/session/TeammateList.tsx, apps/mobile/src/session/UnifiedModelPickerSheet.tsx, apps/mobile/src/session/UnifiedModelPickerView.ios.tsx, apps/mobile/src/session/UnifiedModelPickerView.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 135 || `mobile.overlay.connection-startup` | mobile | 根布局挂载的启动与连接反馈 | app/_layout.tsx → StartupSplashOverlay / ConnectionNoticeProvider;各页面 ConnectionBanner | AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ConnectionNoticeProvider, ContextSheet, ContextSheet.ios, DeviceLinkContext, FoldTouchpad, HomeEntryProvider, IncomingShareBridge, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, ResidentHomeList, SheetModal, SheetSurface, StartupSplashOverlay, ThemeProvider, _layout, gestureHandler, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 50 || `mobile.remote-desktop` | mobile | 远程桌面 | app/devices/desktop/[deviceId].tsx | AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, DeviceLinkContext, FoldTouchpad, HomeEntryProvider, IncomingShareBridge, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, ResidentHomeList, SheetModal, SheetSurface, StartupSplashOverlay, ThemeProvider, [deviceId], _layout, gestureHandler, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/devices/desktop/[deviceId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 50 |-| `mobile.resources` | mobile | 远程资源列表与详情 | app/resources/[collectionId].tsx / app/resources/[collectionId]/[resourceId].tsx | AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, DeviceLinkContext, FoldTouchpad, HomeEntryProvider, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeNativeStackHeader, IncomingShareBridge, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteCompanionAvatar, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, ResidentHomeList, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, TeammateList, ThemeProvider, [collectionId], [resourceId], _layout, gestureHandler, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/resources/[collectionId].tsx, apps/mobile/app/resources/[collectionId]/[resourceId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/RemoteCompanionAvatar.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/session/TeammateList.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 61 |+| `mobile.resources` | mobile | 远程资源列表与详情 | app/resources/[collectionId].tsx / app/resources/[collectionId]/[resourceId].tsx | AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, DeviceLinkContext, FoldTouchpad, HomeEntryProvider, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeNativeStackHeader, IncomingShareBridge, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteCompanionAvatar, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, ResidentHomeList, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, TeammateGenerationLabel, TeammateList, ThemeProvider, [collectionId], [resourceId], _layout, gestureHandler, peerFileTransport, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/resources/[collectionId].tsx, apps/mobile/app/resources/[collectionId]/[resourceId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/RemoteCompanionAvatar.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/session/TeammateGenerationLabel.tsx, apps/mobile/src/session/TeammateList.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 62 || `mobile.settings` | mobile | 设置(含调试与日志上传可见入口) | app/settings.tsx | AdaptiveWindow, AndroidUpdateSheet, AppText, AuthContext, BlurBackdrop, CenteredScreen, ComposerNativeSection, ComposerNativeSection.ios, ComposerSheet, ComposerSheet.ios, ConnectionBanner, ConnectionNoticeOverlay, ContextSheet, ContextSheet.ios, DeviceLinkContext, FoldTouchpad, HomeEntryProvider, HomeHeaderGlassButton, HomeHeaderGlassButton.ios, HomeNativeStackHeader, IncomingShareBridge, MobileChoicePickerList, MobileLoginHandoffContext, MobileLoginHandoffStage, MobileOutboxBridge, MobilePrimitives, NativeChromeBackButton.ios, NativeChromeButton.ios, NativePullDownMenu, NativeRemoteDesktopView, NativeResidentHistory, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RecentMessageHistories, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopChrome.ios, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopHost, RemoteDesktopIcons, RemoteDesktopMouseControls, RemoteDesktopMouseControls.ios, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, RemoteDesktopWindows, ResidentHomeList, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, ThemeProvider, _layout, gestureHandler, peerFileTransport, settings, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/settings.tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/device-link/peerFileTransport.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/AdaptiveWindow.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativeChromeBackButton.ios.tsx, apps/mobile/src/platform/chrome/NativeChromeButton.ios.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/FoldTouchpad.tsx, apps/mobile/src/remote-desktop/NativeRemoteDesktopView.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopHost.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopMouseControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopWindows.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ComposerNativeSection.ios.tsx, apps/mobile/src/session/ComposerNativeSection.tsx, apps/mobile/src/session/ComposerSheet.ios.tsx, apps/mobile/src/session/ComposerSheet.tsx, apps/mobile/src/session/ContextSheet.ios.tsx, apps/mobile/src/session/ContextSheet.tsx, apps/mobile/src/session/HomeEntryProvider.tsx, apps/mobile/src/session/HomeHeaderGlassButton.ios.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/IncomingShareBridge.tsx, apps/mobile/src/session/MobileChoicePickerList.tsx, apps/mobile/src/session/MobileOutboxBridge.tsx, apps/mobile/src/session/NativeResidentHistory.tsx, apps/mobile/src/session/RecentMessageHistories.tsx, apps/mobile/src/session/ResidentHomeList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts, apps/mobile/src/update/AndroidUpdateSheet.tsx | 0 | 204 | 59 |### 生产路由覆盖diff --git a/docs/dev-rules/protocol-compatibility.md b/docs/dev-rules/protocol-compatibility.mdindex 5e47be9faa..b4a71260ec 100644--- a/docs/dev-rules/protocol-compatibility.md+++ b/docs/dev-rules/protocol-compatibility.md@@ -345,3 +345,18 @@ Seed 2.1 Pro 按火山方舟官方示例选择 Chat Completions 为 Cindy 的标缺少回执的旧服务端保持原来的精确尺寸判断;显式 `resolution` 模式不放宽。旧客户端仍可处理原来成功的精确尺寸响应;系统调整后的尺寸需要控制端和被控端同时更新。不修改请求格式、relay、IPC allowlist 或协议版本。++## 伙伴公开生成状态++`SessionActivityPayload.workingPhase` 与 Remote Resource `display.generation`+(`phase` / `startedAt`)为可选、瞬时的公开生成类别,不包含 assistant 旁白、工具参数或推理。+生成结束、等待交互或失败时撤掉生成状态;头像连接状态仍由设备目录和连接层判断。+列表失效沿用 `maker:remote-resources:changed`,未打开聊天也能重读当前状态;不新增 relay+消息或权限。各端文案沿用已有 `working:<botId>/<phase>` 只读资源和宿主按轮次、语言共用的+润色缓存。未知类别显示本地通用生成文案;缺字段的旧主机仍走原有摘要/公开阶段回退。+旧控制端忽略新增字段,普通聊天不受影响。完整的列表状态一致性需主机和控制端均带此改动;+服务端无需升级,移动端无原生 fingerprint 变更。正文过滤仅影响伙伴视图,不删除持久消息。++`compacting` 是上述公开阶段的一员,由运行时 `Compacting...` / `Compacting context…`+状态触发,`compact_boundary` 或恢复生成结束它;不读取压缩摘要。该阶段使用客户端固定的+“正在整理对话…”本地化文案,不走模型润色,仍沿用原有文字切换节奏。diff --git a/packages/device-link/src/remoteResources.ts b/packages/device-link/src/remoteResources.tsindex 3b4ecf8f41..cd46a25fbe 100644--- a/packages/device-link/src/remoteResources.ts+++ b/packages/device-link/src/remoteResources.ts@@ -71,6 +71,8 @@ export interface RemoteResourceDisplay {title: RemoteText;subtitle?: RemoteText;preview?: RemoteText;+ /** Ephemeral public generation state. Absent when idle; never a connectivity signal. */+ generation?: { phase: string; startedAt: number | null };timestamp?: number;/** Latest visible reply in host time; controllers keep their own read position. */lastReplyAt?: number;diff --git a/packages/device-link/src/topics.ts b/packages/device-link/src/topics.tsindex d34a381fe8..23d24fbfd2 100644--- a/packages/device-link/src/topics.ts+++ b/packages/device-link/src/topics.ts@@ -54,6 +54,8 @@ export function parseFsWatchTopic(topic: string): string | null {export type SessionActivityPhase = 'running' | 'needs-interaction' | 'completed' | 'error';export interface SessionActivityPayload {+ /** Optional public generation category; unknown values must use a generic caption. */+ workingPhase?: string;sessionId: string;phase: SessionActivityPhase;compactDetail: string;diff --git a/packages/maker-shared/src/sessionActivity.ts b/packages/maker-shared/src/sessionActivity.tsindex e022e9089a..1cbae5ac4a 100644--- a/packages/maker-shared/src/sessionActivity.ts+++ b/packages/maker-shared/src/sessionActivity.ts@@ -1,3 +1,5 @@+import type { WorkingPhase } from './workingStatus.js';+/*** Canonical session control-plane status projection.*@@ -55,6 +57,8 @@ export interface SessionActivitySnapshot {* Optional on the wire so older device-link snapshots remain readable.*/currentTurnActive?: boolean;+ /** Public generation category; never assistant prose, tool arguments or reasoning. */+ workingPhase?: WorkingPhase;recordStatus?: SessionRecordStatus;startedAtMs: number | null;lastActivityAtMs: number | null;diff --git a/packages/maker-shared/src/sessionList.ts b/packages/maker-shared/src/sessionList.tsindex 8fabf64d0a..9df52e6571 100644--- a/packages/maker-shared/src/sessionList.ts+++ b/packages/maker-shared/src/sessionList.ts@@ -54,6 +54,7 @@ export type RemoteSessionListMessage = RemoteSessionListMessageLike;export type RemoteSessionLiveActivityPhase = 'running' | 'needs-interaction' | 'completed' | 'error';export interface RemoteSessionLiveActivity {+ workingPhase?: string;sessionId: string;phase: RemoteSessionLiveActivityPhase;compactDetail: string;diff --git a/packages/maker-shared/src/workingStatus.ts b/packages/maker-shared/src/workingStatus.tsindex 85e8a1d7a0..ca58040ccb 100644--- a/packages/maker-shared/src/workingStatus.ts+++ b/packages/maker-shared/src/workingStatus.ts@@ -2,13 +2,22 @@ import { describeToolUse, parseToolName } from './toolUseDescriptor.js';/** Public execution facts only. Never send targets, arguments or reasoning to a model. */export const WORKING_PHASES = [- 'thinking', 'replying', 'processing', 'reading-memory', 'saving-memory',+ 'thinking', 'replying', 'processing', 'compacting', 'reading-memory', 'saving-memory','deleting-memory', 'organizing-memory','reading-file', 'saving-file', 'searching', 'reading-web', 'searching-files','testing', 'checking', 'reviewing-memory', 'reviewing-files', 'reviewing-sources','reviewing-checks',] as const;export type WorkingPhase = typeof WORKING_PHASES[number];+export function readWorkingPhase(value: unknown): WorkingPhase | null {+ return typeof value === 'string' && (WORKING_PHASES as readonly string[]).includes(value) ? value as WorkingPhase : null;+}++// These are runtime-owned status values, never assistant prose.+export function isCompactingWorkingStatus(status: unknown): boolean {+ return typeof status === 'string' && /^compacting(?: context)?(?:\.{3}|…)?$/i.test(status.trim());+}+export type PlainAgentPhase = WorkingPhase | 'waiting-input' | 'waiting-approval';export function publicToolPhase(toolName: unknown, input: unknown): WorkingPhase {@@ -63,13 +72,13 @@ export function publicToolResultPhase(phase: WorkingPhase): WorkingPhase {}export function hasPublicWorkingSubject(phase: PlainAgentPhase): boolean {- return phase !== 'processing' && phase !== 'thinking' && phase !== 'replying'+ return phase !== 'compacting' && phase !== 'processing' && phase !== 'thinking' && phase !== 'replying'&& phase !== 'waiting-input' && phase !== 'waiting-approval';}export const WORKING_PHASE_KEYS: Record<WorkingPhase, string> = {thinking: 'ccAgent.agentStatus.thinking', replying: 'ccAgent.agentStatus.replying',- processing: 'ccAgent.agentStatus.processing',+ processing: 'ccAgent.agentStatus.processing', compacting: 'ccAgent.agentStatus.organizingConversation','reading-memory': 'ccAgent.agentStatus.readingMemory', 'saving-memory': 'ccAgent.agentStatus.savingMemory','deleting-memory': 'ccAgent.agentStatus.deletingMemory', 'organizing-memory': 'ccAgent.agentStatus.organizingMemory','reading-file': 'ccAgent.agentStatus.readingFile', 'saving-file': 'ccAgent.agentStatus.savingFile',