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(ui): point auto-review outage at Full access (#5084)

Dash7ed6c57b9b1f
diff --git a/apps/desktop/src/main/im/shared/__tests__/autoReviewUnavailableCopy.test.ts b/apps/desktop/src/main/im/shared/__tests__/autoReviewUnavailableCopy.test.ts
new file mode 100644
index 0000000000..f2508085e7
--- /dev/null
+++ b/apps/desktop/src/main/im/shared/__tests__/autoReviewUnavailableCopy.test.ts
@@ -0,0 +1,80 @@
+import { readFileSync } from 'node:fs';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+import { describe, expect, it } from 'vitest';
+
+const here = path.dirname(fileURLToPath(import.meta.url));
+const repoRoot = path.resolve(here, '../../../../../../..');
+
+function readNotice(file: string, key: 'AUTO_REVIEW_UNAVAILABLE' | 'AUTO_REVIEW_UNAVAILABLE_WECHAT'): string {
+ const data = JSON.parse(readFileSync(file, 'utf8')) as {
+ chat?: { remoteError?: Record<string, string> };
+ remoteError?: Record<string, string>;
+ };
+ const notice = data.chat?.remoteError?.[key] ?? data.remoteError?.[key];
+ if (!notice) throw new Error(`missing ${key} in ${file}`);
+ return notice;
+}
+
+const desktopLocales = ['zh-CN', 'zh-TW', 'en', 'ja', 'ko'] as const;
+const mobileLocales = desktopLocales;
+
+describe('auto-review unavailable copy', () => {
+ it('desktop and mobile locales suggest Full access and name the risk', () => {
+ const expected = {
+ 'zh-CN': ['完全访问', '风险更高'],
+ 'zh-TW': ['完全訪問', '風險更高'],
+ en: ['Full access', 'higher risk'],
+ ja: ['フルアクセス', 'リスク'],
+ ko: ['전체 접근', '위험'],
+ } as const;
+ for (const locale of desktopLocales) {
+ const notice = readNotice(path.join(
+ repoRoot,
+ 'apps/desktop/src/renderer/i18n/locales',
+ locale,
+ 'common.json',
+ ), 'AUTO_REVIEW_UNAVAILABLE');
+ for (const phrase of expected[locale]) expect(notice).toContain(phrase);
+ expect(notice).not.toContain('默认权限');
+ expect(notice).not.toContain('Default permissions');
+ }
+ for (const locale of mobileLocales) {
+ const notice = readNotice(path.join(
+ repoRoot,
+ 'apps/mobile/src/i18n/locales',
+ locale,
+ 'session.json',
+ ), 'AUTO_REVIEW_UNAVAILABLE');
+ for (const phrase of expected[locale]) expect(notice).toContain(phrase);
+ expect(notice).not.toContain('默认权限');
+ expect(notice).not.toContain('Default permissions');
+ }
+ });
+
+ it('personal WeChat task views ask for direct confirmation instead of Full access', () => {
+ const expected = {
+ 'zh-CN': ['个人微信', '完全访问', '直接确认'],
+ 'zh-TW': ['個人微信', '完全訪問', '直接確認'],
+ en: ['Personal WeChat', 'Full access', 'Confirm this action directly'],
+ ja: ['個人 WeChat', 'フルアクセス', '直接確認'],
+ ko: ['개인 WeChat', '전체 접근', '직접 확인'],
+ } as const;
+ const forbidden = ['想少被打断', 'Switch this task', '中断を減らしたい', '중단을 줄이려면', '想少被打斷'];
+ for (const locale of desktopLocales) {
+ const notice = readNotice(path.join(
+ repoRoot, 'apps/desktop/src/renderer/i18n/locales', locale, 'common.json',
+ ), 'AUTO_REVIEW_UNAVAILABLE_WECHAT');
+ for (const phrase of expected[locale]) expect(notice).toContain(phrase);
+ for (const phrase of forbidden) expect(notice).not.toContain(phrase);
+ }
+ for (const locale of mobileLocales) {
+ const notice = readNotice(path.join(
+ repoRoot, 'apps/mobile/src/i18n/locales', locale, 'session.json',
+ ), 'AUTO_REVIEW_UNAVAILABLE_WECHAT');
+ for (const phrase of expected[locale]) expect(notice).toContain(phrase);
+ for (const phrase of forbidden) expect(notice).not.toContain(phrase);
+ }
+ });
+});
diff --git a/apps/desktop/src/main/im/shared/__tests__/turnRetryNotice.test.ts b/apps/desktop/src/main/im/shared/__tests__/turnRetryNotice.test.ts
index 6781048b53..5142320004 100644
--- a/apps/desktop/src/main/im/shared/__tests__/turnRetryNotice.test.ts
+++ b/apps/desktop/src/main/im/shared/__tests__/turnRetryNotice.test.ts
@@ -241,14 +241,27 @@ describe('terminalErrorText', () => {
});
expect(notice).toContain('自动审批暂时无法给出判断');
// 必须说清操作的去向 —— 现在是转交用户确认,不再是静默拒绝。
- expect(notice).toContain('转由你来确认');
- // 必须给出用户能做的事,否则等于只说"又失败了"。
- expect(notice).toContain('默认权限');
+ expect(notice).toContain('由你确认');
+ // 少打断只指向完全访问。默认权限在三条 Harness 上都不等于少确认。
+ expect(notice).toContain('完全访问');
+ expect(notice).toContain('风险更高');
+ expect(notice).not.toContain('默认权限');
// 不得把 [CODE] 前缀或英文原文推给渠道用户。
expect(notice).not.toContain('AUTO_REVIEW_UNAVAILABLE');
expect(notice).not.toContain('Auto-review could not');
});
+ it('个人微信不建议切到完全访问', () => {
+ const notice = turnRetryNotice({
+ message: '[AUTO_REVIEW_UNAVAILABLE] Auto-review could not reach a decision',
+ isTerminal: false,
+ }, { channel: 'wechat' });
+ expect(notice).toContain('个人微信不能使用「完全访问」');
+ expect(notice).toContain('直接确认');
+ expect(notice).not.toContain('想少被打断');
+ expect(notice).not.toContain('默认权限');
+ });
+
it('确认卡没送到 → 渠道侧说明这次不是用户拒绝', () => {
const notice = turnRetryNotice({
message: '[AUTO_REVIEW_CONFIRM_UNDELIVERED] Automatic review was unavailable, and the '
diff --git a/apps/desktop/src/main/im/shared/turnPresenter.ts b/apps/desktop/src/main/im/shared/turnPresenter.ts
index e25cc5901f..6150a28618 100644
--- a/apps/desktop/src/main/im/shared/turnPresenter.ts
+++ b/apps/desktop/src/main/im/shared/turnPresenter.ts
@@ -311,6 +311,8 @@ export interface TurnPresenterOptions {
progressBodyMode?: ProgressBodyMode;
/** 纯呈现策略(节流/长度上限/惰性占位); 省略 = DEFAULT_PRESENTER_POLICY(两侧同值)。 */
policy?: PresenterPolicy;
+ /** 渠道 id。个人微信不能建议切到完全访问。 */
+ channel?: string;
}
export interface TurnPresenter {
@@ -709,7 +711,7 @@ export function createTurnPresenter(options: TurnPresenterOptions): TurnPresente
return pushThinkingStep(activity, ev.data);
},
applyRetryNotice(ev: AgentEvent): boolean {
- const notice = turnRetryNotice(ev.data);
+ const notice = turnRetryNotice(ev.data, { channel: options.channel });
if (notice === null) return false;
return setActivityNotice(activity, notice);
},
diff --git a/apps/desktop/src/main/im/shared/turnRetryNotice.ts b/apps/desktop/src/main/im/shared/turnRetryNotice.ts
index 39fce2a96b..330d02654d 100644
--- a/apps/desktop/src/main/im/shared/turnRetryNotice.ts
+++ b/apps/desktop/src/main/im/shared/turnRetryNotice.ts
@@ -42,15 +42,22 @@ import {
*
* 这不是自动重试,但同样是**非终止** error 携带的会话级状态,渠道侧此前对非终止 error
* 一律静默 —— 于是 Slack / Telegram 上的用户只会看到工具一个接一个被拒、没有任何原因
- * (codex P1 of #1574)。它有明确的用户动作可给(切到默认权限自己确认),所以必须透出。
+ * (codex P1 of #1574)。少打断只能建议切到完全访问,不能建议默认权限:
+ * 那一档在 Pi 上问得更多,在 Claude / Codex 上也不会少问联网和提权。完全访问风险更高,必须点明。
+ * 个人微信每轮都挂逐条确认策略,三个 Harness 都不允许在该策略下使用完全访问;
+ * 微信提示不建议切档,只要求直接确认。
*
* 判据走 maker-core 的单点函数,不在这里匹配英文原文或自己拼 `[CODE]` 前缀;文案硬编码
* 中文、不进 renderer locale(与本文件其它渠道文案同规)。
*/
-function autoReviewUnavailableNotice(message: string): string | null {
+function autoReviewUnavailableNotice(message: string, channel?: string): string | null {
if (isAutoReviewUnavailableNotice(message)) {
- return '自动审批暂时无法给出判断(网络或服务波动),需要审批的操作已转由你来确认。'
- + '想少被打断,可以把这个任务切到「默认权限」自行掌控。';
+ if (channel === 'wechat') {
+ return '自动审批暂时无法给出判断,需要审批的操作已改为由你确认。'
+ + '个人微信不能使用「完全访问」,请直接确认这次操作。';
+ }
+ return '自动审批暂时无法给出判断,需要审批的操作已改为由你确认。'
+ + '想少被打断,可以把任务切到「完全访问」,但风险更高。';
}
if (isAutoReviewConfirmUndeliveredNotice(message)) {
return '自动审批没完成,确认也没有送到或没有被点。这次拒绝不是你点的。';
@@ -59,12 +66,12 @@ function autoReviewUnavailableNotice(message: string): string | null {
}
/** 已知的非终止自动重试事件 -> 渠道侧本地化进度;其它错误保持静默。 */
-export function turnRetryNotice(data: unknown): string | null {
+export function turnRetryNotice(data: unknown, options?: { channel?: string }): string | null {
if (!data || typeof data !== 'object') return null;
const record = data as { message?: unknown; reason?: unknown };
const message = typeof record.message === 'string' ? record.message : '';
const reason = typeof record.reason === 'string' ? record.reason : undefined;
- const autoReviewNotice = autoReviewUnavailableNotice(message);
+ const autoReviewNotice = autoReviewUnavailableNotice(message, options?.channel);
if (autoReviewNotice) return autoReviewNotice;
const rateLimitProgress = parseTerminalRateLimitRetryProgress(message, reason);
if (rateLimitProgress) {
diff --git a/apps/desktop/src/main/im/shared/turnRunner.ts b/apps/desktop/src/main/im/shared/turnRunner.ts
index 21eab687d6..47ae52e061 100644
--- a/apps/desktop/src/main/im/shared/turnRunner.ts
+++ b/apps/desktop/src/main/im/shared/turnRunner.ts
@@ -851,7 +851,7 @@ export function createTurnRunner(
streamingHandle: null,
streamingHandlePromise: null,
streamingStartFailed: false,
- presenter: createTurnPresenter({ mode: 'buffer-replace' }),
+ presenter: createTurnPresenter({ mode: 'buffer-replace', channel }),
mediaAbsPaths: [],
allowedFileRoots,
done: false,
@@ -2513,7 +2513,7 @@ export function createTurnRunner(
// 取舍不同 —— 转播是自动任务的旁路展示, 没有人在等它; 为一条重试提示开卡,
// 万一那轮重试成功后 agent 零输出收口, thread 里就多出一张只有标题的卡。
{
- const notice = turnRetryNotice(event.data);
+ const notice = turnRetryNotice(event.data, { channel });
if (notice !== null && setActivityNotice(t.activity, notice)) {
t.streamingHandle?.replace(composeTranspondView(t, false));
}
diff --git a/apps/desktop/src/renderer/components/chat/ErrorBanner.tsx b/apps/desktop/src/renderer/components/chat/ErrorBanner.tsx
index 4d9cb3f28c..88f8b531d4 100644
--- a/apps/desktop/src/renderer/components/chat/ErrorBanner.tsx
+++ b/apps/desktop/src/renderer/components/chat/ErrorBanner.tsx
@@ -17,6 +17,7 @@ import { useProviders } from '@/hooks/useProviders';
import { useEffect, useState } from 'react';
import { isCodexResumeNotReadyProjectionError } from '@cindy/maker-shared/agent-input-projection';
import { isCindyGatewayProxyTokenInvalidError, isResponsesLiteParallelToolCallsError, parseAgentErrorCode, redactSensitiveText } from '@cindy/maker-shared/error-redaction';
+import { chatRemoteErrorGuidanceKey } from '@/lib/autoReviewUnavailableGuidance';
import {
AlertCircle,
Check,
@@ -114,6 +115,8 @@ interface ErrorBannerProps {
* 重试,如 codex 网络 retry-loop 透出)。网络类分支据此区分文案:「正在自动
* 重试…」vs「服务暂时不可达,可点击重试」。历史尾部行恒为 false。 */
isRecoverable?: boolean;
+ /** 当前任务来源。个人微信不能建议切到完全访问。 */
+ sessionSource?: string | null;
style?: React.CSSProperties;
className?: string;
}
@@ -140,6 +143,7 @@ export function ErrorBanner({
onForkStripEncrypted,
forkStripEncryptedRunning = false,
isRecoverable = false,
+ sessionSource,
style,
className,
}: ErrorBannerProps) {
@@ -294,7 +298,7 @@ export function ErrorBanner({
? t(errorReasonI18nKey)
: undefined;
const remoteErrorCode = parseAgentErrorCode(error)?.code;
- const remoteErrorKey = remoteErrorCode ? `chat.remoteError.${remoteErrorCode}` : undefined;
+ const remoteErrorKey = chatRemoteErrorGuidanceKey(remoteErrorCode, sessionSource);
const remoteGuidance = remoteErrorKey && i18n.exists(remoteErrorKey) ? t(remoteErrorKey) : undefined;
const terminalRateLimitRetryProgress = parseTerminalRateLimitRetryProgress(error, errorReason);
const isCodexUsageLimitError =
diff --git a/apps/desktop/src/renderer/components/chat/ErrorMessageCard.tsx b/apps/desktop/src/renderer/components/chat/ErrorMessageCard.tsx
index 0a05ac230d..8095cabb6d 100644
--- a/apps/desktop/src/renderer/components/chat/ErrorMessageCard.tsx
+++ b/apps/desktop/src/renderer/components/chat/ErrorMessageCard.tsx
@@ -24,6 +24,7 @@ import { isCindyGatewayProxyTokenInvalidError, isResponsesLiteParallelToolCallsE
import {
isStreamInterruptedErrorMessage,
} from '@/utils/streamInterruptError';
+import { chatRemoteErrorGuidanceKey } from '../../lib/autoReviewUnavailableGuidance';
import { decodeRemoteErrorMessage, remoteErrorI18nKey } from '../../lib/makerChatStore';
import { ERROR_REASON_I18N_KEYS } from './errorReasonI18n';
import { getToolLoopI18nKey } from './toolLoopI18n';
@@ -34,6 +35,7 @@ export function ErrorMessageCard({
reason,
providerId,
toolLoop,
+ sessionSource,
kind = 'reply-error',
}: {
message: string;
@@ -43,11 +45,16 @@ export function ErrorMessageCard({
providerId?: string;
/** Structured details for a tool-loop terminal error (optional for legacy rows). */
toolLoop?: ToolLoopErrorDetails;
+ /** 当前任务来源。个人微信不能建议切到完全访问。 */
+ sessionSource?: string | null;
}) {
const { t, i18n } = useTranslation();
const [showRaw, setShowRaw] = useState(false);
const decoded = decodeRemoteErrorMessage(message);
- const remoteKey = remoteErrorI18nKey(message);
+ const parsedRemoteKey = remoteErrorI18nKey(message);
+ const remoteKey = parsedRemoteKey === 'chat.remoteError.AUTO_REVIEW_UNAVAILABLE'
+ ? chatRemoteErrorGuidanceKey('AUTO_REVIEW_UNAVAILABLE', sessionSource)
+ : parsedRemoteKey;
const remoteGuidance = remoteKey && i18n.exists(remoteKey) ? t(remoteKey) : undefined;
const i18nKey = reason ? ERROR_REASON_I18N_KEYS[reason] : undefined;
const isStreamInterrupted = isStreamInterruptedErrorMessage(message, reason);
diff --git a/apps/desktop/src/renderer/components/chat/InterruptedTurnBanner.tsx b/apps/desktop/src/renderer/components/chat/InterruptedTurnBanner.tsx
index bb85edd686..5de1a10e2f 100644
--- a/apps/desktop/src/renderer/components/chat/InterruptedTurnBanner.tsx
+++ b/apps/desktop/src/renderer/components/chat/InterruptedTurnBanner.tsx
@@ -129,6 +129,7 @@ export function ErrorTailErrorBanner({
errorReason,
toolLoop,
onSilentStopContinue,
+ sessionSource,
className,
style,
}: {
@@ -153,6 +154,7 @@ export function ErrorTailErrorBanner({
errorReason?: string | null;
toolLoop?: ToolLoopErrorDetails;
onSilentStopContinue?: () => void;
+ sessionSource?: string | null;
className?: string;
style?: React.CSSProperties;
}) {
@@ -182,6 +184,7 @@ export function ErrorTailErrorBanner({
silentEncryptedRetryEnabled={silentEncryptedRetryEnabled}
onForkStripEncrypted={onForkStripEncrypted}
forkStripEncryptedRunning={forkStripEncryptedRunning}
+ sessionSource={sessionSource}
className={className}
style={style}
/>
diff --git a/apps/desktop/src/renderer/components/chat/MessageStream.tsx b/apps/desktop/src/renderer/components/chat/MessageStream.tsx
index bbbe092ae3..60075a4bea 100644
--- a/apps/desktop/src/renderer/components/chat/MessageStream.tsx
+++ b/apps/desktop/src/renderer/components/chat/MessageStream.tsx
@@ -409,6 +409,8 @@ interface MessageStreamProps {
* so message-level controls can gate features unsupported on remote
* (e.g. rewind on cc-remote daemon sessions). */
remoteHostId?: string | null;
+ /** Task origin. Personal WeChat must not be told to switch to Full access. */
+ sessionSource?: string | null;
/** Session working directory; passed down so MarkdownRenderer / UserMessage
* can resolve relative paths in markdown links and inline @-chips
* (text-lightbox-trigger-extension F1 / F2). Stable within a session
@@ -2491,6 +2493,7 @@ function renderWorkGroupChild(
sessionTitle?: string | null;
agentKind?: 'cc' | 'codex' | 'pi';
remoteHostId?: string | null;
+ sessionSource?: string | null;
isSessionStreaming: boolean;
firstUserMessageClientId: string | null;
lastUserMessageClientId: string | null;
@@ -2538,6 +2541,7 @@ function renderWorkGroupChild(
sessionTitle={props.sessionTitle}
agentKind={props.agentKind}
remoteHostId={props.remoteHostId}
+ sessionSource={props.sessionSource}
sessionRunning={props.isSessionStreaming}
assistantForkBlocked={shouldBlockAssistantFork(
props.isSessionStreaming,
@@ -2569,6 +2573,7 @@ export function MessageStream({
sessionTitle,
agentKind,
remoteHostId,
+ sessionSource,
workingDir,
assistantAvatar,
simplifiedBotConversation = false,
@@ -6007,6 +6012,7 @@ export function MessageStream({
sessionTitle,
agentKind,
remoteHostId,
+ sessionSource,
isSessionStreaming,
firstUserMessageClientId,
lastUserMessageClientId,
@@ -6152,6 +6158,7 @@ export function MessageStream({
localFileRefs={localFileRefs}
assistantAvatar={assistantAvatar}
simplifiedBotConversation={simplifiedBotConversation}
+ sessionSource={sessionSource}
/>
);
const highlightClass =
@@ -6337,6 +6344,7 @@ const MessageItem = memo(function MessageItem({
localFileRefs,
assistantAvatar,
simplifiedBotConversation,
+ sessionSource,
}: {
message: ChatMessage;
toolResult?: string;
@@ -6388,6 +6396,7 @@ const MessageItem = memo(function MessageItem({
assistantAvatar?: ReactNode;
/** 伙伴对话消息操作栏使用轻量常显变体。 */
simplifiedBotConversation?: boolean;
+ sessionSource?: string | null;
}) {
// silent-stop 自动续跑行(isSyntheticTrigger + systemCardType):渲染成
// 「已自动继续」分隔线,必须在 synthetic early-return 之前检查,否则分隔线被吞。
@@ -6543,6 +6552,7 @@ const MessageItem = memo(function MessageItem({
reason={message.errorReason}
providerId={message.errorProviderId}
toolLoop={message.toolLoop}
+ sessionSource={sessionSource}
/>
);
case 'thinking':
diff --git a/apps/desktop/src/renderer/components/chat/__tests__/ErrorLocalization.test.tsx b/apps/desktop/src/renderer/components/chat/__tests__/ErrorLocalization.test.tsx
index 63fcaa4b09..d3d76f5848 100644
--- a/apps/desktop/src/renderer/components/chat/__tests__/ErrorLocalization.test.tsx
+++ b/apps/desktop/src/renderer/components/chat/__tests__/ErrorLocalization.test.tsx
@@ -127,4 +127,28 @@ describe.each(SUPPORTED_LOCALES)('error presentation in %s', locale => {
expect(screen.getByText(/Unexpected provider failure/).textContent).toContain('[REDACTED]');
expect(screen.queryByText(/private-test-value/)).toBeNull();
});
+
+ it.each(['live', 'tail', 'history'] as const)('asks a WeChat task to confirm directly in %s', async surface => {
+ const i18n = createInstance();
+ await i18n.init({ lng: locale, fallbackLng: 'en', resources: Object.fromEntries(Object.entries(locales).map(([lng, common]) => [lng, { translation: common }])) });
+ const rawRemoteError = '[AUTO_REVIEW_UNAVAILABLE] upstream fallback api_key=private-test-value';
+ const bannerError = remoteErrorMessageForBanner(rawRemoteError);
+ const generic = locales[locale].chat.remoteError.AUTO_REVIEW_UNAVAILABLE;
+ const wechat = locales[locale].chat.remoteError.AUTO_REVIEW_UNAVAILABLE_WECHAT;
+ const renderSurface = (sessionSource?: string) => {
+ cleanup();
+ render(<I18nextProvider i18n={i18n}>{surface === 'live'
+ ? <ErrorBanner error={bannerError} sessionSource={sessionSource} onRetry={vi.fn()} />
+ : surface === 'tail'
+ ? <ErrorTailErrorBanner errorText={bannerError} sessionSource={sessionSource} onContinue={vi.fn()} onDismiss={vi.fn()} />
+ : <ErrorMessageCard message={rawRemoteError} sessionSource={sessionSource} />}</I18nextProvider>);
+ };
+ renderSurface('desktop');
+ expect(screen.getByText(generic)).toBeTruthy();
+ expect(screen.queryByText(wechat)).toBeNull();
+ renderSurface('wechat');
+ expect(screen.getByText(wechat)).toBeTruthy();
+ expect(screen.queryByText(generic)).toBeNull();
+ expect(screen.queryByText(/Switch this task/)).toBeNull();
+ });
});
diff --git a/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx b/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx
index 9a37598021..6d57236bbc 100644
--- a/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx
@@ -4724,6 +4724,7 @@ export function CCAgentSessionView({
// 消息下方 Fork / Rewind icon 的显示 (Codex rewind=false → 隐藏)。
agentKind={session?.agentKind}
remoteHostId={session?.remoteHostId ?? null}
+ sessionSource={session?.source}
// text-lightbox-trigger-extension F1/F2: cwd flows from session
// owner down through MessageStream → AssistantMessage / UserMessage.
// The spec guarantees `session.workingDir` is set; `?? ''` is purely
@@ -5176,6 +5177,7 @@ export function CCAgentSessionView({
deviceLinkDeviceId={remoteDeviceId}
modelId={session?.model}
providerId={session?.providerId}
+ sessionSource={session?.source}
onViewBalance={canAccessBilling ? handleViewBalance : undefined}
errorSourceProviderId={errorTailMsg?.errorProviderId ?? null}
onSwitchToClaudeSubscription={
@@ -5252,6 +5254,7 @@ export function CCAgentSessionView({
deviceLinkDeviceId={remoteDeviceId}
modelId={session?.model}
providerId={session?.providerId}
+ sessionSource={session?.source}
onSwitchToClaudeSubscription={
canSwitchToClaudeSubscription ? handleSwitchToClaudeSubscription : undefined
}
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index 016a833eb8..5df5496c8a 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -9681,7 +9681,8 @@
"remoteError": {
"REMOTE_DAEMON_CLOSED": "The remote connection dropped, possibly during an update. This turn has ended. Send the message again.",
"REMOTE_LOCAL_ATTACHMENT_UNSUPPORTED": "Local file/image attachments aren't accessible in remote sessions. Paste the content directly instead.",
- "AUTO_REVIEW_UNAVAILABLE": "Auto-review could not reach a decision (network or service hiccup), so actions that need review are being handed to you to confirm. Switch this task to Default permissions if you would rather not be interrupted.",
+ "AUTO_REVIEW_UNAVAILABLE": "Auto-review could not reach a decision, so actions that need review now need your confirmation. Switch this task to Full access if you would rather not be interrupted. That mode is higher risk.",
+ "AUTO_REVIEW_UNAVAILABLE_WECHAT": "Auto-review could not reach a decision, so actions that need review now need your confirmation. Personal WeChat cannot use Full access. Confirm this action directly.",
"AUTO_REVIEW_CONFIRM_UNDELIVERED": "Automatic review was unavailable, and the confirmation request was not completed. This is not a user rejection.",
"REMOTE_COMPAT_MODE_UNSUPPORTED": "Remote tasks cannot use this computer’s compatibility route. Switch to Cindy AI, or continue in a local task.",
"REMOTE_GATEWAY_ENDPOINT_UNAVAILABLE": "Cindy AI credentials are not ready yet (issued automatically after sign-in). Please retry shortly; if this persists, check the Cindy AI status in Settings → Model Providers.",
diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.json
index 85230c030b..d2be06d00d 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -9675,7 +9675,8 @@
"remoteError": {
"REMOTE_DAEMON_CLOSED": "リモート接続が切れました。更新中の可能性があります。このターンは終了したので、もう一度送信してください。",
"REMOTE_LOCAL_ATTACHMENT_UNSUPPORTED": "リモートセッションではローカルのファイル/画像の添付にアクセスできません。内容を直接貼り付けてください。",
- "AUTO_REVIEW_UNAVAILABLE": "自動レビューが判断できませんでした(ネットワークまたはサービスの一時的な問題)。レビューが必要な操作はご自身での確認に切り替わりました。中断を減らしたい場合は、このタスクをデフォルト権限に切り替えてください。",
+ "AUTO_REVIEW_UNAVAILABLE": "自動レビューが判断できませんでした。レビューが必要な操作は、ご自身で確認する形に切り替わりました。中断を減らしたい場合は、このタスクを「フルアクセス」に切り替えてください。リスクはより高くなります。",
+ "AUTO_REVIEW_UNAVAILABLE_WECHAT": "自動レビューが判断できませんでした。レビューが必要な操作は、ご自身で確認する形に切り替わりました。個人 WeChat ではフルアクセスを使えません。この操作を直接確認してください。",
"AUTO_REVIEW_CONFIRM_UNDELIVERED": "自動レビューを完了できず、確認も完了しませんでした。これはユーザーによる拒否ではありません。",
"REMOTE_COMPAT_MODE_UNSUPPORTED": "リモートのタスクでは、このパソコン側の互換経路を使えません。Cindy AI に切り替えるか、このパソコン上のタスクで続けてください。",
"REMOTE_GATEWAY_ENDPOINT_UNAVAILABLE": "Cindy AI の資格情報がまだ準備できていません(サインイン後に自動発行されます)。しばらくしてから再試行してください。続く場合は 設定 → モデルプロバイダー で Cindy AI の接続状態を確認してください。",
diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.json
index 1128c40159..e69b376546 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -9675,7 +9675,8 @@
"remoteError": {
"REMOTE_DAEMON_CLOSED": "원격 연결이 끊겼습니다. 업데이트 중일 수 있습니다. 이번 차례는 끝났으니 다시 보내 주세요.",
"REMOTE_LOCAL_ATTACHMENT_UNSUPPORTED": "원격 세션에서는 로컬 파일/이미지 첨부에 접근할 수 없습니다. 내용을 직접 붙여넣으세요.",
- "AUTO_REVIEW_UNAVAILABLE": "자동 리뷰가 판단을 내리지 못했습니다(네트워크 또는 서비스 일시 장애). 검토가 필요한 작업은 직접 확인하도록 전환되었습니다. 중단을 줄이려면 이 작업을 기본 권한으로 전환하세요.",
+ "AUTO_REVIEW_UNAVAILABLE": "자동 리뷰가 판단을 내리지 못했습니다. 검토가 필요한 작업은 직접 확인하도록 바뀌었습니다. 중단을 줄이려면 이 작업을 전체 접근으로 전환하세요. 위험도는 더 높습니다.",
+ "AUTO_REVIEW_UNAVAILABLE_WECHAT": "자동 리뷰가 판단을 내리지 못했습니다. 검토가 필요한 작업은 직접 확인하도록 바뀌었습니다. 개인 WeChat에서는 전체 접근을 사용할 수 없습니다. 이번 작업을 직접 확인하세요.",
"AUTO_REVIEW_CONFIRM_UNDELIVERED": "자동 리뷰를 끝내지 못했고 확인도 완료되지 않았습니다. 사용자가 거부한 것이 아닙니다.",
"REMOTE_COMPAT_MODE_UNSUPPORTED": "원격 작업에서는 이 컴퓨터의 호환 경로를 사용할 수 없습니다. Cindy AI로 바꾸거나 이 컴퓨터의 작업에서 계속하세요.",
"REMOTE_GATEWAY_ENDPOINT_UNAVAILABLE": "Cindy AI 자격 증명이 아직 준비되지 않았습니다(로그인 후 자동 발급됩니다). 잠시 후 다시 시도해 주세요. 계속되면 설정 → 모델 제공자에서 Cindy AI 연결 상태를 확인하세요.",
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 af1e9e01ac..ed137eb89c 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -9675,7 +9675,8 @@
"remoteError": {
"REMOTE_DAEMON_CLOSED": "远端连接中断了,可能正在更新。这一轮已经结束,请重新发送。",
"REMOTE_LOCAL_ATTACHMENT_UNSUPPORTED": "远端任务无法访问本地文件/图片附件。请直接粘贴内容。",
- "AUTO_REVIEW_UNAVAILABLE": "自动审批暂时无法给出判断(网络或服务波动),需要审批的操作已转由你来确认。想少被打断,可以把任务切到「默认权限」自行掌控。",
+ "AUTO_REVIEW_UNAVAILABLE": "自动审批暂时无法给出判断,需要审批的操作已改为由你确认。想少被打断,可以把任务切到「完全访问」,但风险更高。",
+ "AUTO_REVIEW_UNAVAILABLE_WECHAT": "自动审批暂时无法给出判断,需要审批的操作已改为由你确认。个人微信不能使用「完全访问」,请直接确认这次操作。",
"AUTO_REVIEW_CONFIRM_UNDELIVERED": "自动审批没完成,确认也没有送到或没有被点。这次拒绝不是你点的。",
"REMOTE_COMPAT_MODE_UNSUPPORTED": "远端任务不能使用本机兼容通道。请改用 Cindy AI,或在本机任务里继续。",
"REMOTE_GATEWAY_ENDPOINT_UNAVAILABLE": "Cindy AI 凭据尚未就绪(登录后由服务端自动下发)。请稍候重试;若持续出现,请到 设置 → 模型供应商 检查 Cindy AI 连接状态。",
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 6a63f9eb3c..a0a3ff99a2 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
@@ -9674,7 +9674,8 @@
"remoteError": {
"REMOTE_DAEMON_CLOSED": "遠端連線中斷了,可能正在更新。這一輪已經結束,請重新傳送。",
"REMOTE_LOCAL_ATTACHMENT_UNSUPPORTED": "遠端任務無法訪問本地檔案/圖片附件。請直接貼上內容。",
- "AUTO_REVIEW_UNAVAILABLE": "自動審批暫時無法給出判斷(網路或服務波動),需要審批的操作已轉由你來確認。想少被打斷,可以把任務切到「預設權限」自行掌控。",
+ "AUTO_REVIEW_UNAVAILABLE": "自動審批暫時無法給出判斷,需要審批的操作已改為由你確認。想少被打斷,可以把任務切到「完全訪問」,但風險更高。",
+ "AUTO_REVIEW_UNAVAILABLE_WECHAT": "自動審批暫時無法給出判斷,需要審批的操作已改為由你確認。個人微信不能使用「完全訪問」,請直接確認這次操作。",
"AUTO_REVIEW_CONFIRM_UNDELIVERED": "自動審批沒完成,確認也沒有送到或沒有被點。這次拒絕不是你點的。",
"REMOTE_COMPAT_MODE_UNSUPPORTED": "遠端任務不能使用本機相容通道。請改用 Cindy AI,或在本機任務裡繼續。",
"REMOTE_GATEWAY_ENDPOINT_UNAVAILABLE": "Cindy AI 憑據尚未就緒(登入後由服務端自動下發)。請稍候重試;若持續出現,請到 設定 → 模型供應商 檢查 Cindy AI 連線狀態。",
diff --git a/apps/desktop/src/renderer/lib/autoReviewUnavailableGuidance.ts b/apps/desktop/src/renderer/lib/autoReviewUnavailableGuidance.ts
new file mode 100644
index 0000000000..b3888c79d2
--- /dev/null
+++ b/apps/desktop/src/renderer/lib/autoReviewUnavailableGuidance.ts
@@ -0,0 +1,18 @@
+/**
+ * Personal WeChat turns always attach a confirmation policy, and none of the
+ * three harnesses allow Full access under that policy. Viewing the task must
+ * not suggest a mode the next message cannot use.
+ */
+export function autoReviewUnavailableGuidanceCode(sessionSource: unknown): string {
+ return sessionSource === 'wechat' ? 'AUTO_REVIEW_UNAVAILABLE_WECHAT' : 'AUTO_REVIEW_UNAVAILABLE';
+}
+
+export function chatRemoteErrorGuidanceKey(
+ code: string | undefined,
+ sessionSource: unknown,
+): string | undefined {
+ if (!code) return undefined;
+ const guidanceCode =
+ code === 'AUTO_REVIEW_UNAVAILABLE' ? autoReviewUnavailableGuidanceCode(sessionSource) : code;
+ return `chat.remoteError.${guidanceCode}`;
+}
diff --git a/apps/mobile/app/sessions/[sessionId].tsx b/apps/mobile/app/sessions/[sessionId].tsx
index 3cdd1fe7dd..7dcd72433f 100644
--- a/apps/mobile/app/sessions/[sessionId].tsx
+++ b/apps/mobile/app/sessions/[sessionId].tsx
@@ -4385,13 +4385,14 @@ export default function SessionScreen() {
isSessionStreaming: isMessageListStreaming,
renderOrphanTaskUpdates: makerTurnRunning,
sessionId,
+ sessionSource: currentSession?.source,
},
prefixCache: streamingRenderPrefixRef,
taskUpdates,
});
const historyItems = historyView.snapshot.ready ? buildMobileHistoryRenderItems({
view: historyView.view, snapshot: historyView.snapshot, messages: projectedMessages,
- streaming: isMessageListStreaming, sessionId, taskUpdates,
+ streaming: isMessageListStreaming, sessionId, sessionSource: currentSession?.source, taskUpdates,
pendingHandoff: handoff.pending, localUserClientIds,
}) : builtWindow.items;
let items = insertMobileForkOriginItem(
@@ -4434,7 +4435,7 @@ export default function SessionScreen() {
stablePrefixItemCount,
};
},
- [optimisticUsers, localUserClientIds, renderMessageStructureToken, historyView.snapshot, historyView.view, handoff.pending, errorTailClientId, forkOrigin, i18nInstance.language, inputProjection.autoResumePending, isMessageListStreaming, makerTurnRunning, messageStructureToken, projectedMessages, projectedMessageStructureChangedIndexes, sessionId, taskUpdates],
+ [optimisticUsers, currentSession?.source, localUserClientIds, renderMessageStructureToken, historyView.snapshot, historyView.view, handoff.pending, errorTailClientId, forkOrigin, i18nInstance.language, inputProjection.autoResumePending, isMessageListStreaming, makerTurnRunning, messageStructureToken, projectedMessages, projectedMessageStructureChangedIndexes, sessionId, taskUpdates],
);
// Search, media and sharing only see durable user rows. Local user boundaries
// still participate in grouping and in the message list below.
@@ -9299,6 +9300,7 @@ export default function SessionScreen() {
不在这里,它们是消息流里的 pending_send 项。 */}
<InlineQueueSection
busy={queueBusy}
+ sessionSource={currentSession?.source}
errorRecoveryReadOnlyReason={errorRecoveryReadOnlyReason}
onClearError={clearQueueError}
onResume={resumeQueue}
diff --git a/apps/mobile/src/__tests__/AgentErrorLocalization.test.tsx b/apps/mobile/src/__tests__/AgentErrorLocalization.test.tsx
index 5b6721045d..d56207064f 100644
--- a/apps/mobile/src/__tests__/AgentErrorLocalization.test.tsx
+++ b/apps/mobile/src/__tests__/AgentErrorLocalization.test.tsx
@@ -160,3 +160,44 @@ it.each(['REMOTE_DAEMON_CLOSED', 'REMOTE_GATEWAY_ENDPOINT_UNAVAILABLE', 'DEVICE_
expect(requiresAgentErrorConfigurationChange(`[${code}] diagnostic`)).toBe(false);
},
);
+
+
+describe.each(SUPPORTED_LOCALES)('WeChat auto-review guidance in %s', locale => {
+ const message = '[AUTO_REVIEW_UNAVAILABLE] upstream diagnostic; api_key=private-test-value';
+
+ it('asks for direct confirmation on live, tail, and history', async () => {
+ await i18n.changeLanguage(locale);
+ const wechatKey = 'session.remoteError.AUTO_REVIEW_UNAVAILABLE_WECHAT';
+ const genericKey = 'session.remoteError.AUTO_REVIEW_UNAVAILABLE';
+ expect(unclassifiedAgentErrorI18nKey(message, 'wechat')).toBe(wechatKey);
+ expect(unclassifiedAgentErrorI18nKey(message, 'desktop')).toBe(genericKey);
+ const [historical] = normalizeRemoteMessages([row(message)], { sessionSource: 'wechat' });
+ expect(historical.body).toBe(i18n.t(wechatKey));
+ expect(historical.body).not.toContain('Switch this task');
+ expect(historical.errorSummaryKey).toBe(wechatKey);
+ const state = resolveSessionTailBanner({
+ messages: [row(message)],
+ session: { source: 'wechat', activeTurnStartedAt: null, lastTurnEndedAt: null, clearedAt: null },
+ projection: { error: null, credentialSwitchWait: null },
+ isSessionStreaming: false,
+ continuationInFlight: false,
+ sessionMetadataSyncedForConnection: true,
+ interruptAcked: false,
+ hiddenErrorClientIds: new Set(),
+ });
+ expect(state?.kind).toBe('error-tail');
+ if (state?.kind !== 'error-tail') return;
+ expect(state.text).toBe(i18n.t(wechatKey));
+ await act(async () => root.render(<InlineQueueSection
+ projection={{ error: message, errorRetryText: 'original user message' } as InputProjection}
+ sessionSource="wechat"
+ readOnlyReason={null}
+ errorRecoveryReadOnlyReason={null}
+ onRetryError={vi.fn()}
+ onClearError={vi.fn()}
+ onResume={vi.fn()}
+ />));
+ expect(host.textContent).toContain(i18n.t(wechatKey));
+ expect(host.textContent).not.toContain(i18n.t(genericKey));
+ });
+});
diff --git a/apps/mobile/src/i18n/locales/en/session.json b/apps/mobile/src/i18n/locales/en/session.json
index 5c728b03b4..21425a73ac 100644
--- a/apps/mobile/src/i18n/locales/en/session.json
+++ b/apps/mobile/src/i18n/locales/en/session.json
@@ -529,7 +529,8 @@
"remoteError": {
"REMOTE_DAEMON_CLOSED": "The remote connection dropped, possibly during an update. This turn has ended. Send the message again.",
"REMOTE_LOCAL_ATTACHMENT_UNSUPPORTED": "Local file/image attachments aren't accessible in remote sessions. Paste the content directly instead.",
- "AUTO_REVIEW_UNAVAILABLE": "Auto-review could not reach a decision (network or service hiccup), so actions that need review are being handed to you to confirm. Switch this task to Default permissions if you would rather not be interrupted.",
+ "AUTO_REVIEW_UNAVAILABLE": "Auto-review could not reach a decision, so actions that need review now need your confirmation. Switch this task to Full access if you would rather not be interrupted. That mode is higher risk.",
+ "AUTO_REVIEW_UNAVAILABLE_WECHAT": "Auto-review could not reach a decision, so actions that need review now need your confirmation. Personal WeChat cannot use Full access. Confirm this action directly.",
"AUTO_REVIEW_CONFIRM_UNDELIVERED": "Automatic review was unavailable, and the confirmation request was not completed. This is not a user rejection.",
"REMOTE_COMPAT_MODE_UNSUPPORTED": "Remote tasks cannot use this computer’s compatibility route. Switch to Cindy AI, or continue in a local task.",
"REMOTE_GATEWAY_ENDPOINT_UNAVAILABLE": "Cindy AI credentials are not ready yet (issued automatically after sign-in). Please retry shortly; if this persists, check the Cindy AI status in Settings → Model Providers.",
diff --git a/apps/mobile/src/i18n/locales/ja/session.json b/apps/mobile/src/i18n/locales/ja/session.json
index bd1364f642..8db18c1706 100644
--- a/apps/mobile/src/i18n/locales/ja/session.json
+++ b/apps/mobile/src/i18n/locales/ja/session.json
@@ -529,7 +529,8 @@
"remoteError": {
"REMOTE_DAEMON_CLOSED": "リモート接続が切れました。更新中の可能性があります。このターンは終了したので、もう一度送信してください。",
"REMOTE_LOCAL_ATTACHMENT_UNSUPPORTED": "リモートセッションではローカルのファイル/画像の添付にアクセスできません。内容を直接貼り付けてください。",
- "AUTO_REVIEW_UNAVAILABLE": "自動レビューが判断できませんでした(ネットワークまたはサービスの一時的な問題)。レビューが必要な操作はご自身での確認に切り替わりました。中断を減らしたい場合は、このタスクをデフォルト権限に切り替えてください。",
+ "AUTO_REVIEW_UNAVAILABLE": "自動レビューが判断できませんでした。レビューが必要な操作は、ご自身で確認する形に切り替わりました。中断を減らしたい場合は、このタスクを「フルアクセス」に切り替えてください。リスクはより高くなります。",
+ "AUTO_REVIEW_UNAVAILABLE_WECHAT": "自動レビューが判断できませんでした。レビューが必要な操作は、ご自身で確認する形に切り替わりました。個人 WeChat ではフルアクセスを使えません。この操作を直接確認してください。",
"AUTO_REVIEW_CONFIRM_UNDELIVERED": "自動レビューを完了できず、確認も完了しませんでした。これはユーザーによる拒否ではありません。",
"REMOTE_COMPAT_MODE_UNSUPPORTED": "リモートのタスクでは、このパソコン側の互換経路を使えません。Cindy AI に切り替えるか、このパソコン上のタスクで続けてください。",
"REMOTE_GATEWAY_ENDPOINT_UNAVAILABLE": "Cindy AI の資格情報がまだ準備できていません(サインイン後に自動発行されます)。しばらくしてから再試行してください。続く場合は 設定 → モデルプロバイダー で Cindy AI の接続状態を確認してください。",
diff --git a/apps/mobile/src/i18n/locales/ko/session.json b/apps/mobile/src/i18n/locales/ko/session.json
index 6a5eaf659e..8fec30305d 100644
--- a/apps/mobile/src/i18n/locales/ko/session.json
+++ b/apps/mobile/src/i18n/locales/ko/session.json
@@ -525,7 +525,8 @@
"remoteError": {
"REMOTE_DAEMON_CLOSED": "원격 연결이 끊겼습니다. 업데이트 중일 수 있습니다. 이번 차례는 끝났으니 다시 보내 주세요.",
"REMOTE_LOCAL_ATTACHMENT_UNSUPPORTED": "원격 세션에서는 로컬 파일/이미지 첨부에 접근할 수 없습니다. 내용을 직접 붙여넣으세요.",
- "AUTO_REVIEW_UNAVAILABLE": "자동 리뷰가 판단을 내리지 못했습니다(네트워크 또는 서비스 일시 장애). 검토가 필요한 작업은 직접 확인하도록 전환되었습니다. 중단을 줄이려면 이 작업을 기본 권한으로 전환하세요.",
+ "AUTO_REVIEW_UNAVAILABLE": "자동 리뷰가 판단을 내리지 못했습니다. 검토가 필요한 작업은 직접 확인하도록 바뀌었습니다. 중단을 줄이려면 이 작업을 전체 접근으로 전환하세요. 위험도는 더 높습니다.",
+ "AUTO_REVIEW_UNAVAILABLE_WECHAT": "자동 리뷰가 판단을 내리지 못했습니다. 검토가 필요한 작업은 직접 확인하도록 바뀌었습니다. 개인 WeChat에서는 전체 접근을 사용할 수 없습니다. 이번 작업을 직접 확인하세요.",
"AUTO_REVIEW_CONFIRM_UNDELIVERED": "자동 리뷰를 끝내지 못했고 확인도 완료되지 않았습니다. 사용자가 거부한 것이 아닙니다.",
"REMOTE_COMPAT_MODE_UNSUPPORTED": "원격 작업에서는 이 컴퓨터의 호환 경로를 사용할 수 없습니다. Cindy AI로 바꾸거나 이 컴퓨터의 작업에서 계속하세요.",
"REMOTE_GATEWAY_ENDPOINT_UNAVAILABLE": "Cindy AI 자격 증명이 아직 준비되지 않았습니다(로그인 후 자동 발급됩니다). 잠시 후 다시 시도해 주세요. 계속되면 설정 → 모델 제공자에서 Cindy AI 연결 상태를 확인하세요.",
diff --git a/apps/mobile/src/i18n/locales/zh-CN/session.json b/apps/mobile/src/i18n/locales/zh-CN/session.json
index ca44c24f07..fff9f68263 100644
--- a/apps/mobile/src/i18n/locales/zh-CN/session.json
+++ b/apps/mobile/src/i18n/locales/zh-CN/session.json
@@ -525,7 +525,8 @@
"remoteError": {
"REMOTE_DAEMON_CLOSED": "远端连接中断了,可能正在更新。这一轮已经结束,请重新发送。",
"REMOTE_LOCAL_ATTACHMENT_UNSUPPORTED": "远端任务无法访问本地文件/图片附件。请直接粘贴内容。",
- "AUTO_REVIEW_UNAVAILABLE": "自动审批暂时无法给出判断(网络或服务波动),需要审批的操作已转由你来确认。想少被打断,可以把任务切到「默认权限」自行掌控。",
+ "AUTO_REVIEW_UNAVAILABLE": "自动审批暂时无法给出判断,需要审批的操作已改为由你确认。想少被打断,可以把任务切到「完全访问」,但风险更高。",
+ "AUTO_REVIEW_UNAVAILABLE_WECHAT": "自动审批暂时无法给出判断,需要审批的操作已改为由你确认。个人微信不能使用「完全访问」,请直接确认这次操作。",
"AUTO_REVIEW_CONFIRM_UNDELIVERED": "自动审批没完成,确认也没有送到或没有被点。这次拒绝不是你点的。",
"REMOTE_COMPAT_MODE_UNSUPPORTED": "远端任务不能使用本机兼容通道。请改用 Cindy AI,或在本机任务里继续。",
"REMOTE_GATEWAY_ENDPOINT_UNAVAILABLE": "Cindy AI 凭据尚未就绪(登录后由服务端自动下发)。请稍候重试;若持续出现,请到 设置 → 模型供应商 检查 Cindy AI 连接状态。",
diff --git a/apps/mobile/src/i18n/locales/zh-TW/session.json b/apps/mobile/src/i18n/locales/zh-TW/session.json
index 7e3d2a6662..2d28e7fed9 100644
--- a/apps/mobile/src/i18n/locales/zh-TW/session.json
+++ b/apps/mobile/src/i18n/locales/zh-TW/session.json
@@ -529,7 +529,8 @@
"remoteError": {
"REMOTE_DAEMON_CLOSED": "遠端連線中斷了,可能正在更新。這一輪已經結束,請重新傳送。",
"REMOTE_LOCAL_ATTACHMENT_UNSUPPORTED": "遠端任務無法訪問本地檔案/圖片附件。請直接貼上內容。",
- "AUTO_REVIEW_UNAVAILABLE": "自動審批暫時無法給出判斷(網路或服務波動),需要審批的操作已轉由你來確認。想少被打斷,可以把任務切到「預設權限」自行掌控。",
+ "AUTO_REVIEW_UNAVAILABLE": "自動審批暫時無法給出判斷,需要審批的操作已改為由你確認。想少被打斷,可以把任務切到「完全訪問」,但風險更高。",
+ "AUTO_REVIEW_UNAVAILABLE_WECHAT": "自動審批暫時無法給出判斷,需要審批的操作已改為由你確認。個人微信不能使用「完全訪問」,請直接確認這次操作。",
"AUTO_REVIEW_CONFIRM_UNDELIVERED": "自動審批沒完成,確認也沒有送到或沒有被點。這次拒絕不是你點的。",
"REMOTE_COMPAT_MODE_UNSUPPORTED": "遠端任務不能使用本機相容通道。請改用 Cindy AI,或在本機任務裡繼續。",
"REMOTE_GATEWAY_ENDPOINT_UNAVAILABLE": "Cindy AI 憑據尚未就緒(登入後由服務端自動下發)。請稍候重試;若持續出現,請到 設定 → 模型供應商 檢查 Cindy AI 連線狀態。",
diff --git a/apps/mobile/src/session/InlineQueueSection.tsx b/apps/mobile/src/session/InlineQueueSection.tsx
index 73c7763b7b..a8571f5602 100644
--- a/apps/mobile/src/session/InlineQueueSection.tsx
+++ b/apps/mobile/src/session/InlineQueueSection.tsx
@@ -40,6 +40,7 @@ import { radius, spacing, typeScale } from '@/theme/tokens';
export interface InlineQueueSectionProps {
projection: InputProjection;
+ sessionSource?: string | null;
busy?: boolean;
readOnlyReason?: string | null;
errorRecoveryReadOnlyReason: string | null;
@@ -50,6 +51,7 @@ export interface InlineQueueSectionProps {
export function InlineQueueSection({
projection,
+ sessionSource,
busy,
readOnlyReason,
errorRecoveryReadOnlyReason,
@@ -84,7 +86,7 @@ export function InlineQueueSection({
? localizedAgentError
?? (projectionErrorKey
? t(projectionErrorKey)
- : (describeAgentAuthError(projection.error) ?? localizeUnclassifiedAgentError(projection.error)))
+ : (describeAgentAuthError(projection.error) ?? localizeUnclassifiedAgentError(projection.error, sessionSource)))
: null;
return (
diff --git a/apps/mobile/src/session/agentErrorI18n.ts b/apps/mobile/src/session/agentErrorI18n.ts
index 454a1064d4..ec3eb5b656 100644
--- a/apps/mobile/src/session/agentErrorI18n.ts
+++ b/apps/mobile/src/session/agentErrorI18n.ts
@@ -58,18 +58,31 @@ export function localizeAgentError(
return i18n.t(TOOL_LOOP_I18N_KEYS[toolLoop.kind], { count: toolLoop.count });
}
+/**
+ * Personal WeChat cannot use Full access, so the shared outage key must not
+ * suggest that mode when the task being viewed came from WeChat.
+ */
+export function autoReviewUnavailableGuidanceCode(sessionSource: unknown): string {
+ return sessionSource === 'wechat'
+ ? 'AUTO_REVIEW_UNAVAILABLE_WECHAT'
+ : 'AUTO_REVIEW_UNAVAILABLE';
+}
+
/** Unknown provider messages stay in diagnostic details, never in the localized summary. */
-export function unclassifiedAgentErrorI18nKey(message: string): string {
+export function unclassifiedAgentErrorI18nKey(message: string, sessionSource?: unknown): string {
const parsed = parseAgentErrorCode(message);
- const key = parsed ? `session.remoteError.${parsed.code}` : null;
+ const code = parsed?.code === 'AUTO_REVIEW_UNAVAILABLE'
+ ? autoReviewUnavailableGuidanceCode(sessionSource)
+ : parsed?.code;
+ const key = code ? `session.remoteError.${code}` : null;
if (key && i18n.exists(key)) return key;
return isResponsesLiteParallelToolCallsError(message)
? 'session.tail.requestFormatError'
: 'session.tail.replyFailed';
}
-export function localizeUnclassifiedAgentError(message: string): string {
- return i18n.t(unclassifiedAgentErrorI18nKey(message));
+export function localizeUnclassifiedAgentError(message: string, sessionSource?: unknown): string {
+ return i18n.t(unclassifiedAgentErrorI18nKey(message, sessionSource));
}
/** Resending unchanged content cannot fix these explicit configuration failures. */
diff --git a/apps/mobile/src/session/messageNormalize.ts b/apps/mobile/src/session/messageNormalize.ts
index 388a97b6e9..f286217ce7 100644
--- a/apps/mobile/src/session/messageNormalize.ts
+++ b/apps/mobile/src/session/messageNormalize.ts
@@ -203,7 +203,7 @@ const toolUsePayloadByMessage = new WeakMap<RemoteMessage, ToolUsePayload>();
export function normalizeRemoteMessages(
messages: readonly RemoteMessage[],
- options: { preserveSourceOrder?: boolean } = {},
+ options: { preserveSourceOrder?: boolean; sessionSource?: string | null } = {},
): NormalizedRemoteMessage[] {
// History views already place live tails after their persisted prefix. A live
// row's provisional timestamp must not undo that order during normalization.
@@ -330,7 +330,7 @@ export function normalizeRemoteMessages(
const rawText = typeof c?.message === 'string' ? c.message : contentToPreview(message.content);
const toolLoop = parseMobileToolLoopErrorDetails(c?.toolLoop);
const guidance = describeAgentAuthError(rawText) ?? localizeAgentError(c?.reason, toolLoop);
- const errText = guidance ?? localizeUnclassifiedAgentError(rawText);
+ const errText = guidance ?? localizeUnclassifiedAgentError(rawText, options.sessionSource);
result.push({
key: messageNormalizeKey(message),
source: message,
@@ -339,7 +339,7 @@ export function normalizeRemoteMessages(
label: 'error',
body: errText,
rawError: rawText,
- ...(!guidance ? { errorSummaryKey: unclassifiedAgentErrorI18nKey(rawText) } : {}),
+ ...(!guidance ? { errorSummaryKey: unclassifiedAgentErrorI18nKey(rawText, options.sessionSource) } : {}),
align: 'agent',
createdAt: message.createdAt,
});
diff --git a/apps/mobile/src/session/messageRenderModel.ts b/apps/mobile/src/session/messageRenderModel.ts
index 8365c98e16..88ef759f7d 100644
--- a/apps/mobile/src/session/messageRenderModel.ts
+++ b/apps/mobile/src/session/messageRenderModel.ts
@@ -83,6 +83,7 @@ export function buildMobileMessageRenderItems(
autoResumePending?: Record<string, unknown> | null;
sessionId?: string;
preserveSourceOrder?: boolean;
+ sessionSource?: string | null;
} = {},
taskUpdates?: ReadonlyMap<string, AgentTaskUpdate>,
): MobileMessageRenderItem[] {
diff --git a/apps/mobile/src/session/messageRenderStreamingCache.ts b/apps/mobile/src/session/messageRenderStreamingCache.ts
index 4fbc3e1f1b..9eeac21248 100644
--- a/apps/mobile/src/session/messageRenderStreamingCache.ts
+++ b/apps/mobile/src/session/messageRenderStreamingCache.ts
@@ -52,6 +52,7 @@ interface BuildMobileStreamingRenderWindowInput {
autoResumePending?: Record<string, unknown> | null;
preserveSourceOrder?: boolean;
sessionId?: string;
+ sessionSource?: string | null;
};
prefixCache?: MobileStreamingRenderPrefixCacheRef;
previousPrefix?: MobileStreamingRenderPrefixCache | null;
diff --git a/apps/mobile/src/session/mobileHistoryRender.ts b/apps/mobile/src/session/mobileHistoryRender.ts
index 7035094947..c97ebe77e8 100644
--- a/apps/mobile/src/session/mobileHistoryRender.ts
+++ b/apps/mobile/src/session/mobileHistoryRender.ts
@@ -9,6 +9,7 @@ export function buildMobileHistoryRenderItems(options: {
messages: readonly RemoteMessage[];
streaming: boolean;
sessionId: string;
+ sessionSource?: string | null;
pendingHandoff?: ReadonlySet<string>;
localUserClientIds?: ReadonlySet<string>;
taskUpdates?: ReadonlyMap<string, AgentTaskUpdate>;
@@ -20,7 +21,10 @@ export function buildMobileHistoryRenderItems(options: {
isLocalUser: (row) => options.localUserClientIds?.has(row.clientId) === true,
streaming: options.streaming,
build: (rows, streaming) => buildMobileMessageRenderItems(rows, {
- isSessionStreaming: streaming, sessionId: options.sessionId, preserveSourceOrder: true,
+ isSessionStreaming: streaming,
+ sessionId: options.sessionId,
+ sessionSource: options.sessionSource,
+ preserveSourceOrder: true,
}, options.taskUpdates),
structure: {
placeholder: (summary) => ({ id: summary.firstMessageId,
diff --git a/apps/mobile/src/session/sessionTailBannerModel.ts b/apps/mobile/src/session/sessionTailBannerModel.ts
index 5957f99ce1..08b1cdb731 100644
--- a/apps/mobile/src/session/sessionTailBannerModel.ts
+++ b/apps/mobile/src/session/sessionTailBannerModel.ts
@@ -63,7 +63,7 @@ export type SessionTailBannerState = SessionTailErrorBanner | SessionTailInterru
export interface ResolveSessionTailBannerInput {
messages: readonly RemoteMessage[];
- session: Pick<RemoteSession, 'activeTurnStartedAt' | 'lastTurnEndedAt' | 'clearedAt'> | null;
+ session: Pick<RemoteSession, 'activeTurnStartedAt' | 'lastTurnEndedAt' | 'clearedAt' | 'source'> | null;
projection: Pick<InputProjection, 'error' | 'credentialSwitchWait'>;
isSessionStreaming: boolean;
/**
@@ -109,9 +109,9 @@ export function resolveSessionTailBanner(input: ResolveSessionTailBannerInput):
return {
kind: 'error-tail',
clientId: tail.clientId,
- text: nonRetryableGuidance ?? agentErrorGuidance ?? localizeUnclassifiedAgentError(tail.text),
+ text: nonRetryableGuidance ?? agentErrorGuidance ?? localizeUnclassifiedAgentError(tail.text, input.session?.source),
rawError: tail.text,
- ...(!nonRetryableGuidance && !agentErrorGuidance ? { summaryKey: unclassifiedAgentErrorI18nKey(tail.text) } : {}),
+ ...(!nonRetryableGuidance && !agentErrorGuidance ? { summaryKey: unclassifiedAgentErrorI18nKey(tail.text, input.session?.source) } : {}),
continueKind: tail.reason === APP_EXIT_INTERRUPTED_REASON ? 'interrupted' : 'error',
retryable: nonRetryableGuidance === null && !requiresAgentErrorConfigurationChange(tail.text),
};
diff --git a/docs/product-rules/telegram-bot-parity.md b/docs/product-rules/telegram-bot-parity.md
index cc082543e0..f71f31f348 100644
--- a/docs/product-rules/telegram-bot-parity.md
+++ b/docs/product-rules/telegram-bot-parity.md
@@ -188,7 +188,7 @@ Hook 与本地 IM 共享消息级来源及上下文快照结构。本地所有
| 2e | **私聊里能不能跨群检索:个人有、官方没有** | **群轮次两侧一致**(都 lane-only,只查当前群/topic)。差别只在私聊。个人:`groupHistoryAccessFor` 在无 lane(即 DM)时给 `access: 'owner'`,owner 可以显式指定别的 lane,跨群查这个 bot 名下全部群历史。官方:私聊的 externalKey 不是群 lane,`groupHistoryAccessForExternalKey` 返回 `undefined`,MCP 直接以 `NO_ACTIVE_TELEGRAM_SCOPE` 拒绝——**官方 bot 私聊里这个工具根本不可用**(MCP 工具自己的说明也写着「只有主人触发的个人 Telegram 轮次可显式指定其它精确 lane」)。个人侧「群轮次一律 lane-only」有 2026-07-30 的明确裁决(群里的可控文本能借 owner 轮次把别的 lane 检索出来回帖泄漏,而检索类调用没有确认卡兜底);**官方私聊这一档没有对应裁决**——是没接,不是判过,所以归缺口不归第三节 | 待判,**不在本 PR 改代码**。补之前先答一个产品问题:官方 bot 绑的是一个主账号,它的私聊该不该看到该账号名下全部群的历史。答「该」才是接线问题(DM 的 externalKey 里有 principal,能推出 `telegram:<principalId>` 的 owner 档);答「不该」就把这行升进第三节当有意差异 |
| 2f | **群里开了「全响应」后,一轮失败:个人 bot 会往群里吐错误,官方静默** | 全响应(`always`)本身两侧行为一致:未被召唤的消息也进 turn 并打 ambient 标、**不 typing、不表情**、模型可用 NO_REPLY 闭嘴、纯媒体/无正文消息不进(个人 `if (!plain) return`,官方 `plain.length > 0`);连 ambient 提示词都逐字相同(各写一份,跨仓无校验)。**分歧只在这一轮失败的时候**:官方不发失败通知(`controller.ts` 的 `finalFailureNoticeSent !== true && !entry.ambient`),并把过程消息删掉、记一句「completed silently」;个人侧的 `im/shared/turnRunner.ts` **完全不认识 ambient**(全文没有这个词),错误一律走 `❌ 错误:…`——惰性占位这时会被真建出来,于是群里凭空多一条错误消息,而这一轮本来连话都不打算说。第二节的生命周期表已按「普通轮次 / ambient 轮次」拆成两行,别再写回一条无条件的失败收口结论 | 待判,**不在本 PR 改代码**。倾向跟官方一致做静默(与「ambient 不打扰群」的既有取舍同一个方向),但要保证错误不因此彻底消失——至少落桌面端日志与该会话,不能只是吞掉 |
| 2g | **交互卡挂太久:官方 30 分钟自动收口,个人一直等** | 三类卡(`ask_user_question` / `plan_review` / 权限)在两侧走的是同一个注册入口,差别只在**有没有定时器**。官方:`hook-control/interactions.ts` 的 `registerHookInteraction` 给每张卡挂一个 `HOOK_INTERACTION_TIMEOUT_MS = 30min`,到点取共享模型的安全默认(ask 空答 / plan deny + dismissed / permission deny)resolve,并回调 `onFallback` → `session-runner.ts` 的 `sendCancel(requestId, reason)` 把卡片收掉。个人:`im/shared/pendingInteractions.ts` **没有任何定时器**,只能靠按钮决策(`resolvePending`),或 turn 收口 / session 清理 / 抢跑时的 `dropInteractionCard` → `cancelPending`(安全默认与官方同源,并把卡片改成「卡片已过期」)。**而这一轮正卡在 `await` 这张卡上,它不会自己结束**;maker-core 的 turn stall 看门狗又明确把「等用户回应交互」排除在静默之外,也不会来救。结果:**个人 bot 的卡片会一直挂着,第二天点还能点,agent 也还在等** | 待判,**不在本 PR 改代码**。先答一个产品问题:个人 bot 的卡片挂着不动算不算问题——它是用户自己的 bot,晚点回来再点也说得通;官方 bot 经服务端中继,挂着的交互会长期占住 lane,动机不一样。补的话要连「超时后卡片显示什么」一起定。**顺带**:官方那个 30 分钟的注释理由(「必须短于整 turn 硬超时 60min」)已过期——那条硬超时 2026-08-01 撤了,定时器本身仍在生效,注释已随本 PR 改正 |
-| 2h | **自动审批故障降级后,个人 bot 有确认入口、官方待核** | 审阅器故障(网络/服务波动,**不是**模型判定该问)时,Cindy 兜底裁决从静默 `block` 改为 `ask` 交回用户决定。个人 bot 的 Telegram / 微信 / 钉钉群轮次即使带 `turnPermissionPolicy` 也会**真正弹确认卡**(`agents/pi/index.ts` 的 Auto 审阅分支),并附一条会话级提示(`im/shared/turnRetryNotice.ts`)说明原因与「切默认权限」的出路。**Auto 三态统一**:渠道策略命中也先交 AI;allow/block 静默执行/拒绝,模型 ask 与 unavailable 都交现有渠道确认入口,不能再由静态策略把动作直接转人工或把模型 ask 改成静默拒绝。官方 bot 侧的等价路径(服务端 `session-runner` 是否把 unavailable 降级的 `ask` 送到用户面前、提示文案由谁渲染)**待核** | 待核。个人侧收口于 PR #2474;官方侧若仍静默拒绝,用户会看到「已转由你确认」却没有确认入口——与个人侧修复前是同一个矛盾 |
+| 2h | **自动审批故障降级后,个人 bot 有确认入口、官方待核** | 审阅器故障(网络/服务波动,**不是**模型判定该问)时,Cindy 兜底裁决从静默 `block` 改为 `ask` 交回用户决定。个人 bot 的 Telegram / 微信 / 钉钉群轮次即使带 `turnPermissionPolicy` 也会**真正弹确认卡**(`agents/pi/index.ts` 的 Auto 审阅分支),并附一条会话级提示(`im/shared/turnRetryNotice.ts`)。桌面、手机和多数渠道建议切到「完全访问」并写明风险更高;个人微信不能使用该档。出站提示和查看微信任务时的桌面横幅、历史错误卡、手机实时/尾部/历史提示都改为直接确认,不建议切档。**Auto 三态统一**:渠道策略命中也先交 AI;allow/block 静默执行/拒绝,模型 ask 与 unavailable 都交现有渠道确认入口,不能再由静态策略把动作直接转人工或把模型 ask 改成静默拒绝。官方 bot 侧的等价路径(服务端 `session-runner` 是否把 unavailable 降级的 `ask` 送到用户面前、提示文案由谁渲染)**待核** | 待核。个人侧收口于 PR #2474;官方侧若仍静默拒绝,用户会看到「已转由你确认」却没有确认入口——与个人侧修复前是同一个矛盾 |
| 2i | **群内回复触发与任务归属两边各写一套** | 官方 bot 的服务端正本用 `TelegramMessageRoute.botAuthored === true` 区分“消息与任务有关”和“消息由 Cindy 发出、可通过回复召唤”:回复曾触发任务的普通用户消息不会误触发,明确 `@cindyapp_bot` 仍召唤当前发言者自己的 Cindy;回复同一 principal 的 Cindy 输出可续用其历史群 lane,回复其他 principal 的 Cindy 输出只带引用上下文,任务归当前发言者,不继承原任务的 principal、设备、会话或权限。普通群与 forum topic 都适用;`/session`、interaction、取消和 reaction 继续严格校验 owner。个人 bot 则在 `packages/lizi-im/src/telegram/inbound.ts` 的 `detectGroupTrigger` 独立用 `reply_to_message.from.id === botId` 判定回复触发,且采用本地单 owner 模型;两侧没有共享代码或数据,不能因为当前触发语义相近就跳过双路核对 | 服务端实现见 `xindong/cindy-server#393`。本 PR 只登记正本与漂移风险,不改任一侧代码;以后修改群回复行为必须同时核对两条路径。是否把共同判据升为跨仓协议数据待判 |
| 3 | **终稿必达只有官方有** | 官方侧终稿先落盘、失败重试到送达或有界放弃(`xindong/cindy-server#348`)。个人 bot 的 `streamingText.finalize` 是进程内尽力而为,桌面进程挂掉那条终稿就没了。**两侧的「有界」各有一条明确边界、且不在同一层**:官方路径经桌面账本 `hook-control/requestLedger.ts`,客户端侧的投递时效是 `HOOK_TERMINAL_DELIVERY_TTL_MS ≈ 24h`,**规则无条件**——过线的终稿一律不再发出,不论是谁在要。覆盖的出口:持久出箱 `listPending`、ACK 退避重发、离线内存缓冲、ACK 缓冲的两个消费分支(`onConnected` 入口一次性清扫,含能力降级回落),以及 **server 显式重投**——那一支只回放 `task.ack` 后返回,不发终稿、也不把记录改回 `pending`。(重投一度有过 `origin='server-request'` 豁免,后被删除:它在持久记录里没有位置,每条路径都要手工传播,连续三轮 review 各找出一条漏掉的。)server 侧只丢掉一份它自己也已放弃发布的终稿——服务端 `OUTBOX_MAX_ATTEMPTS × OUTBOX_MAX_DELAY_MS ≈ 24h` 的发布放弃线与客户端刻意取同一个数,而结果总比请求更晚,所以它索取一份过线结果时自身 outbox 早已过放弃点;X 侧入口还另有 `x-hook-server` 的 `onMention` 陈旧守卫。**个人 bot 不经过这个账本**,既没有落盘也没有这条时效,它的边界就是「进程活着就尽力,挂了就没了」 | 待判:个人侧是否需要等价保障,还是接受「桌面挂了本来就没人在跑」。**注意两侧要判的不是同一件事**:官方已定「超过 24h 的终稿不再主动补发」,个人待定的是「要不要先落盘」 |
| 4 | 受保护群内容的隐私边界 | 个人侧已做(出站回流 fail-closed,任一分片带保护标即整条不回流)。官方侧是否等价**待核** | 待核 |
diff --git a/packages/maker-core/src/agents/shared/auto-review-decision.test.ts b/packages/maker-core/src/agents/shared/auto-review-decision.test.ts
index ce64c905dc..584f7653ee 100644
--- a/packages/maker-core/src/agents/shared/auto-review-decision.test.ts
+++ b/packages/maker-core/src/agents/shared/auto-review-decision.test.ts
@@ -494,6 +494,9 @@ describe('createAutoReviewUnavailableNotice', () => {
expect(emitted[0]).toContain(`[${AUTO_REVIEW_UNAVAILABLE_CODE}]`);
// 兜底英文必须跟在 code 后面:未落地 i18n 的宿主(远端 / IM)直接显示它。
expect(emitted[0]).toContain('Auto-review could not reach a decision');
+ expect(emitted[0]).toContain('Full access');
+ expect(emitted[0]).toContain('higher risk');
+ expect(emitted[0]).not.toContain('Default permissions');
notice.reset();
notice.notify();
diff --git a/packages/maker-core/src/agents/shared/auto-review-decision.ts b/packages/maker-core/src/agents/shared/auto-review-decision.ts
index b469dd3fca..8b65aa11ec 100644
--- a/packages/maker-core/src/agents/shared/auto-review-decision.ts
+++ b/packages/maker-core/src/agents/shared/auto-review-decision.ts
@@ -37,17 +37,18 @@ export type AutoReviewDecision = {
export const AUTO_REVIEW_UNAVAILABLE_CODE = 'AUTO_REVIEW_UNAVAILABLE';
/**
- * 未落地 i18n 的宿主看到的兜底英文。用词与 desktop 权限选择器的档位标签对齐
- * (Auto-review / Default permissions),避免同一件事在两处叫不同名字。
+ * 未落地 i18n 的宿主看到的兜底英文。三条 Harness 共用这一句。少打断只能指向
+ * Full access:默认权限在 Pi 上问得更多,在 Claude / Codex 上也不会少问联网和提权。
+ * 完全访问风险更高,文案必须点明。
*
* IM 渠道(Slack / Telegram / 飞书)**不**读它 —— 渠道文案硬编码中文、不进 renderer
* 的 locale(见 docs/dev-rules/engineering-conventions.md §5),映射在
* apps/desktop/src/main/im/shared/turnRetryNotice.ts。
*/
const AUTO_REVIEW_UNAVAILABLE_FALLBACK_TEXT =
- 'Auto-review could not reach a decision (network or service hiccup), so actions that '
- + 'need review are being handed to you to confirm. Switch this task to Default '
- + 'permissions if you would rather not be interrupted.';
+ 'Auto-review could not reach a decision, so actions that need review now need your '
+ + 'confirmation. Switch this task to Full access if you would rather not be interrupted. '
+ + 'That mode is higher risk.';
/**
* 判定一条 AgentEvent 的 error message 是否就是「自动审批不可用」提示。