Skip to content

armgit / cindy

Public Imported from GitHub
0

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

fix(ios-simulator): clarify retained session access

JiangJiahao56e4ac9db790
diff --git a/apps/desktop/src/renderer/__tests__/iosSimulatorAccessCopy.test.ts b/apps/desktop/src/renderer/__tests__/iosSimulatorAccessCopy.test.ts
new file mode 100644
index 0000000000..0642915e9c
--- /dev/null
+++ b/apps/desktop/src/renderer/__tests__/iosSimulatorAccessCopy.test.ts
@@ -0,0 +1,27 @@
+import { describe, expect, it } from 'vitest';
+
+import en from '../i18n/locales/en/common.json';
+import ja from '../i18n/locales/ja/common.json';
+import ko from '../i18n/locales/ko/common.json';
+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', () => {
+ 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.',
+ );
+ expect(ja.rightSidebar.iosSimulator.accessDialogDetail).toBe(
+ 'この権限はこのセッションにのみ適用されます。別のセッションへ切り替えても許可は保持されますが、操作は戻るまで一時停止します。',
+ );
+ expect(ko.rightSidebar.iosSimulator.accessDialogDetail).toBe(
+ '이 권한은 이 세션에만 적용됩니다. 다른 세션으로 전환해도 권한은 유지되지만, 돌아올 때까지 제어가 일시 중지됩니다.',
+ );
+ });
+});
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index 15be4264a2..820a4131db 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -4653,7 +4653,7 @@
"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 and is revoked when you switch sessions.",
+ "accessDialogDetail": "This permission applies only to this session. Authorization is retained when you switch away, but control pauses until 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.json
index a83ad8fed9..bc83d7f8f6 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -4651,7 +4651,7 @@
"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.json
index ba2ea99c6f..79f7aa18a6 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -4651,7 +4651,7 @@
"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.json
index f2f28e9a2d..67b40a49f9 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -4651,7 +4651,7 @@
"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.json
index 044b07021b..97b170a4b0 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
@@ -4651,7 +4651,7 @@
"requestingAccess": "正在請求存取…",
"accessDialogTitle": "允許控制 iOS 模擬器?",
"accessDialogMessage": "允許當前 Cindy 視窗为任務“{{task}}”檢視和控制 iOS 模擬器吗?",
- "accessDialogDetail": "此權限僅对该任務生效;切換任務后会自动撤銷。",
+ "accessDialogDetail": "此權限僅對該任務生效。切換到其他任務後仍會保留授權,但控制會暫停;返回該任務時自動恢復。",
"accessDialogAllow": "允許模擬器控制",
"accessDialogCancel": "取消",
"accessDialogUntitledTask": "未命名任務",