Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(ios-simulator): keep route reports revocation-only
JiangJiahao4c15290f7e25
diff --git a/apps/desktop/src/main/cindy-brain/__tests__/sessionFocusRetryContract.test.ts b/apps/desktop/src/main/cindy-brain/__tests__/sessionFocusRetryContract.test.tsindex d1cef7a368..4b68a213cd 100644--- a/apps/desktop/src/main/cindy-brain/__tests__/sessionFocusRetryContract.test.ts+++ b/apps/desktop/src/main/cindy-brain/__tests__/sessionFocusRetryContract.test.ts@@ -19,6 +19,7 @@ describe('session focus retry wiring', () => {const body = mainSource.slice(start, end);expect(body).toContain('if (previous !== sessionId)');+ expect(body).toContain('syncIOSSimulatorRendererAccessForSessionChange(sender, sessionId);');expect(body).toContain('noteGhostSessionFocused(sessionId);');expect(body).not.toContain('if (previous === sessionId) return;');});diff --git a/apps/desktop/src/main/cindy-brain/index.ts b/apps/desktop/src/main/cindy-brain/index.tsindex c02af93eb5..a0c546c3f1 100644--- a/apps/desktop/src/main/cindy-brain/index.ts+++ b/apps/desktop/src/main/cindy-brain/index.ts@@ -2323,10 +2323,10 @@ const ghostSessionFocusByWebContents = new Map<number, string | null>();const ghostSessionFocusTrackedWebContents = new Set<number>();function noteGhostWindowSessionFocused(sender: WebContents, sessionId: string | null): void {- // Renderer route reports are not an authority to mint Simulator Viewer- // access. They may only select an exact Viewer grant that the Host already- // retained for this session-scoped sidebar bucket, or clear a stale active- // mutation grant when the window family moves elsewhere.+ // Renderer route reports are not an authorization source. They may only+ // pause a stale active mutation grant when the window family moves away;+ // retained Viewer grants require Main/Host confirmation or focus to become+ // active again.const previous = ghostSessionFocusByWebContents.get(sender.id);if (previous !== sessionId) {syncIOSSimulatorRendererAccessForSessionChange(sender, sessionId);diff --git a/apps/desktop/src/main/maker-ipc/__tests__/iosSimulatorHandlers.test.ts b/apps/desktop/src/main/maker-ipc/__tests__/iosSimulatorHandlers.test.tsindex 00c61c3c59..cb1bfce95c 100644--- a/apps/desktop/src/main/maker-ipc/__tests__/iosSimulatorHandlers.test.ts+++ b/apps/desktop/src/main/maker-ipc/__tests__/iosSimulatorHandlers.test.ts@@ -311,6 +311,40 @@ describe('iOS Simulator IPC handlers', () => {expect(getStatus).toHaveBeenCalledWith('session-a');});+ it.each([+ ['active', { sessionId: 'session-a', generation: 1 }],+ ['paused', { sessionId: 'session-b', generation: 2 }],+ ] as const)('projects %s control access from the Main-owned grant', async (expected, grant) => {+ const harness = new IpcHarness();+ registerTrusted(harness, {+ getSessionAccess: () => grant,+ getStatus: async () => ({+ ok: true,+ sessionId: 'session-a',+ instances: [],+ deviceGrants: [],+ mutationStates: [],+ environment: {+ platform: 'darwin',+ supported: true,+ ready: true,+ xcodeVersion: 'Xcode 26.4',+ runtimes: [],+ devices: [],+ issue: null,+ error: null,+ setupSteps: [],+ },+ }),+ });++ await expect(+ harness.invokeFrom(17, MAKER_INVOKE.IOS_SIMULATOR_STATUS, {+ sessionId: 'session-a',+ }),+ ).resolves.toMatchObject({ controlAccess: expected });+ });+it('rejects a request before calling the host while the owner boundary is pending', async () => {const harness = new IpcHarness();const getStatus = vi.fn();diff --git a/apps/desktop/src/main/maker-ipc/iosSimulatorHandlers.ts b/apps/desktop/src/main/maker-ipc/iosSimulatorHandlers.tsindex 4ececd3527..c120a2b98f 100644--- a/apps/desktop/src/main/maker-ipc/iosSimulatorHandlers.ts+++ b/apps/desktop/src/main/maker-ipc/iosSimulatorHandlers.ts@@ -426,9 +426,16 @@ export function registerIOSSimulatorHandlers(});handle(MAKER_INVOKE.IOS_SIMULATOR_STATUS, async (event, payload) => {const sessionId = readSessionId(payload);- return callIOSSimulatorHostForViewerStatus(event, sessionId, () =>+ const sender = readSenderWebContents(event);+ const status = await callIOSSimulatorHostForViewerStatus(event, sessionId, () =>resolved.getStatus(sessionId),);+ if (!status.ok) return status;+ return {+ ...status,+ controlAccess:+ resolved.getSessionAccess(sender)?.sessionId === sessionId ? 'active' : 'paused',+ };});handle(MAKER_INVOKE.IOS_SIMULATOR_CALL, async (event, payload) => {const record = readRecord(payload);diff --git a/apps/desktop/src/main/mcp-integrations/__tests__/ios-simulator-renderer-access.test.ts b/apps/desktop/src/main/mcp-integrations/__tests__/ios-simulator-renderer-access.test.tsindex 661530df7a..a7dd321e4a 100644--- a/apps/desktop/src/main/mcp-integrations/__tests__/ios-simulator-renderer-access.test.ts+++ b/apps/desktop/src/main/mcp-integrations/__tests__/ios-simulator-renderer-access.test.ts@@ -86,7 +86,7 @@ describe('IOSSimulatorRendererAccessRegistry', () => {expect(registry.accessSnapshot(main.target)).toBeNull();});- it('retains authorized Viewer sessions and restores the active grant on session return', () => {+ it('retains authorized Viewer sessions without restoring control from a route report', () => {const registry = new IOSSimulatorRendererAccessRegistry();const main = fakeWebContents(21);registry.configureResolver(() => ({ grantTargets: [main.target], focusTarget: main.target }));@@ -100,10 +100,10 @@ describe('IOSSimulatorRendererAccessRegistry', () => {expect(registry.syncForSessionChange(main.target, 'session-a')).toBe(1);expect(registry.hasAccess(main.target, 'session-a')).toBe(true);- expect(registry.accessSnapshot(main.target)).toEqual({- sessionId: 'session-a',- generation: 1,- });+ expect(registry.accessSnapshot(main.target)).toBeNull();++ expect(registry.syncForSessionChange(main.target, 'session-b')).toBe(0);+ expect(registry.accessSnapshot(main.target)).toBeNull();});it('restores the previous active session when a new focus command cannot be delivered', () => {@@ -556,7 +556,7 @@ describe('IOSSimulatorRendererAccessRegistry', () => {expect(registry.hasAccess(sidebar.target, 'session-a')).toBe(false);});- it('restores an inherited family when returning to a retained Viewer session', () => {+ it('keeps an inherited family paused until an authoritative focus grant returns', () => {const registry = new IOSSimulatorRendererAccessRegistry();const main = fakeWebContents(101);const sidebar = fakeWebContents(102);@@ -576,14 +576,18 @@ describe('IOSSimulatorRendererAccessRegistry', () => {expect(registry.accessSnapshot(sidebar.target)).toBeNull();expect(revoked).not.toHaveBeenCalled();- expect(registry.syncForSessionChange(sidebar.target, 'session-a')).toBe(2);+ expect(registry.syncForSessionChange(sidebar.target, 'session-a')).toBe(0);+ expect(registry.accessSnapshot(main.target)).toBeNull();+ expect(registry.accessSnapshot(sidebar.target)).toBeNull();++ expect(registry.grantAndFocus('session-a')).toBe(true);expect(registry.accessSnapshot(main.target)).toEqual({sessionId: 'session-a',- generation: 1,+ generation: 2,});expect(registry.accessSnapshot(sidebar.target)).toEqual({sessionId: 'session-a',- generation: 1,+ generation: 2,});});diff --git a/apps/desktop/src/main/mcp-integrations/ios-simulator-renderer-access.ts b/apps/desktop/src/main/mcp-integrations/ios-simulator-renderer-access.tsindex b2b2dc5f48..ea0090fda3 100644--- a/apps/desktop/src/main/mcp-integrations/ios-simulator-renderer-access.ts+++ b/apps/desktop/src/main/mcp-integrations/ios-simulator-renderer-access.ts@@ -373,23 +373,15 @@ export class IOSSimulatorRendererAccessRegistry {this.bumpTargetEpoch(target.id);}const current = this.activeGrants.get(target.id);- const retained = resolved && normalizedSessionId- ? this.viewerGrants.get(target.id)?.get(normalizedSessionId)- : undefined;- const next =- retained?.target === target && !retained.target.isDestroyed() ? retained : undefined;- if (current?.target !== target && !next) continue;- if (current === next) continue;-- // The route report may select only a Viewer grant that the Host already- // minted for this exact WebContents. It never creates or transfers a- // Viewer authorization from renderer-supplied session data.+ if (current?.target !== target) continue;+ if (normalizedSessionId && current.sessionId === normalizedSessionId) continue;++ // Renderer route reports are revocation-only. A renderer-controlled+ // sessionId may pause a stale active mutation grant, but it must never+ // promote any retained Viewer grant. Only Main/Host confirmation and+ // focus flows may select the active grant again.this.bumpTargetEpoch(target.id);- if (next) {- this.activeGrants.set(target.id, next);- } else if (current?.target === target) {- this.activeGrants.delete(target.id);- }+ this.activeGrants.delete(target.id);changed += 1;}return changed;diff --git a/apps/desktop/src/renderer/__tests__/iosSimulatorAccessCopy.test.ts b/apps/desktop/src/renderer/__tests__/iosSimulatorAccessCopy.test.tsindex 0642915e9c..60f316046d 100644--- a/apps/desktop/src/renderer/__tests__/iosSimulatorAccessCopy.test.ts+++ b/apps/desktop/src/renderer/__tests__/iosSimulatorAccessCopy.test.ts@@ -7,21 +7,21 @@ import zhCN from '../i18n/locales/zh-CN/common.json';import zhTW from '../i18n/locales/zh-TW/common.json';describe('iOS Simulator access copy', () => {- it('explains that session authorization is retained while control pauses off-session', () => {+ it('explains that viewing is retained while control needs renewed authorization', () => {expect(zhCN.rightSidebar.iosSimulator.accessDialogDetail).toBe(- '此权限仅对该任务生效。切换到其他任务后仍会保留授权,但控制会暂停;返回该任务时自动恢复。',+ '此权限仅对该任务生效。切换到其他任务后会保留查看授权,但控制会暂停;返回后请再次允许控制。',);expect(zhTW.rightSidebar.iosSimulator.accessDialogDetail).toBe(- '此權限僅對該任務生效。切換到其他任務後仍會保留授權,但控制會暫停;返回該任務時自動恢復。',+ '此權限僅對該任務生效。切換到其他任務後會保留檢視授權,但控制會暫停;返回後請再次允許控制。',);expect(en.rightSidebar.iosSimulator.accessDialogDetail).toBe(- 'This permission applies only to this session. Authorization is retained when you switch away, but control pauses until you return.',+ 'This permission applies only to this session. Switching away retains viewing access but pauses control; allow control again after you return.',);expect(ja.rightSidebar.iosSimulator.accessDialogDetail).toBe(- 'この権限はこのセッションにのみ適用されます。別のセッションへ切り替えても許可は保持されますが、操作は戻るまで一時停止します。',+ 'この権限はこのセッションにのみ適用されます。別のセッションへ切り替えても表示権限は保持されますが、操作は一時停止します。戻った後にもう一度操作を許可してください。',);expect(ko.rightSidebar.iosSimulator.accessDialogDetail).toBe(- '이 권한은 이 세션에만 적용됩니다. 다른 세션으로 전환해도 권한은 유지되지만, 돌아올 때까지 제어가 일시 중지됩니다.',+ '이 권한은 이 세션에만 적용됩니다. 다른 세션으로 전환해도 보기 권한은 유지되지만 제어는 일시 중지됩니다. 돌아온 뒤 제어를 다시 허용하세요.',);});});diff --git a/apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/IOSSimulatorTabBody.tsx b/apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/IOSSimulatorTabBody.tsxindex dd34faaabb..fd3cc80283 100644--- a/apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/IOSSimulatorTabBody.tsx+++ b/apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/IOSSimulatorTabBody.tsx@@ -442,7 +442,7 @@ export function IOSSimulatorTabBody({sessionId: ctx.sessionId,});if (requestVersion === requestVersionRef.current) {- setAccessRequired(false);+ setAccessRequired(next.ok && next.controlAccess === 'paused');setStatus(next);}return next;@@ -570,7 +570,8 @@ export function IOSSimulatorTabBody({const agentBusy = Boolean(mutation?.activeSource === 'agent' || (mutation?.queuedAgentMutations ?? 0) > 0,);- const busy = operation !== null || interactionBusy || agentBusy;+ const controlPaused = Boolean(status?.ok && status.controlAccess === 'paused');+ const busy = operation !== null || interactionBusy || agentBusy || controlPaused;const viewerVisible = Boolean(active && shellVisible && attachedInstance?.lifecycleState === 'ready',);@@ -1926,7 +1927,7 @@ export function IOSSimulatorTabBody({: 'rightSidebar.iosSimulator.takeControl',)}icon={mutation?.agentPaused ? Play : ShieldCheck}- disabled={operation !== null || mutation?.takeoverPending}+ disabled={operation !== null || mutation?.takeoverPending || controlPaused}onClick={() => void setMutationControl()}/></div>@@ -2016,7 +2017,7 @@ export function IOSSimulatorTabBody({)}icon={nativeRecoveryPending ? Loader2 : RefreshCw}spinning={nativeRecoveryPending}- disabled={nativeRecoveryPending || !viewerReadyToken}+ disabled={nativeRecoveryPending || !viewerReadyToken || controlPaused}onClick={() => void retryNativeRoute()}/></>diff --git a/apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/__tests__/IOSSimulatorTabBody.test.tsx b/apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/__tests__/IOSSimulatorTabBody.test.tsxindex 6c6dfc597d..b63820da22 100644--- a/apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/__tests__/IOSSimulatorTabBody.test.tsx+++ b/apps/desktop/src/renderer/features/right-sidebar/plugins/ios-simulator/__tests__/IOSSimulatorTabBody.test.tsx@@ -364,6 +364,38 @@ afterEach(() => {});describe('IOSSimulatorTabBody', () => {+ it('keeps Viewer status visible while control waits for renewed authorization', async () => {+ const pausedStatus = readyStatus();+ if (!pausedStatus.ok) throw new Error('Expected a ready simulator status.');+ pausedStatus.controlAccess = 'paused';+ const api = installStatus(pausedStatus);++ render(<IOSSimulatorTabBody state={{ instanceId: null }} ctx={ctx} />);++ await screen.findByText('rightSidebar.iosSimulator.accessRequiredTitle');+ expect(screen.getByText('iPhone 17 Pro')).toBeTruthy();+ expect(+ (+ screen.getByRole('combobox', {+ name: 'rightSidebar.iosSimulator.streamProfile',+ }) as HTMLSelectElement+ ).disabled,+ ).toBe(true);+ expect(api.requestAccess).not.toHaveBeenCalled();+ api.requestAccess.mockImplementationOnce(async () => {+ api.setStatusValue({ ...pausedStatus, controlAccess: 'active' });+ return { granted: true };+ });++ fireEvent.click(+ screen.getByRole('button', { name: 'rightSidebar.iosSimulator.allowTaskAccess' }),+ );+ await waitFor(() => {+ expect(api.requestAccess).toHaveBeenCalledWith({ sessionId: 'session-a' });+ expect(screen.queryByText('rightSidebar.iosSimulator.accessRequiredTitle')).toBeNull();+ });+ });+it('requires a user gesture before requesting native access for a restored panel', async () => {const api = installStatus(readyStatus());api.status.mockRejectedValueOnce(diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex 820a4131db..4e5f3ede2d 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -4647,13 +4647,13 @@},"refresh": "Refresh","checking": "Checking",- "accessRequiredTitle": "Authorize This Session",- "accessRequiredDescription": "This panel is not authorized to access the simulator for this session. Confirm access in the system dialog.",- "allowTaskAccess": "Allow Session Access",+ "accessRequiredTitle": "Allow Session Control",+ "accessRequiredDescription": "Status viewing may remain available, but tapping, typing, and other controls require authorization for this session. Confirm in the system dialog.",+ "allowTaskAccess": "Allow Session Control","requestingAccess": "Requesting Access…","accessDialogTitle": "Allow iOS Simulator Control?","accessDialogMessage": "Allow this Cindy window to view and control the iOS Simulator for “{{task}}”?",- "accessDialogDetail": "This permission applies only to this session. Authorization is retained when you switch away, but control pauses until you return.",+ "accessDialogDetail": "This permission applies only to this session. Switching away retains viewing access but pauses control; allow control again after you return.","accessDialogAllow": "Allow Simulator Control","accessDialogCancel": "Cancel","accessDialogUntitledTask": "Untitled Session",diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex bc83d7f8f6..3682e828be 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -4645,13 +4645,13 @@},"refresh": "更新","checking": "確認中",- "accessRequiredTitle": "このセッションを承認",- "accessRequiredDescription": "このパネルには、このセッションのシミュレータへアクセスする権限がありません。システムダイアログで確認してください。",- "allowTaskAccess": "セッションのアクセスを許可",+ "accessRequiredTitle": "このセッションの操作を許可",+ "accessRequiredDescription": "状態の表示は引き続き利用できる場合がありますが、タップ、入力、その他の操作にはこのセッションの許可が必要です。システムダイアログで確認してください。",+ "allowTaskAccess": "セッションの操作を許可","requestingAccess": "アクセスをリクエスト中…","accessDialogTitle": "iOS シミュレータの操作を許可しますか?","accessDialogMessage": "Cindy のこのウインドウに「{{task}}」の iOS シミュレータの表示と操作を許可しますか?",- "accessDialogDetail": "この権限はこのセッションにのみ適用されます。別のセッションへ切り替えても許可は保持されますが、操作は戻るまで一時停止します。",+ "accessDialogDetail": "この権限はこのセッションにのみ適用されます。別のセッションへ切り替えても表示権限は保持されますが、操作は一時停止します。戻った後にもう一度操作を許可してください。","accessDialogAllow": "シミュレータの操作を許可","accessDialogCancel": "キャンセル","accessDialogUntitledTask": "名称未設定のセッション",diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex 79f7aa18a6..34bbad5cfb 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -4645,13 +4645,13 @@},"refresh": "새로 고침","checking": "확인 중",- "accessRequiredTitle": "이 세션 승인",- "accessRequiredDescription": "이 패널에는 현재 세션의 시뮬레이터 접근 권한이 없습니다. 시스템 대화상자에서 확인하세요.",- "allowTaskAccess": "세션 접근 허용",+ "accessRequiredTitle": "이 세션 제어 허용",+ "accessRequiredDescription": "상태 보기는 계속 사용할 수 있지만 탭, 입력 및 기타 제어는 이 세션의 권한이 있어야 사용할 수 있습니다. 시스템 대화상자에서 확인하세요.",+ "allowTaskAccess": "세션 제어 허용","requestingAccess": "접근 요청 중…","accessDialogTitle": "iOS 시뮬레이터 제어를 허용할까요?","accessDialogMessage": "이 Cindy 창에서 ‘{{task}}’의 iOS 시뮬레이터를 보고 제어하도록 허용할까요?",- "accessDialogDetail": "이 권한은 이 세션에만 적용됩니다. 다른 세션으로 전환해도 권한은 유지되지만, 돌아올 때까지 제어가 일시 중지됩니다.",+ "accessDialogDetail": "이 권한은 이 세션에만 적용됩니다. 다른 세션으로 전환해도 보기 권한은 유지되지만 제어는 일시 중지됩니다. 돌아온 뒤 제어를 다시 허용하세요.","accessDialogAllow": "시뮬레이터 제어 허용","accessDialogCancel": "취소","accessDialogUntitledTask": "이름 없는 세션",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex 67b40a49f9..36768447ee 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -4645,13 +4645,13 @@},"refresh": "刷新","checking": "正在检查",- "accessRequiredTitle": "授权当前任务",- "accessRequiredDescription": "此面板尚未获得当前任务的模拟器访问权限。请先在系统弹窗中确认。",- "allowTaskAccess": "允许当前任务访问",+ "accessRequiredTitle": "允许当前任务控制",+ "accessRequiredDescription": "查看状态可能仍然可用,但点击、输入和其他控制仅在当前任务获得授权后开放。请在系统弹窗中确认。",+ "allowTaskAccess": "允许任务控制","requestingAccess": "正在请求访问…","accessDialogTitle": "允许控制 iOS 模拟器?","accessDialogMessage": "允许当前 Cindy 窗口为任务“{{task}}”查看和控制 iOS 模拟器吗?",- "accessDialogDetail": "此权限仅对该任务生效。切换到其他任务后仍会保留授权,但控制会暂停;返回该任务时自动恢复。",+ "accessDialogDetail": "此权限仅对该任务生效。切换到其他任务后会保留查看授权,但控制会暂停;返回后请再次允许控制。","accessDialogAllow": "允许模拟器控制","accessDialogCancel": "取消","accessDialogUntitledTask": "未命名任务",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex 97b170a4b0..20a35f106d 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -4645,13 +4645,13 @@},"refresh": "重新整理","checking": "正在檢查",- "accessRequiredTitle": "授权當前任務",- "accessRequiredDescription": "此面板尚未获得當前任務的模擬器存取權限。請先在系統弹窗中確認。",- "allowTaskAccess": "允許當前任務存取",+ "accessRequiredTitle": "允許當前任務控制",+ "accessRequiredDescription": "狀態檢視可能仍可使用,但點按、輸入和其他控制只有在目前任務獲得授權後才會開放。請在系統對話框中確認。",+ "allowTaskAccess": "允許任務控制","requestingAccess": "正在請求存取…","accessDialogTitle": "允許控制 iOS 模擬器?","accessDialogMessage": "允許當前 Cindy 視窗为任務“{{task}}”檢視和控制 iOS 模擬器吗?",- "accessDialogDetail": "此權限僅對該任務生效。切換到其他任務後仍會保留授權,但控制會暫停;返回該任務時自動恢復。",+ "accessDialogDetail": "此權限僅對該任務生效。切換到其他任務後會保留檢視授權,但控制會暫停;返回後請再次允許控制。","accessDialogAllow": "允許模擬器控制","accessDialogCancel": "取消","accessDialogUntitledTask": "未命名任務",diff --git a/apps/desktop/src/shared/iosSimulatorIpc.ts b/apps/desktop/src/shared/iosSimulatorIpc.tsindex 168f0b4156..54377f8e72 100644--- a/apps/desktop/src/shared/iosSimulatorIpc.ts+++ b/apps/desktop/src/shared/iosSimulatorIpc.ts@@ -103,6 +103,8 @@ export type IOSSimulatorSessionStatus =instances: IOSSimulatorPublicInstance[];deviceGrants: IOSSimulatorDeviceGrant[];mutationStates: IOSSimulatorMutationState[];+ /** Optional for compatibility with older Main processes. */+ controlAccess?: 'active' | 'paused';/** Optional for compatibility with older Host builds. */resource?: IOSSimulatorPublicResourceStatus;/** Optional for compatibility with older detached/sidebar renderers. */