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(desktop): 回应评审——恢复误删 i18n 键、按引擎定向查询与缓存/限流/刷新修正

JupiterTheWarlockfc41eebe5db5
diff --git a/apps/desktop/src/main/maker-host/__tests__/provider-account-usage.test.ts b/apps/desktop/src/main/maker-host/__tests__/provider-account-usage.test.ts
index 76f91c7a64..af2b6df5d1 100644
--- a/apps/desktop/src/main/maker-host/__tests__/provider-account-usage.test.ts
+++ b/apps/desktop/src/main/maker-host/__tests__/provider-account-usage.test.ts
@@ -330,6 +330,7 @@ describe('readProviderAccountUsage', () => {
expect(result).toEqual({
status: 'ready',
stale: false,
+ agent: 'claude-code',
snapshot: {
kind: 'deepseek-balance',
isAvailable: true,
@@ -341,6 +342,51 @@ describe('readProviderAccountUsage', () => {
});
});
+ it('pins the requested agent and never falls back to another engine key', async () => {
+ setAccountUsageProviderReader(() => mkProvider());
+ const seen: AgentKind[] = [];
+ setAccountUsageKeyReader((_id, agent) => {
+ seen.push(agent);
+ return agent === 'codex' ? 'sk-codex' : null;
+ });
+ // Pi 会话指定 pi:即使 claude-code/codex 有密钥也不借用,查不到就是 no-credentials。
+ const resolution = resolveProviderAccountUsage('deepseek', 'pi');
+ expect(resolution).toBeNull();
+ expect(seen).toEqual(['pi']);
+ await expect(
+ readProviderAccountUsage({ providerId: 'deepseek', agent: 'pi' }),
+ ).resolves.toEqual({ status: 'unavailable', error: 'no-credentials' });
+ });
+
+ it('treats a swapped key as a different account (cache key includes key fingerprint)', async () => {
+ const fetchMock = vi.fn(async () => jsonRes(DEEPSEEK_BALANCE));
+ setAccountUsageFetch(fetchMock as unknown as typeof fetch);
+ await readProviderAccountUsage({ providerId: 'deepseek' });
+ setAccountUsageKeyReader(() => 'sk-other-account');
+ await readProviderAccountUsage({ providerId: 'deepseek' });
+ // 换 key = 换账户:不得命中旧账户缓存。
+ expect(fetchMock).toHaveBeenCalledTimes(2);
+ });
+
+ it('serves stale snapshot without network while inside the Retry-After window', async () => {
+ let calls = 0;
+ const fetchMock = vi.fn(async () => {
+ calls += 1;
+ if (calls === 1) return jsonRes(DEEPSEEK_BALANCE);
+ return jsonRes({}, 429, { 'retry-after': '60' });
+ });
+ setAccountUsageFetch(fetchMock as unknown as typeof fetch);
+ await readProviderAccountUsage({ providerId: 'deepseek' });
+ expect(calls).toBe(1);
+ nowMs += 6 * 60_000; // TTL 过期,触发第二次拉取 → 429 + Retry-After。
+ await readProviderAccountUsage({ providerId: 'deepseek' });
+ expect(calls).toBe(2);
+ // 429 失败后重置时间未到:不再发请求,回 stale 快照。
+ const third = await readProviderAccountUsage({ providerId: 'deepseek' });
+ expect(calls).toBe(2);
+ expect(third).toMatchObject({ status: 'ready', stale: true, error: 'rate-limited' });
+ });
+
it('serves the cached snapshot inside the TTL and refetches after expiry', async () => {
const fetchMock = vi.fn(async () => jsonRes(DEEPSEEK_BALANCE));
setAccountUsageFetch(fetchMock as unknown as typeof fetch);
diff --git a/apps/desktop/src/main/maker-host/provider-account-usage.ts b/apps/desktop/src/main/maker-host/provider-account-usage.ts
index 488485f75f..cd5e2faecc 100644
--- a/apps/desktop/src/main/maker-host/provider-account-usage.ts
+++ b/apps/desktop/src/main/maker-host/provider-account-usage.ts
@@ -15,6 +15,8 @@
* 整体失效。缓存键含 providerId + agent,换 runtime 配置不串数据。
*/
+import { createHash } from 'node:crypto';
+
import type { AgentKind, Provider } from '@cindy/model-providers';
import {
@@ -69,13 +71,13 @@ type IntegrationView = {
/** 该供应商是否命中智谱 GLM Coding Plan 的官方接入端点(设置页给「查看套餐用量」入口用)。 */
export function isZhipuCodingPlanProvider(provider: Provider | undefined | null): boolean {
if (!provider) return false;
- if (provider.id === 'zhipu-coding-plan-cn') return true;
+ if (provider.id === 'zhipu-coding-plan-cn' || provider.id === 'zai-coding-plan-global') return true;
return Object.values(provider.routing).some((route) => {
const upstream = route?.upstream;
if (!upstream) return false;
return (
- upstream === 'https://open.bigmodel.cn/api/anthropic'
- || upstream.startsWith('https://open.bigmodel.cn/api/coding/')
+ upstream === 'https://open.bigmodel.cn/api/anthropic' || upstream === 'https://api.z.ai/api/anthropic'
+ || upstream.startsWith('https://open.bigmodel.cn/api/coding/') || upstream.startsWith('https://api.z.ai/api/coding/')
);
});
}
@@ -189,10 +191,14 @@ export function parseDeepSeekAccountUsage(
*/
export function resolveProviderAccountUsage(
providerId: string,
+ agent?: AgentKind,
): ProviderAccountUsageResolution | null {
const provider = providerReader(providerId);
if (!provider || provider.auth.method !== 'apiKey') return null;
- for (const agent of PROVIDER_ACCOUNT_USAGE_AGENTS) {
+ // 指定 agent 时只认领该 runtime:同一供应商各引擎可用不同账户的独立密钥,
+ // 会话查询必须对准当前会话实际路由的账户。
+ const agents = agent ? [agent] : PROVIDER_ACCOUNT_USAGE_AGENTS;
+ for (const agent of agents) {
const upstream = provider.routing[agent]?.upstream;
if (!upstream) continue;
let url: URL;
@@ -399,7 +405,7 @@ export async function readProviderAccountUsage(
request: ProviderAccountUsageRequest,
): Promise<ProviderAccountUsageResult> {
const ownerStamp = ownerStampReader();
- const resolution = resolveProviderAccountUsage(request.providerId);
+ const resolution = resolveProviderAccountUsage(request.providerId, request.agent);
if (!resolution) {
// 没认领到官方端点,或 key 读不到。区分「本来就没有接口」与「有接口但 key 缺失」。
if (providerAccountUsageSupported(request.providerId)) {
@@ -407,7 +413,9 @@ export async function readProviderAccountUsage(
}
return { status: 'unsupported' };
}
- const cacheKey = `${ownerStamp.dataOwnerId ?? 'local'}:${ownerStamp.generation}:${request.providerId}:${resolution.integrationId}`;
+ // 缓存键含凭证指纹:同一供应商下换 key(不同账户)后旧账户快照绝不复用。
+ const keyFingerprint = createHash('sha256').update(resolution.key).digest('hex').slice(0, 12);
+ const cacheKey = `${ownerStamp.dataOwnerId ?? 'local'}:${ownerStamp.generation}:${request.providerId}:${resolution.integrationId}:${resolution.agent}:${keyFingerprint}`;
const now = accountUsageNow();
const record = cache.get(cacheKey);
const manualRefreshBlocked =
@@ -415,7 +423,21 @@ export async function readProviderAccountUsage(
&& record !== undefined
&& now - record.lastAttemptAt < MIN_MANUAL_REFRESH_INTERVAL_MS;
if (manualRefreshBlocked && record.snapshot && record.expiresAt > now) {
- return { status: 'ready', snapshot: record.snapshot, stale: false };
+ return { status: 'ready', snapshot: record.snapshot, stale: false, agent: resolution.agent };
+ }
+ // 限流窗口内不发起请求:有旧快照就回 stale,否则报 throttled(Retry-After 生效)。
+ if (record?.retryAt && now < record.retryAt) {
+ if (record.snapshot) {
+ return {
+ status: 'ready',
+ snapshot: record.snapshot,
+ stale: true,
+ error: 'rate-limited',
+ retryAt: record.retryAt,
+ agent: resolution.agent,
+ };
+ }
+ return { status: 'unavailable', error: 'throttled', retryAt: record.retryAt };
}
if (
!request.forceRefresh
@@ -423,7 +445,7 @@ export async function readProviderAccountUsage(
&& record.expiresAt > now
&& record.lastError === undefined
) {
- return { status: 'ready', snapshot: record.snapshot, stale: false };
+ return { status: 'ready', snapshot: record.snapshot, stale: false, agent: resolution.agent };
}
try {
const snapshot =
@@ -436,7 +458,7 @@ export async function readProviderAccountUsage(
lastAttemptAt: accountUsageNow(),
retryAt: 0,
});
- return { status: 'ready', snapshot, stale: false };
+ return { status: 'ready', snapshot, stale: false, agent: resolution.agent };
} catch (err) {
const code = err instanceof AccountUsageRequestError ? err.code : 'unknown';
log.warn(
@@ -469,7 +491,7 @@ export async function readProviderAccountUsage(
}
const fallback = record?.snapshot;
if (fallback) {
- return { status: 'ready', snapshot: fallback, stale: true, error: code };
+ return { status: 'ready', snapshot: fallback, stale: true, error: code, agent: resolution.agent };
}
return { status: 'unavailable', error: code };
}
diff --git a/apps/desktop/src/main/maker-ipc/providerHandlers.ts b/apps/desktop/src/main/maker-ipc/providerHandlers.ts
index 6ca6acfe3a..a80e0ea839 100644
--- a/apps/desktop/src/main/maker-ipc/providerHandlers.ts
+++ b/apps/desktop/src/main/maker-ipc/providerHandlers.ts
@@ -498,7 +498,17 @@ function parseAccountUsageInput(input: unknown): ProviderAccountUsageRequest | n
const i = input as Record<string, unknown>;
if (typeof i.providerId !== 'string' || i.providerId.length === 0) return null;
if (i.forceRefresh !== undefined && typeof i.forceRefresh !== 'boolean') return null;
- return { providerId: i.providerId, forceRefresh: i.forceRefresh ?? undefined };
+ if (
+ i.agent !== undefined
+ && (typeof i.agent !== 'string' || !(VALID_AGENTS as readonly string[]).includes(i.agent))
+ ) {
+ return null;
+ }
+ return {
+ providerId: i.providerId,
+ forceRefresh: i.forceRefresh ?? undefined,
+ agent: i.agent as AgentKind | undefined,
+ };
}
/** 校验 PROVIDER_TEST_CONNECTION 入参形状(确定性代码校验,非法直接 INVALID_PARAMS)。 */
diff --git a/apps/desktop/src/renderer/components/settings/ProviderAccountUsageModule.tsx b/apps/desktop/src/renderer/components/settings/ProviderAccountUsageModule.tsx
index 6b11f24ce8..5acdbc2d82 100644
--- a/apps/desktop/src/renderer/components/settings/ProviderAccountUsageModule.tsx
+++ b/apps/desktop/src/renderer/components/settings/ProviderAccountUsageModule.tsx
@@ -38,6 +38,15 @@ export function ProviderAccountUsageModule({ provider }: { provider?: ProviderVi
? buildDeepSeekUsageCard(snapshot?.kind === 'deepseek-balance' ? snapshot : null, t, locale)
: buildZhipuUsageCard(snapshot?.kind === 'zhipu-coding-plan-quota' ? snapshot : null, t);
if (errorText && !snapshot) account.emptyText = errorText;
+ // 余额来自哪个引擎的密钥:同一供应商各引擎可用不同账户,标注免得用户误读。
+ if (usage.result?.status === 'ready' && usage.result.agent) {
+ account.identity ??=
+ usage.result.agent === 'claude-code'
+ ? 'Claude Code'
+ : usage.result.agent === 'codex'
+ ? 'Codex'
+ : 'Pi';
+ }
return (
<div
diff --git a/apps/desktop/src/renderer/components/status/TodaySpendChip.tsx b/apps/desktop/src/renderer/components/status/TodaySpendChip.tsx
index 4266a850a1..62775d7fe0 100644
--- a/apps/desktop/src/renderer/components/status/TodaySpendChip.tsx
+++ b/apps/desktop/src/renderer/components/status/TodaySpendChip.tsx
@@ -5,7 +5,7 @@ import {
formatCompactTimeUntilReset,
WEEKLY_WINDOW_MINUTES,
} from '@/lib/compactQuotaCountdown';
-import { isCodexGatewayWireModel, isOpenAiSubscriptionProvider } from '@cindy/model-providers';
+import { isCodexGatewayWireModel, isOpenAiSubscriptionProvider, type AgentKind } from '@cindy/model-providers';
import { useDeviceProviders } from '@/hooks/useDeviceProviders';
import { useProviders } from '@/hooks/useProviders';
/**
@@ -1004,8 +1004,19 @@ export function TodaySpendChip({
const usesZhipuCodingPlanForm =
!isAnyRemoteSession && Boolean(isZhipuCodingPlanProviderView(selectedQuotaProvider));
const usesProviderAccountUsageForm = usesDeepSeekAccountForm || usesZhipuCodingPlanForm;
+ // 会话所在引擎 → 查询用 runtime:同一供应商各引擎可用不同账户的独立密钥,
+ // 余额/配额必须对准当前会话实际路由的账户(vendorKey 缺省 = 默认路由,不传)。
+ const providerAccountAgent: AgentKind | undefined =
+ vendorKey === 'cc'
+ ? 'claude-code'
+ : vendorKey === 'codex'
+ ? 'codex'
+ : vendorKey === 'pi'
+ ? 'pi'
+ : undefined;
const providerAccountUsage = useProviderAccountUsage(
- usesProviderAccountUsageForm ? selectedQuotaProvider : undefined,
+ usesProviderAccountUsageForm && providerAccountAgent ? selectedQuotaProvider : undefined,
+ providerAccountAgent,
);
const providerAccountSnapshot =
providerAccountUsage.result?.status === 'ready' ? providerAccountUsage.result.snapshot : null;
@@ -1508,11 +1519,18 @@ export function TodaySpendChip({
);
React.useEffect(() => {
- // 订阅形态 (codex-oauth / cc+chatgpt bridge / claude 订阅) 的 reset 倒计时文案
- // 需要随时间走动: 常态分钟级 tick 足够; 任一窗口进入最后一分钟切秒级 tick,
- // 让「59秒 → 1秒」逐秒跳动。setTimeout 链每次 tick 后按最新窗口重估下一次延迟。
- if (!usesCodexQuotaForm && !usesXaiQuotaForm && !isClaudeSubscription && !quotaPopoverOpen)
+ // 订阅形态 (codex-oauth / cc+chatgpt bridge / claude 订阅 / 智谱 Coding Plan) 的
+ // reset 倒计时文案需要随时间走动: 常态分钟级 tick 足够; 任一窗口进入最后一分钟切秒级
+ // tick, 让「59秒 → 1秒」逐秒跳动。setTimeout 链每次 tick 后按最新窗口重估下一次延迟。
+ if (
+ !usesCodexQuotaForm
+ && !usesXaiQuotaForm
+ && !isClaudeSubscription
+ && !usesZhipuCodingPlanForm
+ && !quotaPopoverOpen
+ ) {
return undefined;
+ }
const delay = computeCountdownTickDelayMs(chipResetsAtMsList, Date.now());
const timer = window.setTimeout(() => {
setWindowLabelNowMs(Date.now());
@@ -1522,6 +1540,7 @@ export function TodaySpendChip({
usesCodexQuotaForm,
usesXaiQuotaForm,
isClaudeSubscription,
+ usesZhipuCodingPlanForm,
quotaPopoverOpen,
windowLabelNowMs,
chipResetsAtMsList,
diff --git a/apps/desktop/src/renderer/components/status/usageCardModel.ts b/apps/desktop/src/renderer/components/status/usageCardModel.ts
index c57fa82bad..8cca04cca1 100644
--- a/apps/desktop/src/renderer/components/status/usageCardModel.ts
+++ b/apps/desktop/src/renderer/components/status/usageCardModel.ts
@@ -150,14 +150,6 @@ export function buildDeepSeekUsageCard(
locale?: string,
): UsageCardAccount {
if (!snapshot) return { title: 'DeepSeek', windows: [], emptyText: t('quotaCard.waiting') };
- if (!snapshot.isAvailable || snapshot.balances.length === 0) {
- return {
- title: 'DeepSeek',
- windows: [],
- updatedAt: snapshot.fetchedAt,
- emptyText: t('quotaCard.noWindows'),
- };
- }
const format = (value: string, currency: string): string => {
try {
const fractionLength = value.split('.')[1]?.replace(/0+$/, '').length ?? 0;
@@ -175,16 +167,31 @@ export function buildDeepSeekUsageCard(
return `${value} ${currency}`;
}
};
+ // isAvailable=false 时上游仍会返回余额明细:保留展示,另用警示条说明账户状态,
+ // 不能与输入框积分条(同源数据仍显示余额)互相矛盾。
+ const details = snapshot.balances.map((balance) =>
+ t('providerAccountUsage.deepSeek.balanceLine', {
+ total: format(balance.totalBalance, balance.currency),
+ granted: format(balance.grantedBalance, balance.currency),
+ toppedUp: format(balance.toppedUpBalance, balance.currency),
+ }),
+ );
+ if (!snapshot.isAvailable || snapshot.balances.length === 0) {
+ return {
+ title: 'DeepSeek',
+ windows: [],
+ details: snapshot.balances.length > 0 ? details : undefined,
+ notices: snapshot.balances.length > 0
+ ? [{ text: t('providerAccountUsage.deepSeek.unavailable'), tone: 'warn' }]
+ : undefined,
+ updatedAt: snapshot.fetchedAt,
+ emptyText: snapshot.balances.length > 0 ? undefined : t('quotaCard.noWindows'),
+ };
+ }
return {
title: 'DeepSeek',
windows: [],
- details: snapshot.balances.map((balance) =>
- t('providerAccountUsage.deepSeek.balanceLine', {
- total: format(balance.totalBalance, balance.currency),
- granted: format(balance.grantedBalance, balance.currency),
- toppedUp: format(balance.toppedUpBalance, balance.currency),
- }),
- ),
+ details,
updatedAt: snapshot.fetchedAt,
};
}
diff --git a/apps/desktop/src/renderer/hooks/useProviderAccountUsage.ts b/apps/desktop/src/renderer/hooks/useProviderAccountUsage.ts
index 70eebc9d4e..3bfd91cb54 100644
--- a/apps/desktop/src/renderer/hooks/useProviderAccountUsage.ts
+++ b/apps/desktop/src/renderer/hooks/useProviderAccountUsage.ts
@@ -1,14 +1,18 @@
/**
- * useProviderAccountUsage —— API Key 供应商余额/额度数据 hook。
+ * useProviderAccountUsage —— API Key 供应商余额/配额数据 hook。
*
* 与订阅卡的 useProviderSubscriptionCard 互补:那边读 OAuth 订阅配额,这边经
- * PROVIDER_ACCOUNT_USAGE 读供应商自己的账户接口。挂载时拉一次;失败不轮询,重挂载
- * (重开详情/chip 重现)即重试。不支持(unsupported)时 supported=false,模块不渲染。
+ * PROVIDER_ACCOUNT_USAGE 读供应商自己的账户接口。挂载时拉一次,之后每 60s 静默
+ * 刷新一次(main 侧缓存优先 + 节流,重复轮询不会放大上游请求);失败不轮询重试,
+ * 重挂载即重试。不支持(unsupported)时 supported=false,模块不渲染。
+ *
+ * `agent` 用于会话场景(输入框 chip):同一供应商各引擎可用不同账户的独立密钥,
+ * 传入会话所在引擎才能对准当前会话实际消耗的账户;设置页供应商级视图不传。
*/
import { useCallback, useEffect, useRef, useState } from 'react';
-import type { ProviderView } from '@cindy/model-providers';
+import type { AgentKind, ProviderView } from '@cindy/model-providers';
import type { ProviderAccountUsageResult } from '../../shared/providerAccountUsage';
import {
@@ -24,8 +28,11 @@ export interface ProviderAccountUsageState {
refresh: () => void;
}
+const REFRESH_INTERVAL_MS = 60_000;
+
export function useProviderAccountUsage(
provider: ProviderView | undefined,
+ agent?: AgentKind,
): ProviderAccountUsageState {
const supported =
!!provider
@@ -44,6 +51,7 @@ export function useProviderAccountUsage(
const next = await window.electronAPI.maker.fetchProviderAccountUsage({
providerId: provider.id,
forceRefresh,
+ ...(agent ? { agent } : {}),
});
if (id === requestId.current) setResult(next);
} catch {
@@ -53,14 +61,22 @@ export function useProviderAccountUsage(
if (id === requestId.current) setBusy(false);
}
},
- [provider?.id],
+ [provider?.id, agent],
);
useEffect(() => {
if (!supported) return;
void load(false);
+ // 余额/窗口会随使用变化,挂载期间低频静默刷新(main 缓存优先,不会放大上游请求)。
+ const timer = window.setInterval(() => void load(false), REFRESH_INTERVAL_MS);
+ return () => window.clearInterval(timer);
}, [supported, provider?.id, load]);
+ // 换供应商即清空:旧连接的余额绝不能短暂挂在新连接的卡片下。
+ useEffect(() => {
+ setResult(null);
+ }, [provider?.id]);
+
return {
supported,
result,
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index a8a3455d0b..672382c6a8 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -3,7 +3,8 @@
"openDashboard": "Open DeepSeek usage dashboard",
"deepSeek": {
"balanceLine": "Balance {{total}} (topped up {{toppedUp}} / granted {{granted}})",
- "chipBalance": "Balance {{balance}}"
+ "chipBalance": "Balance {{balance}}",
+ "unavailable": "This DeepSeek account is currently not available for spending. Open the usage dashboard to check the account."
},
"zhipuCodingPlan": {
"usage": "View Zhipu plan usage",
@@ -1104,7 +1105,8 @@
"REMOTE_AGENT_SHARE_PAUSED": "Model not changed: the owner has paused this share for you. Pick another model.",
"REMOTE_AGENT_SHARE_REMOVED": "Model not changed: this share is no longer available (the owner removed it or you left). Pick another model.",
"REMOTE_AGENT_SHARE_UNAVAILABLE": "Model not changed: the shared provider is temporarily unavailable (the owner's computer is offline or sharing is turned off for now). Try again later or pick another model.",
- "SSH_HOST_KEY_MISMATCH": "SSH Host Key Changed"
+ "SSH_HOST_KEY_MISMATCH": "SSH Host Key Changed",
+ "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy cannot read the source attachment; the message was not sent. Save a copy to Downloads or another accessible folder, remove the original attachment, and add the copy using the attachment button before sending again."
},
"providerError": {
"AUTH_INVALID": "Invalid or expired API key (401). Check the key and try again",
@@ -3351,7 +3353,12 @@
"testing": "Testing…",
"ok": "Connected ({{ms}} ms)",
"needFields": "Fill in the base URL and at least one model ID first",
- "unsupportedProtocol": "This model protocol is not supported by connection testing"
+ "unsupportedProtocol": "This model protocol is not supported by connection testing",
+ "inconclusive": "Connection could not be confirmed. Check the address or network before retrying; the previous request may have run.",
+ "exhausted": "All candidate interfaces were tried. No working connection was found.",
+ "costHint": "Testing sends short generation requests and may incur a small charge.",
+ "details": "View attempts",
+ "stop": "Stop test"
},
"fetch": {
"button": "Fetch model list",
@@ -3594,7 +3601,8 @@
"compatibility": "Compatibility mode",
"compatibilityHint": "Compatibility mode may be unstable or behave unexpectedly. Recommended for experienced users.",
"matching": "Native support",
- "unknown": "Protocol unconfirmed"
+ "unknown": "Protocol unconfirmed",
+ "automatic": "Automatic"
},
"lifecycle": {
"alpha": "Early access",
@@ -3943,7 +3951,11 @@
"manualModel": "Model IDs (if discovery is unavailable)",
"modelTypeAutomatic": "Detect Automatically",
"manualModelTypeHint": "Use the same ID to update its type. Automatic detection restores the catalog type.",
- "mediaOnlyTestHint": "This connection has only non-chat models. Fetch the model list to check catalog access; model execution is not tested here."
+ "mediaOnlyTestHint": "This connection has only non-chat models. Fetch the model list to check catalog access; model execution is not tested here.",
+ "manualAdd": "Add a model manually",
+ "manualId": "Model ID",
+ "saveProvider": "Save provider",
+ "removeModel": "Remove model"
},
"byok": {
"managed": "Managed by your organization",
@@ -3971,6 +3983,17 @@
"saveFailed": "Could not add models. Reopen this page and try again.",
"manualSource": "Manual",
"manualHint": "Enter the speech model ID provided by your supplier."
+ },
+ "detection": {
+ "keyRequired": "Enter your API key to continue.",
+ "authRejected": "Authentication failed. Check the URL and API key; we’ll retry when you update them.",
+ "hint": "Enter the URL and API key to identify the provider. Protocol settings remain available when editing the saved connection.",
+ "pending": "Identifying provider…",
+ "matched": "Identified as {{name}}",
+ "ambiguous": "Multiple configurations match. Continue with custom settings or choose a provider.",
+ "custom": "Continue with custom settings. You can fetch models or add them manually.",
+ "configure": "Configure provider",
+ "keepCustom": "Continue with custom settings"
}
},
"experimental": {
@@ -8917,7 +8940,8 @@
"terminateConfirmTitle": "Stop {{name}} process?",
"terminateConfirmDescription": "This force-stops the Agent process. Every task using this process will be interrupted; send another message in an affected task to start an Agent again.",
"terminated": "Stopped the {{name}} process",
- "terminateFailed": "Couldn't stop this process — it may have already exited. The list updates with the next sample."
+ "terminateFailed": "Couldn't stop this process — it may have already exited. The list updates with the next sample.",
+ "sessionDetail": "Task: {{title}}"
}
},
"update": {
@@ -11773,7 +11797,9 @@
"piTransportClosed": "Remote Pi connection interrupted (SSH channel closed). The remote task is still running — reconnect to continue.",
"piManagerUnavailable": "Remote Pi manager is not ready. Retry shortly; if it keeps failing, reinstall Pi under Settings → Remote Machines.",
"piBundledNodeMissing": "The remote host is missing its runtime (Node.js). Expand the host under Settings → Remote Machines and click Install on Claude Code or Codex first (they bundle Node.js), then start a Pi task.",
- "contextOverflow": "This message itself exceeds the model's context window, so Cindy cannot continue it in a fresh agent session. Shorten the input or remove a large attachment, then try again."
+ "contextOverflow": "This message itself exceeds the model's context window, so Cindy cannot continue it in a fresh agent session. Shorten the input or remove a large attachment, then try again.",
+ "attachmentAccessDeniedTitle": "Cindy cannot read the source attachment; the message was not sent.",
+ "attachmentAccessDeniedRecovery": "Save a copy to Downloads or another accessible folder, remove the original attachment, and add the copy using the attachment button before sending again."
},
"backgroundActivity": {
"status": "Background subtasks running, still consuming model usage…",
@@ -12470,7 +12496,8 @@
"REMOTE_AGENT_GROUP_UNAVAILABLE": "No computer in the provider group can run this task right now. They may be offline, paused, cooling down, or missing this model. Check the group on this provider’s Remote & Sharing page.",
"REMOTE_AGENT_DEVICE_LIMIT": "This device has reached its remote session limit. Archive unused sessions or ask the provider owner to raise the limit in Remote & sharing.",
"REMOTE_AGENT_TOTAL_LIMIT": "The provider computer has reached its total remote session limit. Ask the owner to release unused sessions or raise the limit in Remote & sharing.",
- "REMOTE_AGENT_RESUME_LOST": "The earlier conversation on the other computer could not be reconnected, so the agent continues without that context."
+ "REMOTE_AGENT_RESUME_LOST": "The earlier conversation on the other computer could not be reconnected, so the agent continues without that context.",
+ "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy cannot read the source attachment; the message was not sent. Save a copy to Downloads or another accessible folder, remove the original attachment, and add the copy using the attachment button before sending again."
},
"generatedFiles": {
"title": "Files created this message",
@@ -13355,7 +13382,10 @@
"treeLoading": "Loading files…",
"treeAction": {
"collapseAll": "Collapse all",
- "refresh": "Refresh"
+ "refresh": "Refresh",
+ "showIgnoredDirs": "Show ignored directories",
+ "hideIgnoredDirs": "Hide ignored directories",
+ "showIgnoredDirsUnsupported": "The remote device is running an older {{appName}} version that cannot show ignored directories"
},
"treeMenu": {
"newFile": "New File",
@@ -15474,7 +15504,8 @@
"executionDevice": "Runs on {{device}}",
"deviceUnreachable": "Status unavailable",
"unknownDevice": "Another computer",
- "archiveRemoteWorkerConfirmDesc": "Removes it from this collaboration and stops the current round on {{device}}. The task, history and files on {{device}} are kept and marked “Collaboration ended”, so you can keep viewing them there."
+ "archiveRemoteWorkerConfirmDesc": "Removes it from this collaboration and stops the current round on {{device}}. The task, history and files on {{device}} are kept and marked “Collaboration ended”, so you can keep viewing them there.",
+ "editWorkerAria": "Edit worker {{name}}"
},
"split": {
"leadLabel": "Lead ({{agent}})",
@@ -15505,6 +15536,19 @@
"detachedHead": "Detached HEAD · {{sha}}",
"directDetached": "Changes will be made directly in {{project}} at {{branch}}",
"loadFailed": "Could not read the project directory."
+ },
+ "editWorker": {
+ "title": "Edit worker",
+ "submit": "Save",
+ "closeAria": "Close edit worker dialog",
+ "labelLabel": "Label",
+ "labelHint": "The label uniquely identifies this worker inside the team. Use letters, numbers, hyphens and underscores only; after saving, the Lead and other references locate the worker by the new label.",
+ "labelHintAria": "About worker label",
+ "labelPlaceholder": "Worker label (leave empty to keep)",
+ "labelInvalid": "Label may only contain letters, numbers, hyphens and underscores",
+ "duplicateLabel": "Label {{label}} is already used by another worker in this team",
+ "saveFailed": "Failed to save. Please try again.",
+ "labelLocked": "This worker's label is referenced by an active plugin team plan and can't be changed until the plan finishes. Change the role name, or release the worker first."
}
},
"splitGroup": {
@@ -17304,5 +17348,10 @@
"groupHint": "When off, all tasks routed through this group use standard speed, including Ultrafast.",
"pending": "Some computers have not confirmed the setting. Keep them connected and update group computers that do not support this setting.",
"saveFailed": "The setting may be saved, but some running tasks have not confirmed standard speed. Check the connection and retry."
+ },
+ "attachmentAccessConfirmation": {
+ "title": "Confirm Attachment Access",
+ "message": "Cindy cannot read this attachment. Select the original file to continue sending this message. Cancelling keeps your draft.",
+ "button": "Use Original File"
}
}
diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.json
index be039262b5..f46a86cfaf 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -3,7 +3,8 @@
"openDashboard": "DeepSeek の使用量ページを開く",
"deepSeek": {
"balanceLine": "残高 {{total}}(チャージ {{toppedUp}} / 付与 {{granted}})",
- "chipBalance": "残高 {{balance}}"
+ "chipBalance": "残高 {{balance}}",
+ "unavailable": "この DeepSeek アカウントは現在利用できません。使用量ページでアカウントを確認してください。"
},
"zhipuCodingPlan": {
"usage": "Zhipu プランの使用量を見る",
@@ -1092,7 +1093,8 @@
"REMOTE_AGENT_SHARE_PAUSED": "モデルは切り替わっていません:共有した人があなたへの共有を一時停止しました。別のモデルを選んでください。",
"REMOTE_AGENT_SHARE_REMOVED": "モデルは切り替わっていません:この共有は利用できなくなりました(共有した人が削除したか、あなたが退出しました)。別のモデルを選んでください。",
"REMOTE_AGENT_SHARE_UNAVAILABLE": "モデルは切り替わっていません:共有されたプロバイダーは一時的に利用できません(共有した人のパソコンがオフラインか、共有が一時的にオフになっています)。後でもう一度試すか、別のモデルを選んでください。",
- "SSH_HOST_KEY_MISMATCH": "SSH ホスト鍵が変更されました"
+ "SSH_HOST_KEY_MISMATCH": "SSH ホスト鍵が変更されました",
+ "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy が元の添付ファイルを読み取れないため、メッセージは送信されていません。「ダウンロード」などアクセス可能なフォルダーにコピーを保存し、元の添付ファイルを削除してから、添付ボタンでコピーを追加し、再送信してください。"
},
"providerError": {
"AUTH_INVALID": "API キーが無効か期限切れです(401)。キーを確認して再試行してください",
@@ -3322,7 +3324,12 @@
"testing": "テスト中…",
"ok": "接続に成功しました({{ms}}ms)",
"needFields": "先にベース URL と少なくとも 1 つのモデル ID を入力してください",
- "unsupportedProtocol": "接続テストはこのモデルプロトコルに対応していません"
+ "unsupportedProtocol": "接続テストはこのモデルプロトコルに対応していません",
+ "inconclusive": "接続を確認できませんでした。アドレスやネットワークを確認してから再試行してください。前のリクエストが実行済みの可能性があります。",
+ "exhausted": "すべての候補を試しましたが、接続できませんでした。",
+ "costHint": "テストでは短い生成リクエストを送信し、少額の料金が発生する場合があります。",
+ "details": "試行結果を表示",
+ "stop": "テストを停止"
},
"fetch": {
"button": "モデル一覧を取得",
@@ -3564,7 +3571,8 @@
"compatibility": "互換モード",
"compatibilityHint": "互換モードでは動作が不安定になったり、一部の機能が正常に動作しない場合があります。経験のあるユーザー向けです。",
"matching": "ネイティブ対応",
- "unknown": "プロトコル未確認"
+ "unknown": "プロトコル未確認",
+ "automatic": "自動選択"
},
"lifecycle": {
"alpha": "試用版",
@@ -3912,7 +3920,11 @@
"manualModel": "モデル ID(自動取得できない場合)",
"modelTypeAutomatic": "自動判別",
"manualModelTypeHint": "同じ ID で種類を更新できます。自動判別を選ぶと、カタログの種類に戻ります。",
- "mediaOnlyTestHint": "この接続にはチャット以外のモデルのみが含まれています。モデル一覧の取得でカタログへのアクセスを確認できます。ここではモデルの実行はテストしません。"
+ "mediaOnlyTestHint": "この接続にはチャット以外のモデルのみが含まれています。モデル一覧の取得でカタログへのアクセスを確認できます。ここではモデルの実行はテストしません。",
+ "manualAdd": "モデルを手動で追加",
+ "manualId": "モデル ID",
+ "saveProvider": "プロバイダーを保存",
+ "removeModel": "モデルを削除"
},
"byok": {
"managed": "組織が接続とモデルを管理",
@@ -3940,6 +3952,17 @@
"saveFailed": "モデルを追加できませんでした。このページを開き直して再試行してください。",
"manualSource": "手動追加",
"manualHint": "プロバイダーが提供する音声モデル ID を入力してください。"
+ },
+ "detection": {
+ "keyRequired": "API キーを入力して続けてください。",
+ "authRejected": "認証できませんでした。URL と API キーを確認してください。変更すると自動的に再試行します。",
+ "hint": "URL と API キーを入力するとプロバイダーを識別します。保存後、接続の編集でプロトコルを変更できます。",
+ "pending": "プロバイダーを識別中…",
+ "matched": "{{name}} として識別されました",
+ "ambiguous": "複数の設定が一致しました。カスタム設定を続けるか、プロバイダーを選択してください。",
+ "custom": "カスタム設定を続けます。モデル一覧を取得するか、手動で追加できます。",
+ "configure": "設定に進む",
+ "keepCustom": "カスタム設定を続ける"
}
},
"experimental": {
@@ -8885,7 +8908,8 @@
"terminateConfirmTitle": "{{name}} プロセスを終了しますか?",
"terminateConfirmDescription": "この Agent プロセスを強制終了します。このプロセスを使用しているすべてのタスクが中断されます。影響を受けたタスクでメッセージを送信すると、必要に応じて Agent を再起動できます。",
"terminated": "{{name}} プロセスを終了しました",
- "terminateFailed": "プロセスを終了できませんでした。すでに終了している可能性があります。リストは次回のサンプリングで自動的に更新されます"
+ "terminateFailed": "プロセスを終了できませんでした。すでに終了している可能性があります。リストは次回のサンプリングで自動的に更新されます",
+ "sessionDetail": "タスク:{{title}}"
}
},
"update": {
@@ -11734,7 +11758,9 @@
"piTransportClosed": "リモート Pi の接続が切断されました(SSH チャンネルが閉じました)。リモートのタスクは実行中のままです。再接続すると続行できます。",
"piManagerUnavailable": "リモート Pi マネージャーが準備できていません。しばらくして再試行してください。失敗が続く場合は「設定 → リモートマシン」で Pi を再インストールしてください。",
"piBundledNodeMissing": "リモートホストに実行環境(Node.js)がありません。「設定 → リモートマシン」でホストを展開し、まず Claude Code または Codex の「インストール」をクリックしてください(Node.js もインストールされます)。その後 Pi タスクを開始してください。",
- "contextOverflow": "このメッセージ自体がモデルのコンテキスト上限を超えているため、同じセッション内で自動的に新しいエージェントセッションへ引き継げません。入力を短くするか大きな添付を外してから再試行してください。"
+ "contextOverflow": "このメッセージ自体がモデルのコンテキスト上限を超えているため、同じセッション内で自動的に新しいエージェントセッションへ引き継げません。入力を短くするか大きな添付を外してから再試行してください。",
+ "attachmentAccessDeniedTitle": "Cindy が元の添付ファイルを読み取れないため、メッセージは送信されていません。",
+ "attachmentAccessDeniedRecovery": "「ダウンロード」などアクセス可能なフォルダーにコピーを保存し、元の添付ファイルを削除してから、添付ボタンでコピーを追加し、再送信してください。"
},
"backgroundActivity": {
"status": "バックグラウンドのサブタスクが実行中、モデル使用量を消費しています…",
@@ -12431,7 +12457,8 @@
"REMOTE_AGENT_GROUP_UNAVAILABLE": "プロバイダーグループ内のパソコンは現在このセッションを実行できません。オフライン、割り当て停止中、クールダウン中、またはこのモデルがない可能性があります。このプロバイダーの「リモートと共有」ページでグループを確認してください。",
"REMOTE_AGENT_DEVICE_LIMIT": "このデバイスのリモートセッション数が上限に達しました。不要なセッションをアーカイブするか、提供者に「リモートと共有」で上限の変更を依頼してください。",
"REMOTE_AGENT_TOTAL_LIMIT": "提供者のパソコンのリモートセッション総数が上限に達しました。提供者に不要なセッションの解放、または「リモートと共有」での上限変更を依頼してください。",
- "REMOTE_AGENT_RESUME_LOST": "相手のパソコンでのこれまでの会話に再接続できなかったため、Agent はその文脈なしで続行します。"
+ "REMOTE_AGENT_RESUME_LOST": "相手のパソコンでのこれまでの会話に再接続できなかったため、Agent はその文脈なしで続行します。",
+ "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy が元の添付ファイルを読み取れないため、メッセージは送信されていません。「ダウンロード」などアクセス可能なフォルダーにコピーを保存し、元の添付ファイルを削除してから、添付ボタンでコピーを追加し、再送信してください。"
},
"generatedFiles": {
"title": "このメッセージで作成されたファイル",
@@ -13307,7 +13334,10 @@
"treeLoading": "ファイルを読み込み中…",
"treeAction": {
"collapseAll": "すべて折りたたむ",
- "refresh": "更新"
+ "refresh": "更新",
+ "showIgnoredDirs": "無視されるディレクトリを表示",
+ "hideIgnoredDirs": "無視されるディレクトリを隠す",
+ "showIgnoredDirsUnsupported": "相手デバイスの {{appName}} のバージョンが古く、無視されるディレクトリを表示できません"
},
"treeMenu": {
"newFile": "新規ファイル",
@@ -15424,7 +15454,8 @@
"executionDevice": "{{device}} で実行",
"deviceUnreachable": "状態を取得できません",
"unknownDevice": "別のコンピューター",
- "archiveRemoteWorkerConfirmDesc": "この協同から外し、{{device}} で進行中のラウンドを停止します。{{device}} 上のタスク、履歴、ファイルは保持され「協同は終了しました」と表示されるので、そちらで引き続き確認できます。"
+ "archiveRemoteWorkerConfirmDesc": "この協同から外し、{{device}} で進行中のラウンドを停止します。{{device}} 上のタスク、履歴、ファイルは保持され「協同は終了しました」と表示されるので、そちらで引き続き確認できます。",
+ "editWorkerAria": "Worker {{name}} を編集"
},
"split": {
"leadLabel": "Lead ({{agent}})",
@@ -15455,6 +15486,19 @@
"detachedHead": "Detached HEAD · {{sha}}",
"directDetached": "{{project}} の {{branch}} で直接変更します",
"loadFailed": "プロジェクトのディレクトリを読み取れませんでした。"
+ },
+ "editWorker": {
+ "title": "Worker を編集",
+ "submit": "保存",
+ "closeAria": "Worker 編集ダイアログを閉じる",
+ "labelLabel": "識別子",
+ "labelHint": "識別子はチーム内でこの Worker を一意に識別するために使います。使用できるのは英数字・ハイフン・アンダースコアのみです。保存後、Lead などの参照は新しい識別子で Worker を特定します。",
+ "labelHintAria": "識別子について",
+ "labelPlaceholder": "Worker 識別子(空欄なら変更しません)",
+ "labelInvalid": "識別子は英数字・ハイフン・アンダースコアのみ使用できます",
+ "duplicateLabel": "識別子 {{label}} はこのチームの別の Worker が使用しています",
+ "saveFailed": "保存に失敗しました。もう一度お試しください。",
+ "labelLocked": "この Worker の識別子は進行中のプラグインのチーム計画から参照されているため、計画の完了まで変更できません。役割名の変更か、先に Worker を解放してください。"
}
},
"splitGroup": {
@@ -17250,5 +17294,10 @@
"groupHint": "オフにすると、このグループ経由のすべてのタスクは通常速度になります。Ultrafast も対象です。",
"pending": "一部のコンピューターが設定を確認していません。接続を維持し、この設定に対応していないグループ内のコンピューターを更新してください。",
"saveFailed": "設定は保存された可能性がありますが、一部の実行中タスクが通常速度への切り替えを確認していません。接続を確認して再試行してください。"
+ },
+ "attachmentAccessConfirmation": {
+ "title": "添付ファイルへのアクセスを確認",
+ "message": "Cindy がこの添付ファイルを読み取れません。元のファイルを選択すると、このメッセージの送信を続行します。キャンセルすると下書きが保持されます。",
+ "button": "元のファイルを使用"
}
}
diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.json
index af6561047c..8684f8a7a4 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -3,7 +3,8 @@
"openDashboard": "DeepSeek 사용량 페이지 열기",
"deepSeek": {
"balanceLine": "잔액 {{total}} (충전 {{toppedUp}} / 증여 {{granted}})",
- "chipBalance": "잔액 {{balance}}"
+ "chipBalance": "잔액 {{balance}}",
+ "unavailable": "이 DeepSeek 계정은 현재 사용할 수 없습니다. 사용량 페이지에서 계정을 확인하세요."
},
"zhipuCodingPlan": {
"usage": "Zhipu 플랜 사용량 보기",
@@ -1092,7 +1093,8 @@
"REMOTE_AGENT_SHARE_PAUSED": "모델이 바뀌지 않았습니다: 공유한 사람이 나에 대한 공유를 일시 중지했습니다. 다른 모델을 선택하세요.",
"REMOTE_AGENT_SHARE_REMOVED": "모델이 바뀌지 않았습니다: 이 공유는 더 이상 사용할 수 없습니다(공유한 사람이 삭제했거나 내가 나갔습니다). 다른 모델을 선택하세요.",
"REMOTE_AGENT_SHARE_UNAVAILABLE": "모델이 바뀌지 않았습니다: 공유된 제공자를 일시적으로 사용할 수 없습니다(공유한 사람의 컴퓨터가 오프라인이거나 공유가 잠시 꺼져 있습니다). 나중에 다시 시도하거나 다른 모델을 선택하세요.",
- "SSH_HOST_KEY_MISMATCH": "SSH 호스트 키가 변경됨"
+ "SSH_HOST_KEY_MISMATCH": "SSH 호스트 키가 변경됨",
+ "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy가 원본 첨부 파일을 읽을 수 없어 메시지가 전송되지 않았습니다. 다운로드 등 접근 가능한 폴더에 사본을 저장하고, 원본 첨부 파일을 제거한 뒤 첨부 버튼으로 사본을 추가하여 다시 전송하세요."
},
"providerError": {
"AUTH_INVALID": "API 키가 유효하지 않거나 만료되었습니다(401). 키를 확인한 후 다시 시도하세요",
@@ -3322,7 +3324,12 @@
"testing": "테스트 중…",
"ok": "연결 성공 ({{ms}}ms)",
"needFields": "먼저 기본 URL과 모델 ID를 하나 이상 입력하세요",
- "unsupportedProtocol": "연결 테스트는 이 모델 프로토콜을 지원하지 않습니다"
+ "unsupportedProtocol": "연결 테스트는 이 모델 프로토콜을 지원하지 않습니다",
+ "inconclusive": "연결을 확인하지 못했습니다. 주소나 네트워크를 확인한 후 다시 시도하세요. 이전 요청이 실행되었을 수 있습니다.",
+ "exhausted": "모든 후보 인터페이스를 시도했지만 연결하지 못했습니다.",
+ "costHint": "테스트는 짧은 생성 요청을 보내며 소액의 요금이 발생할 수 있습니다.",
+ "details": "시도 결과 보기",
+ "stop": "테스트 중지"
},
"fetch": {
"button": "모델 목록 가져오기",
@@ -3564,7 +3571,8 @@
"compatibility": "호환 모드",
"compatibilityHint": "호환 모드에서는 작동이 불안정하거나 일부 기능에 문제가 생길 수 있습니다. 숙련된 사용자에게 권장합니다.",
"matching": "기본 지원",
- "unknown": "프로토콜 미확인"
+ "unknown": "프로토콜 미확인",
+ "automatic": "자동 선택"
},
"lifecycle": {
"alpha": "체험판",
@@ -3912,7 +3920,11 @@
"manualModel": "모델 ID (자동으로 가져올 수 없는 경우)",
"modelTypeAutomatic": "자동 감지",
"manualModelTypeHint": "같은 ID로 유형을 변경할 수 있습니다. 자동 감지를 선택하면 카탈로그의 유형으로 돌아갑니다.",
- "mediaOnlyTestHint": "이 연결에는 채팅 이외의 모델만 있습니다. 모델 목록을 가져와 카탈로그 접근을 확인할 수 있습니다. 여기서는 모델 실행을 테스트하지 않습니다."
+ "mediaOnlyTestHint": "이 연결에는 채팅 이외의 모델만 있습니다. 모델 목록을 가져와 카탈로그 접근을 확인할 수 있습니다. 여기서는 모델 실행을 테스트하지 않습니다.",
+ "manualAdd": "모델 직접 추가",
+ "manualId": "모델 ID",
+ "saveProvider": "제공자 저장",
+ "removeModel": "모델 제거"
},
"byok": {
"managed": "조직에서 연결 및 모델 관리",
@@ -3940,6 +3952,17 @@
"saveFailed": "모델을 추가하지 못했습니다. 이 페이지를 다시 열고 시도해 주세요.",
"manualSource": "직접 추가",
"manualHint": "제공자가 제공한 음성 모델 ID를 입력하세요."
+ },
+ "detection": {
+ "keyRequired": "API 키를 입력해 계속하세요.",
+ "authRejected": "인증하지 못했습니다. URL과 API 키를 확인하세요. 수정하면 자동으로 다시 시도합니다.",
+ "hint": "URL과 API 키를 입력하면 제공자를 식별합니다. 저장한 연결을 편집하여 프로토콜을 변경할 수 있습니다.",
+ "pending": "제공자 식별 중…",
+ "matched": "{{name}}(으)로 식별됨",
+ "ambiguous": "여러 설정이 일치합니다. 사용자 지정 설정을 계속하거나 제공자를 선택하세요.",
+ "custom": "사용자 지정 설정을 계속합니다. 모델 목록을 가져오거나 직접 추가할 수 있습니다.",
+ "configure": "설정으로 이동",
+ "keepCustom": "사용자 지정 계속"
}
},
"experimental": {
@@ -8885,7 +8908,8 @@
"terminateConfirmTitle": "{{name}} 프로세스를 종료할까요?",
"terminateConfirmDescription": "이 Agent 프로세스를 강제 종료합니다. 이 프로세스를 사용하는 모든 작업이 중단되며, 영향을 받은 작업에서 메시지를 보내면 필요할 때 Agent를 다시 시작할 수 있습니다.",
"terminated": "{{name}} 프로세스를 종료했습니다",
- "terminateFailed": "프로세스를 종료하지 못했습니다. 이미 종료되었을 수 있습니다. 목록은 다음 샘플링 때 자동으로 업데이트됩니다."
+ "terminateFailed": "프로세스를 종료하지 못했습니다. 이미 종료되었을 수 있습니다. 목록은 다음 샘플링 때 자동으로 업데이트됩니다.",
+ "sessionDetail": "작업: {{title}}"
}
},
"update": {
@@ -11734,7 +11758,9 @@
"piTransportClosed": "원격 Pi 연결이 끊어졌습니다(SSH 채널 닫힘). 원격 작업은 계속 실행 중입니다. 다시 연결하면 계속할 수 있습니다.",
"piManagerUnavailable": "원격 Pi 관리자가 준비되지 않았습니다. 잠시 후 다시 시도하세요. 계속 실패하면 「설정 → 원격 머신」에서 Pi를 다시 설치하세요.",
"piBundledNodeMissing": "원격 호스트에 런타임(Node.js)이 없습니다. 「설정 → 원격 머신」에서 호스트를 펼쳐 먼저 Claude Code 또는 Codex의 「설치」를 클릭하세요(Node.js가 함께 설치됨). 그런 다음 Pi 작업을 시작하세요.",
- "contextOverflow": "이 메시지 자체가 모델 컨텍스트 한도를 초과해서, 같은 세션에서 새 에이전트 세션으로 자동 이어갈 수 없습니다. 입력을 줄이거나 큰 첨부파일을 제거한 뒤 다시 시도하세요."
+ "contextOverflow": "이 메시지 자체가 모델 컨텍스트 한도를 초과해서, 같은 세션에서 새 에이전트 세션으로 자동 이어갈 수 없습니다. 입력을 줄이거나 큰 첨부파일을 제거한 뒤 다시 시도하세요.",
+ "attachmentAccessDeniedTitle": "Cindy가 원본 첨부 파일을 읽을 수 없어 메시지가 전송되지 않았습니다.",
+ "attachmentAccessDeniedRecovery": "다운로드 등 접근 가능한 폴더에 사본을 저장하고, 원본 첨부 파일을 제거한 뒤 첨부 버튼으로 사본을 추가하여 다시 전송하세요."
},
"backgroundActivity": {
"status": "백그라운드 하위 작업 실행 중, 모델 사용량을 소비하고 있습니다…",
@@ -12431,7 +12457,8 @@
"REMOTE_AGENT_GROUP_UNAVAILABLE": "제공자 그룹의 컴퓨터가 지금 이 세션을 실행할 수 없습니다. 모두 오프라인이거나, 배정이 일시 중지되었거나, 대기 중이거나, 이 모델이 없을 수 있습니다. 이 제공자의 원격 및 공유 페이지에서 그룹을 확인하세요.",
"REMOTE_AGENT_DEVICE_LIMIT": "이 기기의 원격 세션 수가 한도에 도달했습니다. 사용하지 않는 세션을 보관하거나 제공자에게 원격 및 공유에서 한도를 높여 달라고 요청하세요.",
"REMOTE_AGENT_TOTAL_LIMIT": "제공자 컴퓨터의 전체 원격 세션 수가 한도에 도달했습니다. 제공자에게 불필요한 세션을 해제하거나 원격 및 공유에서 한도를 높여 달라고 요청하세요.",
- "REMOTE_AGENT_RESUME_LOST": "상대 컴퓨터의 이전 대화에 다시 연결하지 못해 Agent가 그 맥락 없이 계속합니다."
+ "REMOTE_AGENT_RESUME_LOST": "상대 컴퓨터의 이전 대화에 다시 연결하지 못해 Agent가 그 맥락 없이 계속합니다.",
+ "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy가 원본 첨부 파일을 읽을 수 없어 메시지가 전송되지 않았습니다. 다운로드 등 접근 가능한 폴더에 사본을 저장하고, 원본 첨부 파일을 제거한 뒤 첨부 버튼으로 사본을 추가하여 다시 전송하세요."
},
"generatedFiles": {
"title": "이 메시지에서 생성된 파일",
@@ -13307,7 +13334,10 @@
"treeLoading": "파일 불러오는 중…",
"treeAction": {
"collapseAll": "모두 접기",
- "refresh": "새로 고침"
+ "refresh": "새로 고침",
+ "showIgnoredDirs": "무시된 디렉터리 표시",
+ "hideIgnoredDirs": "무시된 디렉터리 숨기기",
+ "showIgnoredDirsUnsupported": "상대 기기의 {{appName}} 버전이 오래되어 무시된 디렉터리를 표시할 수 없습니다"
},
"treeMenu": {
"newFile": "새 파일",
@@ -15424,7 +15454,8 @@
"executionDevice": "{{device}}에서 실행",
"deviceUnreachable": "상태를 가져올 수 없음",
"unknownDevice": "다른 컴퓨터",
- "archiveRemoteWorkerConfirmDesc": "이 협업에서 제거하고 {{device}}에서 진행 중인 라운드를 중지합니다. {{device}}의 작업, 기록, 파일은 유지되며 「협업 종료됨」으로 표시되어 그 컴퓨터에서 계속 볼 수 있습니다."
+ "archiveRemoteWorkerConfirmDesc": "이 협업에서 제거하고 {{device}}에서 진행 중인 라운드를 중지합니다. {{device}}의 작업, 기록, 파일은 유지되며 「협업 종료됨」으로 표시되어 그 컴퓨터에서 계속 볼 수 있습니다.",
+ "editWorkerAria": "Worker {{name}} 편집"
},
"split": {
"leadLabel": "Lead ({{agent}})",
@@ -15455,6 +15486,19 @@
"detachedHead": "Detached HEAD · {{sha}}",
"directDetached": "{{project}}의 {{branch}}에서 직접 수정합니다",
"loadFailed": "프로젝트 디렉터리를 읽지 못했습니다."
+ },
+ "editWorker": {
+ "title": "Worker 편집",
+ "submit": "저장",
+ "closeAria": "Worker 편집 대화상자 닫기",
+ "labelLabel": "식별자",
+ "labelHint": "식별자는 팀 안에서 이 Worker를 고유하게 식별하는 데 씁니다. 영문, 숫자, 하이픈, 밑줄만 사용할 수 있습니다. 저장하면 Lead를 비롯한 참조가 새 식별자로 Worker를 찾습니다.",
+ "labelHintAria": "식별자 안내",
+ "labelPlaceholder": "Worker 식별자(비우면 변경하지 않음)",
+ "labelInvalid": "식별자는 영문, 숫자, 하이픈, 밑줄만 사용할 수 있습니다",
+ "duplicateLabel": "식별자 {{label}}은(는) 이 팀의 다른 Worker가 사용 중입니다",
+ "saveFailed": "저장하지 못했습니다. 다시 시도해 주세요.",
+ "labelLocked": "이 Worker의 식별자는 진행 중인 플러그인 팀 계획에서 참조하고 있어 계획이 끝날 때까지 변경할 수 없습니다. 역할 이름을 바꾸거나 먼저 Worker를 릴리스하세요."
}
},
"splitGroup": {
@@ -17250,5 +17294,10 @@
"groupHint": "끄면 이 그룹을 통해 실행하는 모든 작업이 일반 속도로 실행됩니다. Ultrafast에도 적용됩니다.",
"pending": "일부 컴퓨터가 설정을 확인하지 않았습니다. 연결을 유지하고 이 설정을 지원하지 않는 그룹 컴퓨터를 업데이트하세요.",
"saveFailed": "설정은 저장되었을 수 있지만 일부 실행 중인 작업이 일반 속도 전환을 확인하지 않았습니다. 연결을 확인한 후 다시 시도하세요."
+ },
+ "attachmentAccessConfirmation": {
+ "title": "첨부 파일 접근 확인",
+ "message": "Cindy가 이 첨부 파일을 읽을 수 없습니다. 원본 파일을 선택하면 이 메시지 전송을 계속합니다. 취소하면 초안이 유지됩니다.",
+ "button": "원본 파일 사용"
}
}
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 1aebc5f077..0bdd3567d9 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -3,7 +3,8 @@
"openDashboard": "打开 DeepSeek 用量页",
"deepSeek": {
"balanceLine": "余额 {{total}}(充值 {{toppedUp}} / 赠送 {{granted}})",
- "chipBalance": "余额 {{balance}}"
+ "chipBalance": "余额 {{balance}}",
+ "unavailable": "DeepSeek 账户当前不可用于充值消耗,请打开用量页确认账户状态。"
},
"zhipuCodingPlan": {
"usage": "查看智谱套餐用量",
@@ -1092,7 +1093,8 @@
"REMOTE_AGENT_SHARE_PAUSED": "模型未切换:对方已暂停对你的分享。请换一个模型。",
"REMOTE_AGENT_SHARE_REMOVED": "模型未切换:这个分享已不可用(对方删除了分享或你已退出)。请换一个模型。",
"REMOTE_AGENT_SHARE_UNAVAILABLE": "模型未切换:分享的供应商暂时不可用(对方电脑不在线,或对方暂时关闭了分享)。请稍后再试或换一个模型。",
- "SSH_HOST_KEY_MISMATCH": "SSH 主机密钥已变化"
+ "SSH_HOST_KEY_MISMATCH": "SSH 主机密钥已变化",
+ "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy 无法读取源附件,消息未发送。请将文件另存到“下载”或其他可访问的文件夹,移除原附件,再用附件按钮添加副本后发送。"
},
"providerError": {
"AUTH_INVALID": "API 密钥无效或已过期(401),请检查密钥后重试",
@@ -3322,7 +3324,12 @@
"testing": "测试中…",
"ok": "连接成功({{ms}}ms)",
"needFields": "请先填写基础 URL 和至少一个模型 ID",
- "unsupportedProtocol": "测试连接暂不支持该模型协议"
+ "unsupportedProtocol": "测试连接暂不支持该模型协议",
+ "inconclusive": "暂时无法确认连接。请检查地址或网络后重试;上一条请求可能已执行。",
+ "exhausted": "已尝试所有候选接口,暂未找到可用连接。",
+ "costHint": "测试会发送简短生成请求,可能产生少量费用。",
+ "details": "查看尝试结果",
+ "stop": "停止测试"
},
"fetch": {
"button": "获取模型列表",
@@ -3564,7 +3571,8 @@
"compatibility": "兼容模式",
"compatibilityHint": "兼容模式可能出现运行不稳定或功能异常,建议有经验的用户使用。",
"matching": "原生支持",
- "unknown": "协议待确认"
+ "unknown": "协议待确认",
+ "automatic": "自动选择"
},
"lifecycle": {
"alpha": "试用版",
@@ -3912,7 +3920,11 @@
"manualModel": "模型 ID(无法自动获取时填写)",
"modelTypeAutomatic": "自动识别",
"manualModelTypeHint": "同一 ID 可更新类型;自动识别会恢复目录中的类型。",
- "mediaOnlyTestHint": "此连接仅含非对话模型。可获取模型列表检查目录访问,此处不验证模型调用。"
+ "mediaOnlyTestHint": "此连接仅含非对话模型。可获取模型列表检查目录访问,此处不验证模型调用。",
+ "manualAdd": "手动添加模型",
+ "manualId": "模型 ID",
+ "saveProvider": "保存供应商",
+ "removeModel": "移除模型"
},
"byok": {
"managed": "由企业管理连接与模型",
@@ -3940,6 +3952,17 @@
"saveFailed": "添加失败,请重新打开此页面后重试。",
"manualSource": "手动添加",
"manualHint": "输入供应商提供的语音模型 ID。"
+ },
+ "detection": {
+ "keyRequired": "填写 API 密钥后继续。",
+ "authRejected": "认证未通过,请检查地址和 API 密钥,修改后会自动重试。",
+ "hint": "填写地址和 API 密钥后自动识别供应商。保存后可在编辑连接中调整协议。",
+ "pending": "正在识别供应商…",
+ "matched": "已识别为 {{name}}",
+ "ambiguous": "匹配到多个配置,请继续自定义或选择供应商。",
+ "custom": "继续自定义配置,可获取模型列表或手动添加。",
+ "configure": "前往配置",
+ "keepCustom": "继续自定义"
}
},
"experimental": {
@@ -8885,7 +8908,8 @@
"terminateConfirmTitle": "终止 {{name}} 进程?",
"terminateConfirmDescription": "将强制终止该 Agent 进程,使用该进程的所有任务都会中断;之后在任一受影响任务里继续发消息,即可按需重新启动 Agent。",
"terminated": "已终止 {{name}} 进程",
- "terminateFailed": "无法终止该进程,它可能已自行退出;列表会随下一次采样自动更新"
+ "terminateFailed": "无法终止该进程,它可能已自行退出;列表会随下一次采样自动更新",
+ "sessionDetail": "任务:{{title}}"
}
},
"update": {
@@ -11734,7 +11758,9 @@
"piTransportClosed": "远端 Pi 连接已中断(SSH 通道关闭)。远端任务仍在运行,重新连接后可以继续。",
"piManagerUnavailable": "远端 Pi 管理器未就绪,请稍后重试;若持续失败请到「设置 → 远端机器」重新安装 Pi。",
"piBundledNodeMissing": "远端缺少运行环境(Node.js)。请到「设置 → 远端机器」展开该主机,先在 Claude Code 或 Codex 行点击「安装」(会附带 Node.js),再创建 Pi 任务。",
- "contextOverflow": "这条消息本身已经超过模型上下文上限,没法在当前 Agent 里自动换窗继续。请缩短输入或去掉超大附件后再试。"
+ "contextOverflow": "这条消息本身已经超过模型上下文上限,没法在当前 Agent 里自动换窗继续。请缩短输入或去掉超大附件后再试。",
+ "attachmentAccessDeniedTitle": "Cindy 无法读取源附件,消息未发送。",
+ "attachmentAccessDeniedRecovery": "请将文件另存到“下载”或其他可访问的文件夹,移除原附件,再用附件按钮添加副本后发送。"
},
"backgroundActivity": {
"status": "后台子任务运行中,模型用量仍在消耗…",
@@ -12431,7 +12457,8 @@
"REMOTE_AGENT_GROUP_UNAVAILABLE": "供应商组里的电脑现在都不能运行这个任务:可能都不在线、已暂停分配、正在冷却,或没有这个模型。可以到这个供应商的「远程与分享」页查看组内电脑。",
"REMOTE_AGENT_DEVICE_LIMIT": "这台设备保留的远程任务数已达上限。可归档暂时不用的任务,或请远程电脑的主人在“远程与分享”中提高上限。",
"REMOTE_AGENT_TOTAL_LIMIT": "远程电脑保留的任务总数已达上限。请那台电脑的主人释放暂时不用的任务,或在“远程与分享”中提高上限。",
- "REMOTE_AGENT_RESUME_LOST": "之前在那台电脑上的对话没能接上,Agent 会在没有之前上下文的情况下继续。"
+ "REMOTE_AGENT_RESUME_LOST": "之前在那台电脑上的对话没能接上,Agent 会在没有之前上下文的情况下继续。",
+ "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy 无法读取源附件,消息未发送。请将文件另存到“下载”或其他可访问的文件夹,移除原附件,再用附件按钮添加副本后发送。"
},
"generatedFiles": {
"title": "本条消息生成的文件",
@@ -13307,7 +13334,10 @@
"treeLoading": "正在加载文件…",
"treeAction": {
"collapseAll": "收起所有",
- "refresh": "刷新"
+ "refresh": "刷新",
+ "showIgnoredDirs": "显示被忽略的目录",
+ "hideIgnoredDirs": "隐藏被忽略的目录",
+ "showIgnoredDirsUnsupported": "对方设备的 {{appName}} 版本过旧,暂不支持显示被忽略的目录"
},
"treeMenu": {
"newFile": "新建文件",
@@ -15424,7 +15454,8 @@
"executionDevice": "在 {{device}} 运行",
"deviceUnreachable": "暂时无法获取状态",
"unknownDevice": "另一台电脑",
- "archiveRemoteWorkerConfirmDesc": "它会从这个协同里移除,并停止 {{device}} 上正在进行的这一轮。{{device}} 上的任务、记录和文件都会保留,标注「协同已结束」,可以在那台继续查看。"
+ "archiveRemoteWorkerConfirmDesc": "它会从这个协同里移除,并停止 {{device}} 上正在进行的这一轮。{{device}} 上的任务、记录和文件都会保留,标注「协同已结束」,可以在那台继续查看。",
+ "editWorkerAria": "编辑 Worker {{name}}"
},
"split": {
"leadLabel": "Lead ({{agent}})",
@@ -15455,6 +15486,19 @@
"detachedHead": "分离 HEAD · {{sha}}",
"directDetached": "将直接在 {{project}} 的 {{branch}} 上修改",
"loadFailed": "未能读取项目目录。"
+ },
+ "editWorker": {
+ "title": "编辑 Worker",
+ "submit": "保存",
+ "closeAria": "关闭编辑 Worker 弹窗",
+ "labelLabel": "标识",
+ "labelHint": "标识用于在团队内唯一识别这个 Worker,只能包含字母、数字、连字符和下划线;改动后 Lead 与各处引用按新标识定位。",
+ "labelHintAria": "标识说明",
+ "labelPlaceholder": "Worker 标识(留空表示不变)",
+ "labelInvalid": "标识只能包含字母、数字、连字符和下划线",
+ "duplicateLabel": "标识 {{label}} 已被本团队其他 Worker 使用",
+ "saveFailed": "保存失败,请重试",
+ "labelLocked": "该 Worker 的标识已被活跃的插件团队计划引用,计划结束前不能修改;可改角色名,或先释放该 Worker。"
}
},
"splitGroup": {
@@ -17250,5 +17294,10 @@
"groupHint": "关闭后,经此组运行的任务使用普通模式,也适用于 Ultrafast。",
"pending": "部分电脑尚未确认设置。请保持连接,并更新不支持此设置的组内电脑。",
"saveFailed": "设置可能已保存,但运行中的任务尚未全部确认切换为普通模式。请检查连接后重试。"
+ },
+ "attachmentAccessConfirmation": {
+ "title": "确认附件访问",
+ "message": "Cindy 无法读取这个附件。请选择原文件,确认后继续发送这条消息;取消会保留草稿。",
+ "button": "使用原文件"
}
}
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 315b7038a8..425995c03f 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
@@ -3,7 +3,8 @@
"openDashboard": "開啟 DeepSeek 用量頁",
"deepSeek": {
"balanceLine": "餘額 {{total}}(儲值 {{toppedUp}} / 贈送 {{granted}})",
- "chipBalance": "餘額 {{balance}}"
+ "chipBalance": "餘額 {{balance}}",
+ "unavailable": "DeepSeek 帳戶目前無法用於儲值消耗,請開啟用量頁確認帳戶狀態。"
},
"zhipuCodingPlan": {
"usage": "查看智譜套餐用量",
@@ -1092,7 +1093,8 @@
"REMOTE_AGENT_SHARE_PAUSED": "模型未切換:對方已暫停對你的分享。請換一個模型。",
"REMOTE_AGENT_SHARE_REMOVED": "模型未切換:這個分享已無法使用(對方刪除了分享或你已退出)。請換一個模型。",
"REMOTE_AGENT_SHARE_UNAVAILABLE": "模型未切換:分享的供應商暫時無法使用(對方電腦不在線,或對方暫時關閉了分享)。請稍後再試或換一個模型。",
- "SSH_HOST_KEY_MISMATCH": "SSH 主機金鑰已變更"
+ "SSH_HOST_KEY_MISMATCH": "SSH 主機金鑰已變更",
+ "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy 無法讀取來源附件,訊息未傳送。請將檔案另存到「下載」或其他可存取的資料夾,移除原附件,再用附件按鈕加入副本後傳送。"
},
"providerError": {
"AUTH_INVALID": "API 金鑰無效或已過期(401),請檢查金鑰後重試",
@@ -3322,7 +3324,12 @@
"testing": "測試中…",
"ok": "連線成功({{ms}}ms)",
"needFields": "請先填寫基礎 URL 和至少一個模型 ID",
- "unsupportedProtocol": "測試連線暫不支援此模型協定"
+ "unsupportedProtocol": "測試連線暫不支援此模型協定",
+ "inconclusive": "暫時無法確認連線。請檢查位址或網路後重試;上一個請求可能已執行。",
+ "exhausted": "已嘗試所有候選介面,暫未找到可用連線。",
+ "costHint": "測試會傳送簡短生成請求,可能產生少量費用。",
+ "details": "查看嘗試結果",
+ "stop": "停止測試"
},
"fetch": {
"button": "獲取模型列表",
@@ -3564,7 +3571,8 @@
"compatibility": "相容模式",
"compatibilityHint": "相容模式可能出現執行不穩定或功能異常,建議有經驗的使用者使用。",
"matching": "原生支援",
- "unknown": "協定待確認"
+ "unknown": "協定待確認",
+ "automatic": "自動選擇"
},
"lifecycle": {
"alpha": "試用版",
@@ -3912,7 +3920,11 @@
"manualModel": "模型 ID(無法自動取得時填寫)",
"modelTypeAutomatic": "自動辨識",
"manualModelTypeHint": "相同 ID 可更新類型;自動辨識會恢復目錄中的類型。",
- "mediaOnlyTestHint": "此連線僅含非對話模型。可取得模型列表檢查目錄存取,此處不驗證模型呼叫。"
+ "mediaOnlyTestHint": "此連線僅含非對話模型。可取得模型列表檢查目錄存取,此處不驗證模型呼叫。",
+ "manualAdd": "手動新增模型",
+ "manualId": "模型 ID",
+ "saveProvider": "儲存供應商",
+ "removeModel": "移除模型"
},
"byok": {
"managed": "由企業管理連線與模型",
@@ -3940,6 +3952,17 @@
"saveFailed": "新增失敗,請重新開啟此頁面後重試。",
"manualSource": "手動新增",
"manualHint": "輸入供應商提供的語音模型 ID。"
+ },
+ "detection": {
+ "keyRequired": "填寫 API 金鑰後繼續。",
+ "authRejected": "驗證未通過,請檢查位址和 API 金鑰,修改後會自動重試。",
+ "hint": "填寫網址和 API 金鑰後自動識別供應商。儲存後可在編輯連線中調整協定。",
+ "pending": "正在識別供應商…",
+ "matched": "已識別為 {{name}}",
+ "ambiguous": "符合多個設定,請繼續自訂或選擇供應商。",
+ "custom": "繼續自訂設定,可取得模型清單或手動新增。",
+ "configure": "前往設定",
+ "keepCustom": "繼續自訂"
}
},
"experimental": {
@@ -8885,7 +8908,8 @@
"terminateConfirmTitle": "終止 {{name}} 處理程序?",
"terminateConfirmDescription": "將強制終止該 Agent 處理程序,使用該處理程序的所有任務都會中斷;之後在任一受影響任務裡繼續發訊息,即可按需重新啟動 Agent。",
"terminated": "已終止 {{name}} 處理程序",
- "terminateFailed": "無法終止該處理程序,它可能已自行退出;列表會隨下一次取樣自動更新"
+ "terminateFailed": "無法終止該處理程序,它可能已自行退出;列表會隨下一次取樣自動更新",
+ "sessionDetail": "任務:{{title}}"
}
},
"update": {
@@ -11733,7 +11757,9 @@
"piTransportClosed": "遠端 Pi 連線已中斷(SSH 通道關閉)。遠端任務仍在執行,重新連線後可以繼續。",
"piManagerUnavailable": "遠端 Pi 管理器未就緒,請稍後重試;若持續失敗請到「設定 → 遠端機器」重新安裝 Pi。",
"piBundledNodeMissing": "遠端缺少執行環境(Node.js)。請到「設定 → 遠端機器」展開該主機,先在 Claude Code 或 Codex 列點擊「安裝」(會附帶 Node.js),再建立 Pi 任務。",
- "contextOverflow": "這則訊息本身已超過模型上下文上限,無法在目前 Agent 中自動換窗繼續。請縮短輸入或去掉過大附件後再試。"
+ "contextOverflow": "這則訊息本身已超過模型上下文上限,無法在目前 Agent 中自動換窗繼續。請縮短輸入或去掉過大附件後再試。",
+ "attachmentAccessDeniedTitle": "Cindy 無法讀取來源附件,訊息未傳送。",
+ "attachmentAccessDeniedRecovery": "請將檔案另存到「下載」或其他可存取的資料夾,移除原附件,再用附件按鈕加入副本後傳送。"
},
"backgroundActivity": {
"status": "後臺子任務執行中,模型用量仍在消耗…",
@@ -12430,7 +12456,8 @@
"REMOTE_AGENT_GROUP_UNAVAILABLE": "供應商組裡的電腦現在都不能執行這個任務:可能都離線、已暫停分配、正在冷卻,或沒有這個模型。可以到這個供應商的「遠端與分享」頁查看組內電腦。",
"REMOTE_AGENT_DEVICE_LIMIT": "這台裝置保留的遠端任務數已達上限。可封存暫時不用的任務,或請遠端電腦的主人在「遠端與分享」中提高上限。",
"REMOTE_AGENT_TOTAL_LIMIT": "遠端電腦保留的任務總數已達上限。請那台電腦的主人釋放暫時不用的任務,或在「遠端與分享」中提高上限。",
- "REMOTE_AGENT_RESUME_LOST": "之前在那台電腦上的對話沒能接上,Agent 會在沒有之前上下文的情況下繼續。"
+ "REMOTE_AGENT_RESUME_LOST": "之前在那台電腦上的對話沒能接上,Agent 會在沒有之前上下文的情況下繼續。",
+ "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy 無法讀取來源附件,訊息未傳送。請將檔案另存到「下載」或其他可存取的資料夾,移除原附件,再用附件按鈕加入副本後傳送。"
},
"generatedFiles": {
"title": "本條訊息生成的檔案",
@@ -13307,7 +13334,10 @@
"treeLoading": "正在載入檔案…",
"treeAction": {
"collapseAll": "收起所有",
- "refresh": "重新整理"
+ "refresh": "重新整理",
+ "showIgnoredDirs": "顯示被忽略的目錄",
+ "hideIgnoredDirs": "隱藏被忽略的目錄",
+ "showIgnoredDirsUnsupported": "對方裝置的 {{appName}} 版本過舊,暫不支援顯示被忽略的目錄"
},
"treeMenu": {
"newFile": "新建檔案",
@@ -15424,7 +15454,8 @@
"executionDevice": "在 {{device}} 執行",
"deviceUnreachable": "暫時無法取得狀態",
"unknownDevice": "另一台電腦",
- "archiveRemoteWorkerConfirmDesc": "它會從這個協同裡移除,並停止 {{device}} 上正在進行的這一輪。{{device}} 上的任務、記錄和檔案都會保留,標註「協同已結束」,可以在那台繼續查看。"
+ "archiveRemoteWorkerConfirmDesc": "它會從這個協同裡移除,並停止 {{device}} 上正在進行的這一輪。{{device}} 上的任務、記錄和檔案都會保留,標註「協同已結束」,可以在那台繼續查看。",
+ "editWorkerAria": "編輯 Worker {{name}}"
},
"split": {
"leadLabel": "Lead ({{agent}})",
@@ -15455,6 +15486,19 @@
"detachedHead": "分離 HEAD · {{sha}}",
"directDetached": "將直接在 {{project}} 的 {{branch}} 上修改",
"loadFailed": "無法讀取專案目錄。"
+ },
+ "editWorker": {
+ "title": "編輯 Worker",
+ "submit": "儲存",
+ "closeAria": "關閉編輯 Worker 彈窗",
+ "labelLabel": "標識",
+ "labelHint": "標識用於在團隊內唯一識別這個 Worker,只能包含字母、數字、連字號與底線;改動後 Lead 與各處引用會依新標識定位。",
+ "labelHintAria": "標識說明",
+ "labelPlaceholder": "Worker 標識(留空表示不變更)",
+ "labelInvalid": "標識只能包含字母、數字、連字號與底線",
+ "duplicateLabel": "標識 {{label}} 已被本團隊其他 Worker 使用",
+ "saveFailed": "儲存失敗,請重試",
+ "labelLocked": "該 Worker 的標識已被活躍的插件團隊計畫引用,計畫結束前不能修改;可改角色名,或先釋放該 Worker。"
}
},
"splitGroup": {
@@ -17250,5 +17294,10 @@
"groupHint": "關閉後,經此組執行的任務使用普通模式,也適用於 Ultrafast。",
"pending": "部分電腦尚未確認設定。請保持連線,並更新不支援此設定的組內電腦。",
"saveFailed": "設定可能已儲存,但執行中的任務尚未全部確認切換為普通模式。請檢查連線後重試。"
+ },
+ "attachmentAccessConfirmation": {
+ "title": "確認附件存取",
+ "message": "Cindy 無法讀取這個附件。請選擇原始檔案,確認後繼續傳送這則訊息;取消會保留草稿。",
+ "button": "使用原始檔案"
}
}
diff --git a/apps/desktop/src/renderer/lib/providerAccountUsageView.ts b/apps/desktop/src/renderer/lib/providerAccountUsageView.ts
index 1b63c39dae..b449d2bef0 100644
--- a/apps/desktop/src/renderer/lib/providerAccountUsageView.ts
+++ b/apps/desktop/src/renderer/lib/providerAccountUsageView.ts
@@ -9,8 +9,14 @@
import type { ProviderView } from '@cindy/model-providers';
const DEEPSEEK_ORIGIN = 'https://api.deepseek.com';
-const ZHIPU_ANTHROPIC_BASE = 'https://open.bigmodel.cn/api/anthropic';
-const ZHIPU_CODING_PREFIX = 'https://open.bigmodel.cn/api/coding/';
+const ZHIPU_ANTHROPIC_BASES = [
+ 'https://open.bigmodel.cn/api/anthropic',
+ 'https://api.z.ai/api/anthropic',
+];
+const ZHIPU_CODING_PREFIXES = [
+ 'https://open.bigmodel.cn/api/coding/',
+ 'https://api.z.ai/api/coding/',
+];
function routingUpstreams(provider: ProviderView | undefined | null): string[] {
return Object.values(provider?.routing ?? {}).map(
@@ -31,12 +37,15 @@ export function hasDeepSeekOfficialRouteView(provider: ProviderView | undefined
});
}
-/** 是否智谱 GLM Coding Plan 接入(/api/anthropic 或 /api/coding/*);按量付费不算。 */
+/** 是否智谱 GLM Coding Plan 接入(CN 与 Global,/api/anthropic 或 /api/coding/*);按量付费不算。 */
export function isZhipuCodingPlanProviderView(provider: ProviderView | undefined | null): boolean {
if (!provider) return false;
- if (provider.id === 'zhipu-coding-plan-cn') return true;
+ if (provider.id === 'zhipu-coding-plan-cn' || provider.id === 'zai-coding-plan-global') {
+ return true;
+ }
return routingUpstreams(provider).some(
(upstream) =>
- upstream === ZHIPU_ANTHROPIC_BASE || upstream.startsWith(ZHIPU_CODING_PREFIX),
+ ZHIPU_ANTHROPIC_BASES.includes(upstream)
+ || ZHIPU_CODING_PREFIXES.some((prefix) => upstream.startsWith(prefix)),
);
}
diff --git a/apps/desktop/src/shared/providerAccountUsage.ts b/apps/desktop/src/shared/providerAccountUsage.ts
index 3ea047d7ba..38be2029d3 100644
--- a/apps/desktop/src/shared/providerAccountUsage.ts
+++ b/apps/desktop/src/shared/providerAccountUsage.ts
@@ -15,6 +15,12 @@ export interface ProviderAccountUsageRequest {
providerId: string;
/** 手动刷新(设置页刷新按钮)。绕过 TTL 缓存但仍受最小间隔节流。 */
forceRefresh?: boolean;
+ /**
+ * 会话所在引擎(输入框 chip 传入):同一供应商各引擎可用独立密钥(不同账户),
+ * 传入后只读该引擎路由的 key,余额/配额才能对准当前会话用的账户。缺省
+ * (设置页供应商级视图)按 claude-code → codex → pi 取第一个指向官方端点的密钥。
+ */
+ agent?: AgentKind;
}
export interface DeepSeekBalanceLine {
@@ -81,6 +87,8 @@ export type ProviderAccountUsageResult =
stale: boolean;
error?: ProviderAccountUsageError;
retryAt?: number;
+ /** 本次查询实际使用的 runtime;设置页用它标注余额来自哪个引擎的密钥。 */
+ agent?: AgentKind;
};
/**