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(feishu): 群 /ctr 权限档判定兜底 + 完全访问护栏取缔

Lizi4b5a0243a532
diff --git a/apps/desktop/src/main/im/feishu/__tests__/feishuAdapter.test.ts b/apps/desktop/src/main/im/feishu/__tests__/feishuAdapter.test.ts
index 468fccbe93..0cef70e7bc 100644
--- a/apps/desktop/src/main/im/feishu/__tests__/feishuAdapter.test.ts
+++ b/apps/desktop/src/main/im/feishu/__tests__/feishuAdapter.test.ts
@@ -271,6 +271,12 @@ describe('feishu group lane adapter hooks', () => {
expect(dmPolicy).toBeUndefined();
});
+ it('turnPolicyOptionalForMode: 仅完全访问档可选(护栏取缔), 其余档保持挂策略', () => {
+ expect(adapter.turnPolicyOptionalForMode?.('bypassPermissions')).toBe(true);
+ expect(adapter.turnPolicyOptionalForMode?.('auto')).toBe(false);
+ expect(adapter.turnPolicyOptionalForMode?.('acceptEdits')).toBe(false);
+ });
+
it('prepareAgentTurnText: 群 lane 拉历史拼上下文前缀(带时间标注), 剔除触发消息', async () => {
fetchChatHistoryPage.mockResolvedValueOnce(
historyPage([
diff --git a/apps/desktop/src/main/im/feishu/adapter.ts b/apps/desktop/src/main/im/feishu/adapter.ts
index 42fda5b4ea..579d9d7fea 100644
--- a/apps/desktop/src/main/im/feishu/adapter.ts
+++ b/apps/desktop/src/main/im/feishu/adapter.ts
@@ -319,6 +319,11 @@ export function buildFeishuAdapter(
// 改投 owner 私聊, 点击也只认 owner。DM 不挂, owner 私聊保持全速。
turnPermissionPolicyFor: (event) =>
event.speaker ? createFeishuGroupTurnPermissionPolicy(event.messageId) : undefined,
+ // 群护栏取缔: 用户在渠道设置里显式允许群会话用「完全访问」→ 该档位
+ // 不再挂强确认策略(maker 不再拒绝, 按用户选择直接执行)。群上下文的
+ // 防注入过滤/包裹在 prepareAgentTurnText 里独立生效, 不随权限档关闭;
+ // acceptEdits 仍保持失败路径(错误 + 私聊修复卡)。
+ turnPolicyOptionalForMode: (mode) => mode === 'bypassPermissions',
// 群 lane: 触发时按页回翻群历史拼上下文前缀(含媒体附件), 落库仍是渠道原文。
prepareAgentTurnText: async (event) => {
const lane = decodeFeishuLaneUserId(event.senderId);
diff --git a/apps/desktop/src/main/im/feishu/uiText.ts b/apps/desktop/src/main/im/feishu/uiText.ts
index 9e22004af8..8f0b6722c0 100644
--- a/apps/desktop/src/main/im/feishu/uiText.ts
+++ b/apps/desktop/src/main/im/feishu/uiText.ts
@@ -92,9 +92,16 @@ export const ui = {
error: {
agentUnsupported:
'🤔 当前选择的 Agent 在这个渠道需要逐条权限确认,暂时上不了场,换一个 Agent 再试~',
- permissionModeUnsupported:
- '⚠️ 群/话题会话不能用「完全访问」权限档 — 群上下文里有成员可控的内容,必须保留操作确认。\n' +
- '我往你私聊发了张修复卡,去点一下切回「自动审批」就能继续~(也可以发 /permission 手动切)',
+ permissionModeUnsupported: (permissionMode: string) => {
+ // 「完全访问」已由渠道设置显式放行(护栏取缔), 这里实际只剩
+ // acceptEdits(自动接受编辑)会被群强确认策略拒绝 — 按档位点名报错。
+ const modeLabel =
+ permissionMode === 'acceptEdits' ? '「自动接受编辑」' : '当前权限档';
+ return (
+ `⚠️ 群/话题会话不能用${modeLabel} — 群上下文里有成员可控的内容,必须保留操作确认。\n` +
+ '我往你私聊发了张修复卡,去点一下切回「自动审批」就能继续~(也可以发 /permission 手动切)'
+ );
+ },
},
// ── card text (sent via @cindy/im InteractiveCardSpec) ──────────────────────
diff --git a/apps/desktop/src/main/im/shared/__tests__/turnRunnerSendOutcome.test.ts b/apps/desktop/src/main/im/shared/__tests__/turnRunnerSendOutcome.test.ts
index 89897dc853..b2b91a018d 100644
--- a/apps/desktop/src/main/im/shared/__tests__/turnRunnerSendOutcome.test.ts
+++ b/apps/desktop/src/main/im/shared/__tests__/turnRunnerSendOutcome.test.ts
@@ -42,7 +42,7 @@ const mocks = vi.hoisted(() => ({
bindingGet: vi.fn(),
bindingDetach: vi.fn(),
peekSession: async () => null,
- peekSessionById: async () => null,
+ peekSessionById: vi.fn<(sessionId: string) => Promise<ImSessionRow | null>>(async () => null),
findActiveSession: vi.fn(),
createSession: vi.fn(),
touchUserSent: vi.fn(),
@@ -267,7 +267,7 @@ function createSessionHarness(
const fakeRepo: ImSessionRepo = {
sessionIdFor: (bot, user) => `feishu_${bot}_${user}`,
peekSession: async () => null,
- peekSessionById: async () => null,
+ peekSessionById: mocks.peekSessionById,
findActiveSession: (...args: [string, string]) => mocks.findActiveSession(...args),
prepareNewSession: vi.fn(async (bot: string, user: string): Promise<ImSessionRow> => ({
id: `feishu_${bot}_${user}`,
@@ -1083,6 +1083,97 @@ describe('turnRunner send outcome policy (feishu adapter characterization)', ()
},
);
+ it('skips the turn policy when the channel declares the session mode optional (Full access guardrail removal)', async () => {
+ // feishu 渠道设置显式放行「完全访问」后: 该档位的群轮次不再挂强确认
+ // 策略, maker 不 fail-closed, 按用户选择直接执行。
+ mocks.peekSessionById.mockImplementationOnce(async () => ({
+ permissionMode: 'bypassPermissions',
+ } as unknown as ImSessionRow));
+ const h = createSessionHarness(async () => ({ accepted: true }));
+ mocks.getMaker.mockReturnValue(createMakerHarness(h.session));
+ const localAdapter = {
+ ...fakeAdapter,
+ turnPolicyOptionalForMode: (mode: string) => mode === 'bypassPermissions',
+ } as unknown as ImChannelAdapter;
+ const localRunner = createTurnRunner(localAdapter, fakeRepo, fakeCards, {});
+
+ try {
+ await localRunner.runAgentTurn({
+ botContextId: 'cli_test_bot',
+ userId: 'g/oc_group1/omt_t1',
+ userMessageId: 'msg-policy-skip',
+ text: 'full access group turn',
+ attachments: [],
+ turnPermissionPolicy: {
+ origin: { kind: 'im', channel: 'feishu', taskId: 'msg-policy-skip' },
+ confirmationSurface: 'channel',
+ forceConfirmToolCall: () => false,
+ },
+ });
+
+ expect(h.session.send).toHaveBeenCalledTimes(1);
+ // 策略被渠道判定为可选 → send opts 不带 turnPermissionPolicy。
+ expect(h.session.send).toHaveBeenCalledWith(
+ expect.anything(),
+ expect.not.objectContaining({ turnPermissionPolicy: expect.anything() }),
+ );
+ // 与策略配套的 turn lease 也不该挂。
+ expect(h.session.acquireTurnLease).not.toHaveBeenCalled();
+ } finally {
+ localRunner.disposeAllSessions();
+ }
+ });
+
+ it('keeps the turn policy for other modes even with the optional-mode hook', async () => {
+ mocks.peekSessionById.mockImplementationOnce(
+ async () => ({ permissionMode: 'auto' } as unknown as ImSessionRow),
+ );
+ const h = createSessionHarness(
+ async () => {
+ throw new TurnPermissionPolicyUnsupportedError('claude-code', 'bypassPermissions');
+ },
+ 'feishu-session-2',
+ {
+ capabilities: {
+ turnPermissionPolicy: {
+ supported: { supported: true },
+ unsupportedPermissionModes: ['bypassPermissions'],
+ },
+ } as unknown as Capabilities,
+ },
+ );
+ mocks.getMaker.mockReturnValue(createMakerHarness(h.session));
+ const localAdapter = {
+ ...fakeAdapter,
+ turnPolicyOptionalForMode: (mode: string) => mode === 'bypassPermissions',
+ } as unknown as ImChannelAdapter;
+ const localRunner = createTurnRunner(localAdapter, fakeRepo, fakeCards, {});
+
+ try {
+ const dispatch = await localRunner.dispatchAgentTurn({
+ botContextId: 'cli_test_bot',
+ userId: 'g/oc_group1/omt_t1',
+ userMessageId: 'msg-policy-kept',
+ text: 'auto group turn',
+ attachments: [],
+ queueMode: 'external',
+ beforeProviderStart: vi.fn(async () => undefined),
+ turnPermissionPolicy: {
+ origin: { kind: 'im', channel: 'feishu', taskId: 'msg-policy-kept' },
+ confirmationSurface: 'channel',
+ forceConfirmToolCall: () => false,
+ },
+ });
+ // auto 档不在可选项里 — 策略保留, maker 拒绝照旧。
+ expect(dispatch).toEqual({
+ kind: 'rejected',
+ reason: 'TURN_PERMISSION_POLICY_UNSUPPORTED:mode:bypassPermissions',
+ });
+ } finally {
+ localRunner.disposeAllSessions();
+ }
+ });
+
it('sends a private fix card to the owner DM when a group turn is rejected for Full access', async () => {
const h = createSessionHarness(
async () => {
@@ -1116,7 +1207,7 @@ describe('turnRunner send outcome policy (feishu adapter characterization)', ()
// 群 lane 报错文案之外, 再发一张一键修复卡到 owner 私聊。
expect(mocks.feishuIm.sendText).toHaveBeenCalledWith(
'g/oc_group1/omt_t1',
- expect.stringContaining('完全访问'),
+ expect.stringContaining('群/话题会话不能用'),
expect.anything(),
);
expect(mocks.feishuIm.sendInteractiveCard).toHaveBeenCalledWith(
diff --git a/apps/desktop/src/main/im/shared/cardActionHandler.ts b/apps/desktop/src/main/im/shared/cardActionHandler.ts
index e0af985332..87601fbd14 100644
--- a/apps/desktop/src/main/im/shared/cardActionHandler.ts
+++ b/apps/desktop/src/main/im/shared/cardActionHandler.ts
@@ -850,13 +850,21 @@ export function createCardActionHandler(
const desktopPrefs = getDesktopCcPrefs() ?? DESKTOP_CC_DEFAULTS;
// 飞书群/话题里的 /ctr 新建: 权限档用渠道设置「群聊新建会话权限档」
- // (默认 auto 自动审批) — 群上下文含成员可控内容, 完全访问档与群轮次
- // 强确认策略互斥, 派发时会被拒绝; 私聊保持 desktop 偏好不变。
+ // (默认 auto 自动审批); 私聊保持 desktop 偏好不变。
+ // 群判定不能只靠 senderId lane 归一 — lane 登记表在 WS 重连/进程重启后
+ // 清空, 回调 senderId 会回落 operator.open_id。open_chat_id 恒在回调里:
+ // 群 chat 以 oc_ 开头, p2p 的 chat_id 是对方 open_id(ou_ 前缀), 用
+ // chatId 前缀兜底判定, 与 lane 归一互为备份。
const isFeishuGroupControl =
- channel === 'feishu' && decodeFeishuLaneUserId(event.senderId) !== null;
+ channel === 'feishu' &&
+ (decodeFeishuLaneUserId(event.senderId) !== null || event.chatId.startsWith('oc_'));
const controlNewPermissionMode = isFeishuGroupControl
? readImDefaultSettings('feishu').groupCtrPermissionMode
: desktopPrefs.permissionMode;
+ log.info(
+ `control:new permission mode=${controlNewPermissionMode} group=${isFeishuGroupControl} ` +
+ `sender=...${event.senderId.slice(-8)}`,
+ );
// 停用轴准入(PR #744 review 第五轮):IM 新建会话是新的付费路由,desktop 偏好里
// 保存的 model/provider 可能已被用户停用 —— 宽松降级:被停用的显式来源/模型逐级
// 丢弃(退回 agent 默认路由),隐式默认被停用时显式落替代来源;不因停用让 IM
diff --git a/apps/desktop/src/main/im/shared/turnRunner.ts b/apps/desktop/src/main/im/shared/turnRunner.ts
index 2ac126c7be..b053ddf0ba 100644
--- a/apps/desktop/src/main/im/shared/turnRunner.ts
+++ b/apps/desktop/src/main/im/shared/turnRunner.ts
@@ -857,6 +857,34 @@ export function createTurnRunner(
* 典型: 接管模式下 desktop 排队消息和渠道排队消息在同一个 done 后争抢) →
* 退回队首, 等下一个 done/error 或 retry timer 再派发, 不报错。
*/
+ /**
+ * 群护栏取缔(feishu): 渠道通过 turnPolicyOptionalForMode 声明「该权限档下
+ * 强确认策略可选」时, dispatch 前按会话当前权限档决定是否真正挂策略 —
+ * 返回 undefined = 不挂, maker 不再 fail-closed, 按用户显式选择直接执行。
+ * 群上下文的防注入过滤与包裹独立于策略, 照常生效; 查档失败保持挂策略
+ * (fail-closed 兜底)。其它渠道不实现该钩子, 行为不变。
+ */
+ async function resolveEffectiveTurnPolicy(
+ item: QueuedSend,
+ ): Promise<TurnPermissionPolicy | undefined> {
+ if (!item.turnPermissionPolicy || !adapter.turnPolicyOptionalForMode) {
+ return item.turnPermissionPolicy;
+ }
+ try {
+ const row = await repo.peekSessionById(item.rowId);
+ if (row && adapter.turnPolicyOptionalForMode(row.permissionMode)) {
+ log.info(
+ `turn policy skipped by channel (mode=${row.permissionMode}) session=${item.rowId.slice(-8)}`,
+ );
+ return undefined;
+ }
+ } catch (err) {
+ const msg = err instanceof Error ? err.message : String(err);
+ log.warn(`resolveEffectiveTurnPolicy peek failed (keep policy): ${msg}`);
+ }
+ return item.turnPermissionPolicy;
+ }
+
async function dispatchQueuedSend(
state: SessionState,
userId: string,
@@ -932,15 +960,19 @@ export function createTurnRunner(
)
: withHandoff;
+ // 群护栏取缔(飞书): 按会话当前权限档决定是否真正挂强确认策略, 见
+ // resolveEffectiveTurnPolicy。不挂时走与 DM 轮次相同的无策略路径。
+ const effectiveTurnPolicy = await resolveEffectiveTurnPolicy(item);
+
const sendResult = await state.makerSession.send(outgoingMessage as typeof item.userMessage, {
planMode: false,
- ...(item.turnPermissionPolicy ? { turnPermissionPolicy: item.turnPermissionPolicy } : {}),
+ ...(effectiveTurnPolicy ? { turnPermissionPolicy: effectiveTurnPolicy } : {}),
beforeProviderStart: async () => {
// 策略轮持一张 host turn lease:期间 setPermissionMode 切到 agent 声明为
// turnPermissionPolicy-unsupported 的档位(如 Pi Full Access)会被阻塞到本轮
// 终态,堵死"热切到 bypass 让 bridge 直接放行、策略连冒泡机会都没有"的绕过。
// 两个 surface 都需要:channel 与 desktop 的策略同样必须扛住热切。
- if (item.turnPermissionPolicy) {
+ if (effectiveTurnPolicy) {
item.turn.hostTurnLeaseRelease = state.makerSession.acquireTurnLease();
}
if (item.groupHistoryAccess) {
@@ -951,21 +983,21 @@ export function createTurnRunner(
});
}
item.turn.interactionRouteLease =
- item.turnPermissionPolicy?.confirmationSurface === 'desktop'
+ effectiveTurnPolicy?.confirmationSurface === 'desktop'
? beginInteractionRoute(state.makerSession, {
route: {
sessionId: rowId,
turnId: item.turn.turnId,
- origin: item.turnPermissionPolicy.origin,
+ origin: effectiveTurnPolicy.origin,
interactionSurface: 'desktop',
- ...(item.turnPermissionPolicy.confirmationTimeoutMs
+ ...(effectiveTurnPolicy.confirmationTimeoutMs
? {
- timeoutMs: item.turnPermissionPolicy.confirmationTimeoutMs,
+ timeoutMs: effectiveTurnPolicy.confirmationTimeoutMs,
}
: {}),
- ...(item.turnPermissionPolicy.onInteractionStateChange
+ ...(effectiveTurnPolicy.onInteractionStateChange
? {
- onStateChange: item.turnPermissionPolicy.onInteractionStateChange,
+ onStateChange: effectiveTurnPolicy.onInteractionStateChange,
}
: {}),
},
@@ -974,20 +1006,20 @@ export function createTurnRunner(
route: {
sessionId: rowId,
turnId: item.turn.turnId,
- origin: item.turnPermissionPolicy?.origin ?? { kind: 'im', channel },
+ origin: effectiveTurnPolicy?.origin ?? { kind: 'im', channel },
interactionSurface: 'channel-card',
- ...(item.turnPermissionPolicy?.confirmationTimeoutMs
- ? { timeoutMs: item.turnPermissionPolicy.confirmationTimeoutMs }
+ ...(effectiveTurnPolicy?.confirmationTimeoutMs
+ ? { timeoutMs: effectiveTurnPolicy.confirmationTimeoutMs }
: {}),
- ...(item.turnPermissionPolicy?.onInteractionStateChange
- ? { onStateChange: item.turnPermissionPolicy.onInteractionStateChange }
+ ...(effectiveTurnPolicy?.onInteractionStateChange
+ ? { onStateChange: effectiveTurnPolicy.onInteractionStateChange }
: {}),
},
handle: handleInteractionFor(
rowId,
userId,
state.scopeKey,
- item.turnPermissionPolicy?.confirmationTimeoutMs,
+ effectiveTurnPolicy?.confirmationTimeoutMs,
),
// 文本渠道自己认领掉的不动卡片(它本来就没有卡);其余走
// dropInteractionCard —— 作废 pending 的同时把那张卡收口。
@@ -2388,12 +2420,17 @@ export function createTurnRunner(
await completeTurnCallbackAfterAck(failure.turn);
if (failure.turn.queueMode === 'internal') {
try {
- // 群轮次强确认策略与「完全访问」档互斥(maker fail-closed 拒绝) — 给
- // 用户能看懂的说法并指路 /permission, 而不是裸抛策略错误码。
+ // 群轮次强确认策略与不支持档互斥(maker fail-closed 拒绝;「完全访问」
+ // 已由渠道设置显式放行, 实际只剩 acceptEdits)— 给用户能看懂的说法并
+ // 指路 /permission + 私聊修复卡, 而不是裸抛策略错误码。
const policyUnsupported = failure.reason.startsWith('TURN_PERMISSION_POLICY_UNSUPPORTED');
+ const rejectedMode = failure.reason.split(':')[2] ?? '';
+ const unsupportedCopy = adapter.ui.error?.permissionModeUnsupported;
const message =
- policyUnsupported && adapter.ui.error?.permissionModeUnsupported
- ? adapter.ui.error.permissionModeUnsupported
+ policyUnsupported && unsupportedCopy
+ ? typeof unsupportedCopy === 'function'
+ ? unsupportedCopy(rejectedMode)
+ : unsupportedCopy
: `❌ 启动 agent 失败:${failure.reason}`;
if (
output.kind === 'chunked-text' &&
diff --git a/apps/desktop/src/main/im/shared/types.ts b/apps/desktop/src/main/im/shared/types.ts
index f654e6024a..daea1c06bb 100644
--- a/apps/desktop/src/main/im/shared/types.ts
+++ b/apps/desktop/src/main/im/shared/types.ts
@@ -214,6 +214,14 @@ export interface ImChannelAdapter {
* 该轮(fail-closed), 不会静默放开。
*/
turnPermissionPolicyFor?(event: IMMessageEvent): TurnPermissionPolicy | undefined;
+ /**
+ * 群轮次强确认策略对指定权限档「可选」的渠道判定 — 返回 true 的档位在
+ * dispatch 时不挂 turnPermissionPolicy(maker 不再 fail-closed, 按用户显式
+ * 选择直接执行)。飞书用它在用户于渠道设置中显式选择「完全访问」后取缔
+ * 群护栏; 群上下文的防注入过滤/包裹独立于权限档, 照常生效。其它渠道
+ * 不实现即保持 fail-closed。
+ */
+ turnPolicyOptionalForMode?(permissionMode: PermissionMode): boolean;
/** Telegram 每轮的群历史检索授权;其它渠道不实现即 fail closed。 */
groupHistoryAccessFor?(event: IMMessageEvent): GroupHistoryAccessScope | undefined;
/**
@@ -297,7 +305,8 @@ export interface ImUiTextPack {
*/
error?: {
agentUnsupported: string;
- permissionModeUnsupported: string;
+ /** 函数形态接收 maker 拒绝时的权限档 id(如 acceptEdits), 报错能点名档位。 */
+ permissionModeUnsupported: string | ((permissionMode: string) => string);
/** 换 Agent 后仍可能不兼容的权限模式(bypassPermissions / acceptEdits)时附加。 */
agentSwitchAlsoCheckPermissionMode?: string;
};
diff --git a/apps/desktop/src/renderer/components/settings/ImDefaultSettingsSection.tsx b/apps/desktop/src/renderer/components/settings/ImDefaultSettingsSection.tsx
index 4606ea4cc0..c3136b701e 100644
--- a/apps/desktop/src/renderer/components/settings/ImDefaultSettingsSection.tsx
+++ b/apps/desktop/src/renderer/components/settings/ImDefaultSettingsSection.tsx
@@ -374,8 +374,9 @@ export function ImDefaultSettingsSection({
</div>
{/* 飞书专属: 群聊 /ctr 新建会话的权限档(默认自动审批)。群上下文含成员
- 可控内容, 完全访问档会在群轮次被强确认策略拒绝(报错 + 私聊修复卡)。
- 共享 PermissionSelector — 权限语义与新建对话工具栏同一份。 */}
+ 可控内容; 用户显式选择「完全访问」时群护栏取缔(不挂强确认策略, 直接
+ 执行), 防注入过滤仍独立生效。共享 PermissionSelector — 权限语义与
+ 新建对话工具栏同一份。 */}
{channel === 'feishu' && (
<div className="flex flex-col gap-2">
<span className="text-12 font-medium text-[var(--text-secondary)]">
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index cc3907fe93..1b9d23ee7b 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -3158,7 +3158,7 @@
"pi": "Pi"
},
"groupCtrPermissionLabel": "Permission mode for group /ctr sessions",
- "groupCtrPermissionDescription": "Permission mode applied when creating a session via /ctr in a group chat. Defaults to Auto approval. Group context can contain member-controlled content, so Full access sessions will reject group messages and guide you back to Auto approval."
+ "groupCtrPermissionDescription": "Permission mode applied when creating a session via /ctr in a group chat. Defaults to Auto approval. Group context can contain member-controlled content — choosing Full access executes actions without per-step confirmation, so only pick it for groups you trust."
}
},
"shortcuts": {
diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.json
index 9d481372ab..cabdde1ca6 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -3157,7 +3157,7 @@
"pi": "Pi"
},
"groupCtrPermissionLabel": "グループ /ctr 新規セッションの権限モード",
- "groupCtrPermissionDescription": "グループで @bot の /ctr により新規セッションを作成する際の権限モード。初期値は「自動承認」。グループの文脈にはメンバーが操作できる内容が含まれるため、「フルアクセス」にするとグループのメッセージは拒否され、「自動承認」への切り戻しを案内します。"
+ "groupCtrPermissionDescription": "グループで @bot の /ctr により新規セッションを作成する際の権限モード。初期値は「自動承認」。グループの文脈にはメンバーが操作できる内容が含まれるため、「フルアクセス」を選ぶと確認なしで直接実行されます。信頼できるグループでのみ選択してください。"
}
},
"shortcuts": {
diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.json
index 459d775b94..8d1801380a 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -3157,7 +3157,7 @@
"pi": "Pi"
},
"groupCtrPermissionLabel": "그룹 /ctr 새 세션 권한 모드",
- "groupCtrPermissionDescription": "그룹 채팅에서 @bot /ctr로 새 세션을 만들 때 적용되는 권한 모드입니다. 기본값은 자동 승인입니다. 그룹 컨텍스트에는 멤버가 조작할 수 있는 내용이 포함되므로 전체 액세스로 설정하면 그룹 메시지가 거부되고 자동 승인으로 전환하도록 안내합니다."
+ "groupCtrPermissionDescription": "그룹 채팅에서 @bot /ctr로 새 세션을 만들 때 적용되는 권한 모드입니다. 기본값은 자동 승인입니다. 그룹 컨텍스트에는 멤버가 조작할 수 있는 내용이 포함되므로 전체 액세스를 선택하면 확인 없이 바로 실행됩니다. 신뢰할 수 있는 그룹에서만 선택하세요."
}
},
"shortcuts": {
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 e745bca90e..b19a4a6f7b 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -3157,7 +3157,7 @@
"pi": "Pi"
},
"groupCtrPermissionLabel": "群聊 /ctr 新建任务权限档",
- "groupCtrPermissionDescription": "群里 @bot 用 /ctr 新建任务时使用的权限档,默认「自动审批」。群上下文里有成员可控的内容,设成「完全访问」后群里的消息会被拒绝,并引导你切回「自动审批」。"
+ "groupCtrPermissionDescription": "群里 @bot 用 /ctr 新建任务时使用的权限档,默认「自动审批」。群上下文里有成员可控的内容,设成「完全访问」后将直接执行、不再逐条确认,请确认群里的人都可信。"
}
},
"shortcuts": {
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 a14a46f3f8..e364f4c800 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
@@ -3157,7 +3157,7 @@
"pi": "Pi"
},
"groupCtrPermissionLabel": "群聊 /ctr 新建任務權限檔",
- "groupCtrPermissionDescription": "群組裡 @bot 用 /ctr 新建任務時使用的權限檔,預設「自動審批」。群組上下文裡有成員可控制的內容,設成「完全存取」後群組裡的消息會被拒絕,並引導你切回「自動審批」。"
+ "groupCtrPermissionDescription": "群組裡 @bot 用 /ctr 新建任務時使用的權限檔,預設「自動審批」。群組上下文裡有成員可控制的內容,設成「完全存取」後將直接執行、不再逐項確認,請確認群組成員都可信。"
}
},
"shortcuts": {