AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
fix: synchronize ACP connection and login status
tianma-if5d6061aa1021
diff --git a/apps/desktop/src/main/acp-host.mjs b/apps/desktop/src/main/acp-host.mjsindex 3b4241fa..73c2c703 100644--- a/apps/desktop/src/main/acp-host.mjs+++ b/apps/desktop/src/main/acp-host.mjs@@ -692,6 +692,7 @@ export function createAcpHostRuntime(options = {}) {const rmImpl = options.rm ?? rm;const version = options.clientVersion ?? clientVersion();const handshakeTimeoutMs = options.handshakeTimeoutMs ?? HANDSHAKE_TIMEOUT_MS;+ const authenticationTimeoutMs = options.authenticationTimeoutMs ?? 5 * 60_000;const commandDeps = options;const manager = options.adapterManager ?? (options.adapterStore ? createAcpAdapterManager({ root: options.adapterStore, executablePath: options.executablePath }) : null);const active = new Map();@@ -725,6 +726,7 @@ export function createAcpHostRuntime(options = {}) {const cwd = await createAcpWorkspace(mkdtempImpl, options.tmpRoot);let child = null;let authMethods = [];+ let authenticationPending = false;const abort = () => stopChild(child);signal?.addEventListener("abort", abort, { once: true });try {@@ -738,7 +740,9 @@ export function createAcpHostRuntime(options = {}) {authMethods = publicAuthMethods(initialized);if (authMethodId) {if (!authMethods.some((method) => method.id === authMethodId)) throw new Error("invalid_auth_method");+ authenticationPending = true;await connection.authenticate({ methodId: authMethodId });+ authenticationPending = false;}const session = await connection.newSession({ cwd, mcpServers });if (signal?.aborted) throw Object.assign(new Error("connection_timeout"), { code: "TIMEOUT" });@@ -753,6 +757,7 @@ export function createAcpHostRuntime(options = {}) {};} catch (error) {if (authMethods.length && error && typeof error === "object") error.authMethods = authMethods;+ if (authenticationPending && error && typeof error === "object") error.authenticationPending = true;abort();await removeAcpWorkspace(cwd, rmImpl);throw error;@@ -769,7 +774,7 @@ export function createAcpHostRuntime(options = {}) {return await operation(controller.signal);} catch (error) {if (controller.signal.aborted && !isAuthRequiredError(error) && error?.code !== "ENOENT") {- throw Object.assign(new Error("connection_timeout"), { code: "TIMEOUT" });+ throw Object.assign(new Error("connection_timeout"), { code: "TIMEOUT", authMethods: error?.authMethods, authenticationPending: error?.authenticationPending });}throw error;} finally {@@ -887,12 +892,20 @@ export function createAcpHostRuntime(options = {}) {if (!resolved.ok) return adapterFromResolution(id, resolved);let connected;try {- connected = await withHandshakeTimeout((signal) => connect(resolved.command, `auth-${id}`, () => {}, signal, input.methodId), 5 * 60_000);+ connected = await withHandshakeTimeout((signal) => connect(resolved.command, `auth-${id}`, () => {}, signal, input.methodId), authenticationTimeoutMs);const adapter = { ...adapterShell(id), state: "available", promptCapabilities: connected.promptCapabilities, authMethods: connected.authMethods, ...(resolved.version ? { version: resolved.version, managed: true } : {}) };latestStatus.set(id, adapter);return adapter;} catch (error) {- return { ...adapterShell(id), ...failureFields(classifyAcpFailure(error)), ...(isAuthRequiredError(error) ? { authMethods: error.authMethods ?? [] } : {}), ...(resolved.version ? { version: resolved.version, managed: true } : {}) };+ const timedOut = error?.code === "TIMEOUT" && error?.authenticationPending;+ const adapter = {+ ...adapterShell(id),+ ...(timedOut ? { state: "needs_login", detail: "authentication_timeout" } : failureFields(classifyAcpFailure(error))),+ ...((timedOut || isAuthRequiredError(error)) ? { authMethods: error.authMethods ?? latestStatus.get(id)?.authMethods ?? [] } : {}),+ ...(resolved.version ? { version: resolved.version, managed: true } : {}),+ };+ latestStatus.set(id, adapter);+ return adapter;} finally {if (connected) {connected.stop();@@ -912,6 +925,12 @@ export function createAcpHostRuntime(options = {}) {};const resolved = resolveCommand({ id: input.adapterId, path: input.path });if (!resolved.ok) return fail(promptFailureMessage(resolved));+ const customPath = input.adapterId === "antigravity" && typeof input.path === "string" ? input.path.trim() : "";+ const rememberPromptStatus = (fields) => latestStatus.set(input.adapterId, {+ ...adapterShell(input.adapterId),+ ...fields,+ ...(customPath ? { customPath } : {}),+ });let connected;let mcpBridge;@@ -921,13 +940,27 @@ export function createAcpHostRuntime(options = {}) {const access = await options.mcpAccess();mcpBridge = await (options.startMcpBridge ?? startAcpMcpBridge)(access);}+ } catch (error) {+ return fail(promptFailureMessage(classifyAcpFailure(error)));+ }+ try {connected = await withHandshakeTimeout((signal) => connect(resolved.command, requestId, notify, signal, undefined,mcpBridge ? [mcpServerFor(mcpBridge)] : [], true,));+ rememberPromptStatus({+ state: "available",+ authMethods: connected.authMethods,+ promptCapabilities: connected.promptCapabilities,+ });} catch (error) {+ const failure = classifyAcpFailure(error);+ rememberPromptStatus({+ ...failureFields(failure),+ ...(failure.state === "needs_login" ? { authMethods: error.authMethods ?? [] } : {}),+ });await mcpBridge?.close();- return fail(promptFailureMessage(classifyAcpFailure(error)));+ return fail(promptFailureMessage(failure));}let content;@@ -973,7 +1006,7 @@ export function createAcpHostRuntime(options = {}) {if (session.cancelled) return finish({ requestId, type: "done" });const failure = promptResultFailure(result);if (failure === "needs_login") {- latestStatus.set(input.adapterId, { ...adapterShell(input.adapterId), state: "needs_login", authMethods: connected.authMethods });+ rememberPromptStatus({ state: "needs_login", authMethods: connected.authMethods });}finish(failure ? { requestId, type: "error", message: failure } : { requestId, type: "done" });}).catch((error) => {@@ -981,7 +1014,7 @@ export function createAcpHostRuntime(options = {}) {else {const failure = classifyAcpFailure(error);if (failure.state === "needs_login") {- latestStatus.set(input.adapterId, { ...adapterShell(input.adapterId), state: "needs_login", authMethods: connected.authMethods });+ rememberPromptStatus({ state: "needs_login", authMethods: connected.authMethods });}finish({ requestId, type: "error", message: promptFailureMessage(failure) });}diff --git a/apps/desktop/src/main/acp-host.test.mjs b/apps/desktop/src/main/acp-host.test.mjsindex 0e48df5a..a802ac7f 100644--- a/apps/desktop/src/main/acp-host.test.mjs+++ b/apps/desktop/src/main/acp-host.test.mjs@@ -84,7 +84,7 @@ const collector = () => {};};-const fakeAgentSource = ({ reportPath, secretPath, allowImage, allowEmbedded, hold, requireAuth, advertiseAuth, promptRefusal }) => `#!/usr/bin/env bun+const fakeAgentSource = ({ reportPath, secretPath, allowImage, allowEmbedded, hold, requireAuth, advertiseAuth, promptRefusal, hangAuth, hangSession }) => `#!/usr/bin/env bunimport * as acp from ${JSON.stringify(sdkHref)};import { writeFileSync } from "node:fs";@@ -141,6 +141,10 @@ acp.agent({ name: "edgeever-fake-agent" })}).onRequest("authenticate", (ctx) => {report.authMethod = ctx.params.methodId;+ if (${hangAuth ? "true" : "false"}) {+ save();+ return new Promise(() => {});+ }authenticated = true;save();return {};@@ -149,6 +153,7 @@ acp.agent({ name: "edgeever-fake-agent" })if (requireAuth && !authenticated) throw new acp.RequestError(-32000, "auth_required");report.newSession = { cwd: ctx.params.cwd, mcpServers: ctx.params.mcpServers };save();+ if (${hangSession ? "true" : "false"}) return new Promise(() => {});return { sessionId: "sess-1" };}).onRequest("session/prompt", async (ctx) => {@@ -676,6 +681,59 @@ describe("ACP stdio session", () => {}}, 15_000);+ for (const failure of [+ { name: "login expiration", options: { requireAuth: true }, state: "needs_login", message: "needs_login" },+ { name: "session timeout", options: { hangSession: true }, state: "failed", message: "connection_timeout" },+ ]) {+ sessionTest(`replaces an available connector status after prompt ${failure.name} and recovers on reconnection`, async () => {+ const directory = await mkdtemp(path.join(tmpdir(), "edgeever-acp-status-"));+ try {+ const agentOptions = { reportPath: path.join(directory, "report.json"), secretPath: path.join(directory, "secret.txt") };+ const scriptPath = await writeFakeAgent(directory, agentOptions);+ const runtime = createAcpHostRuntime({+ handshakeTimeoutMs: 1_500,+ adapterManager: { get: (id) => id === "codex" ? { version: "2.1.1", command: { command: process.execPath, args: [scriptPath] } } : null },+ pathEnv: "",+ });+ const currentStatus = () => runtime.listAdapters().find((adapter) => adapter.id === "codex");+ expect((await runtime.probeAdapter({ id: "codex" })).state).toBe("available");+ await writeFakeAgent(directory, { ...agentOptions, ...failure.options });+ const failedEvents = collector();+ await runtime.prompt({ adapterId: "codex", prompt: "Hello", noteAccess: false }, failedEvents.emit);+ expect((await failedEvents.waitFor((event) => event.type === "error")).message).toBe(failure.message);+ expect(currentStatus().state).toBe(failure.state);+ expect(currentStatus()).toMatchObject({ version: "2.1.1", managed: true });+ if (failure.state === "needs_login") expect(currentStatus().authMethods).toEqual([{ id: "browser", name: "Browser" }]);+ await writeFakeAgent(directory, agentOptions);+ const recoveredEvents = collector();+ await runtime.prompt({ adapterId: "codex", prompt: "Hello", noteAccess: false }, recoveredEvents.emit);+ await recoveredEvents.waitFor((event) => event.type === "done");+ expect(currentStatus().state).toBe("available");+ } finally {+ await rm(directory, { recursive: true, force: true });+ }+ }, 15_000);+ }++ sessionTest("an EdgeEver MCP setup failure does not mark a healthy Agent as disconnected", async () => {+ const directory = await mkdtemp(path.join(tmpdir(), "edgeever-acp-mcp-status-"));+ try {+ const scriptPath = await writeFakeAgent(directory, { reportPath: path.join(directory, "report.json"), secretPath: path.join(directory, "secret.txt") });+ const runtime = createAcpHostRuntime({+ adapterManager: { get: (id) => id === "codex" ? { version: "2.1.1", command: { command: process.execPath, args: [scriptPath] } } : null },+ pathEnv: "",+ mcpAccess: () => { throw new Error("workspace_unavailable"); },+ });+ expect((await runtime.probeAdapter({ id: "codex" })).state).toBe("available");+ const events = collector();+ await runtime.prompt({ adapterId: "codex", prompt: "Hello" }, events.emit);+ expect((await events.waitFor((event) => event.type === "error")).message).toBe("workspace_unavailable");+ expect(runtime.listAdapters().find((adapter) => adapter.id === "codex").state).toBe("available");+ } finally {+ await rm(directory, { recursive: true, force: true });+ }+ }, 15_000);+sessionTest("provides the signed-in workspace MCP server only during an ACP prompt", async () => {const directory = await mkdtemp(path.join(tmpdir(), "edgeever-acp-mcp-"));const reportPath = path.join(directory, "report.json");@@ -830,6 +888,49 @@ describe("ACP stdio session", () => {}}, 15_000);+ sessionTest("ends an unanswered login with retry methods instead of a connection failure", async () => {+ const directory = await mkdtemp(path.join(tmpdir(), "edgeever-acp-auth-timeout-"));+ const reportPath = path.join(directory, "report.json");+ try {+ const scriptPath = await writeFakeAgent(directory, {+ reportPath,+ secretPath: path.join(directory, "secret.txt"),+ requireAuth: true,+ hangAuth: true,+ });+ const runtime = createAcpHostRuntime({ authenticationTimeoutMs: 1_500 });+ const result = await runtime.authenticateAdapter({ id: "antigravity", path: scriptPath, methodId: "browser" });+ expect((await readReport(reportPath)).authMethod).toBe("browser");+ expect(result.state).toBe("needs_login");+ expect(result.detail).toBe("authentication_timeout");+ expect(result.authMethods).toEqual([{ id: "browser", name: "Browser" }]);+ expect((await readReport(reportPath)).newSession).toBeNull();+ } finally {+ await rm(directory, { recursive: true, force: true });+ }+ }, 10_000);++ sessionTest("keeps a session timeout after successful login classified as a connection failure", async () => {+ const directory = await mkdtemp(path.join(tmpdir(), "edgeever-acp-auth-session-timeout-"));+ const reportPath = path.join(directory, "report.json");+ try {+ const scriptPath = await writeFakeAgent(directory, {+ reportPath,+ secretPath: path.join(directory, "secret.txt"),+ requireAuth: true,+ hangSession: true,+ });+ const runtime = createAcpHostRuntime({ authenticationTimeoutMs: 1_500 });+ const result = await runtime.authenticateAdapter({ id: "antigravity", path: scriptPath, methodId: "browser" });+ expect((await readReport(reportPath)).authMethod).toBe("browser");+ expect((await readReport(reportPath)).newSession).not.toBeNull();+ expect(result.state).toBe("failed");+ expect(result.detail).toBe("connection_timeout");+ } finally {+ await rm(directory, { recursive: true, force: true });+ }+ }, 10_000);+sessionTest("keeps ACP login methods visible when another agent can already create a session", async () => {const directory = await mkdtemp(path.join(tmpdir(), "edgeever-acp-optional-auth-"));try {diff --git a/apps/web/src/components/settings/DesktopAcpAgentCard.tsx b/apps/web/src/components/settings/DesktopAcpAgentCard.tsxindex 3b20cf36..c1f69dde 100644--- a/apps/web/src/components/settings/DesktopAcpAgentCard.tsx+++ b/apps/web/src/components/settings/DesktopAcpAgentCard.tsx@@ -43,6 +43,7 @@ const readAdapterId = (): DesktopAcpAdapterId => {const statusKey = (adapter: DesktopAcpAdapter | undefined, probing: boolean) => {if (probing) return "aiAssistant.agentSource.probing";if (!adapter || adapter.detail === "not_probed") return "aiAssistant.agentSource.notProbed";+ if (adapter.detail === "authentication_timeout") return "aiAssistant.agentSource.authenticationTimedOut";if (adapter.detail === "invalid_path") return "aiAssistant.agentSource.invalidPath";if (adapter.detail === "desktop_unavailable") return "aiAssistant.agentSource.localDisabled";if (adapter.id === "grokBuild" && adapter.state === "not_installed") return "aiAssistant.agentSource.grokBuildNotFound";@@ -93,7 +94,7 @@ const DesktopAcpAgentCardBody = ({ bridge }: { bridge: boolean }) => {const [probing, setProbing] = useState(false);const [installing, setInstalling] = useState(false);const [installError, setInstallError] = useState(false);- const [authenticating, setAuthenticating] = useState(false);+ const [authenticating, setAuthenticating] = useState<string | null>(null);useEffect(() => {const stored = readSource();@@ -182,7 +183,7 @@ const DesktopAcpAgentCardBody = ({ bridge }: { bridge: boolean }) => {};const authenticate = async (methodId: string) => {- setAuthenticating(true);+ setAuthenticating(methodId);setInstallError(false);try {const result = await authenticateDesktopAcpAdapter({@@ -194,7 +195,7 @@ const DesktopAcpAgentCardBody = ({ bridge }: { bridge: boolean }) => {} catch {setProbed({ id: adapterId, label: t(`aiAssistant.agentSource.${adapterId}`), state: "failed" });} finally {- setAuthenticating(false);+ setAuthenticating(null);}};@@ -365,7 +366,7 @@ const DesktopAcpAgentCardBody = ({ bridge }: { bridge: boolean }) => {<TooltipProvider><Tooltip><TooltipTrigger asChild>- <span><Button type="button" variant="outline" size="sm" className="h-8 bg-card text-xs font-normal" disabled={probing || installing} onClick={() => void probe()}>+ <span><Button type="button" variant="outline" size="sm" className="h-8 bg-card text-xs font-normal" disabled={probing || installing || Boolean(authenticating)} onClick={() => void probe()}>{probing ? t("aiAssistant.agentSource.probing") : t("aiAssistant.agentSource.probe")}</Button></span></TooltipTrigger>@@ -386,7 +387,7 @@ const DesktopAcpAgentCardBody = ({ bridge }: { bridge: boolean }) => {<p className="text-xs leading-relaxed text-slate-600">{t("aiAssistant.agentSource.piAgentLoginHint")}</p>) : null}{(shown?.state === "needs_login" || shown?.state === "available") && isWorkBuddy ? (- <p className="text-xs leading-relaxed text-slate-600">{t(adapterId === "workbuddyCn" ? "aiAssistant.agentSource.workbuddyCnLoginHint" : "aiAssistant.agentSource.workbuddyIntlLoginHint")}</p>+ <p className="text-[11px] leading-4 text-slate-500">{t(adapterId === "workbuddyCn" ? "aiAssistant.agentSource.workbuddyCnLoginHint" : "aiAssistant.agentSource.workbuddyIntlLoginHint")}</p>) : null}{shown?.state === "available" && !isWorkBuddy && authMethods.length ? (<p className="text-xs leading-relaxed text-slate-600">{t("aiAssistant.agentSource.authAvailableHint")}</p>@@ -394,8 +395,8 @@ const DesktopAcpAgentCardBody = ({ bridge }: { bridge: boolean }) => {{(shown?.state === "needs_login" || shown?.state === "available") && authMethods.length ? (<div className="flex flex-wrap gap-2 pt-0.5">{authMethods.map((method) => (- <Button key={method.id} type="button" variant="outline" size="sm" className="h-8 bg-card text-xs font-normal" disabled={authenticating} onClick={() => void authenticate(method.id)}>- {authenticating ? t("aiAssistant.agentSource.authenticating") : t("aiAssistant.agentSource.authenticateWith", { method: method.name })}+ <Button key={method.id} type="button" variant="outline" size="sm" className="h-8 bg-card text-xs font-normal" disabled={Boolean(authenticating)} onClick={() => void authenticate(method.id)}>+ {authenticating === method.id ? t("aiAssistant.agentSource.authenticating") : t("aiAssistant.agentSource.authenticateWith", { method: method.name })}</Button>))}</div>diff --git a/apps/web/src/lib/desktop-acp.test.mjs b/apps/web/src/lib/desktop-acp.test.mjsindex 40907650..9835cc85 100644--- a/apps/web/src/lib/desktop-acp.test.mjs+++ b/apps/web/src/lib/desktop-acp.test.mjs@@ -31,6 +31,23 @@ test("a prompt-time login failure takes priority over an earlier successful sessexpect(displayedDesktopAcpAdapter({ id: "grokBuild", path: "", listed: [current], probed: earlierProbe })).toBe(current);});+test("a prompt connection failure replaces a stale successful probe", () => {+ const earlierProbe = { id: "codex", label: "Codex", state: "available" };+ for (const state of ["failed", "needs_login", "not_installed"]) {+ const current = { id: "codex", label: "Codex", state };+ expect(displayedDesktopAcpAdapter({ id: "codex", path: "", listed: [current], probed: earlierProbe })).toBe(current);+ }+});++test("custom Antigravity failures replace only a probe for the same custom path", () => {+ const earlierProbe = { id: "antigravity", label: "Antigravity", state: "available" };+ const current = { id: "antigravity", label: "Antigravity", state: "failed", customPath: "/tmp/agy-acp" };+ const input = { id: "antigravity", path: "/tmp/agy-acp", listed: [current], probed: earlierProbe };+ expect(displayedDesktopAcpAdapter(input)).toBe(current);+ expect(displayedDesktopAcpAdapter({ ...input, path: "/tmp/another-acp" })).toBe(earlierProbe);+ expect(displayedDesktopAcpAdapter({ ...input, path: "" })).toBe(earlierProbe);+});+test("switching into an external agent starts a fresh chat without changing built-in chats", async () => {const { startsNewLocalAgentThread } = await import("./desktop-acp.ts");const builtin = { source: "builtin", adapterId: "codex" };diff --git a/apps/web/src/lib/desktop-acp.ts b/apps/web/src/lib/desktop-acp.tsindex f45ac0e2..10be9003 100644--- a/apps/web/src/lib/desktop-acp.ts+++ b/apps/web/src/lib/desktop-acp.ts@@ -15,6 +15,7 @@ export type DesktopAcpAdapter = {version?: string;managed?: boolean;updateError?: string;+ customPath?: string;authMethods?: Array<{ id: string; name: string }>;};@@ -31,9 +32,12 @@ export const displayedDesktopAcpAdapter = ({}): DesktopAcpAdapter | undefined => {const current = listed.find((adapter) => adapter.id === id);const checked = probed?.id === id ? probed : undefined;- if (id === "antigravity" && path.trim()) return checked;+ if (id === "antigravity" && path.trim()) {+ return current?.customPath === path.trim() ? current : checked;+ }+ if (current?.customPath) return checked;if (current?.state === "installing" || (current?.managed && (!checked?.managed || current.version !== checked.version))) return current;- if (current?.state === "needs_login" && checked?.state === "available") return current;+ if (checked?.state === "available" && (current?.state === "needs_login" || current?.state === "failed" || current?.state === "not_installed")) return current;return checked ?? current;};diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex 9c914f17..3a0af440 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -1539,13 +1539,14 @@ export const enUS = {piAgentLoginHint: "Run pi in a terminal to sign in to your model provider or configure an API key, then check the connection again.",workbuddyNotFound: "WorkBuddy ACP program not found",workbuddyMissingHint: "The WorkBuddy desktop app includes the ACP program; no separate CodeBuddy installation is needed. A standalone CodeBuddy CLI also works.",- workbuddyCnLoginHint: "No separate CodeBuddy installation is needed. ACP tries saved sign-in first. If chat still requires login, use WeChat or your organization's ACP sign-in method.",- workbuddyIntlLoginHint: "No separate CodeBuddy installation is needed. ACP tries saved sign-in first. If chat still requires login, use Google/GitHub or your organization's ACP sign-in method.",+ workbuddyCnLoginHint: "ACP tries saved sign-in first. If chat still requires login, use WeChat or your organization's ACP sign-in method.",+ workbuddyIntlLoginHint: "ACP tries saved sign-in first. If chat still requires login, use Google/GitHub or your organization's ACP sign-in method.",workbuddyConnectionReady: "ACP connected; sign-in is checked during chat",installing: "Installing and checking…",installFailed: "Installation or connection check failed. The previous version was kept.",updateFailed: "Automatic update failed. The previous version remains in use.",authenticating: "Signing in…",+ authenticationTimedOut: "Sign-in did not complete. Please try again.",authenticateWith: "Sign in with {{method}}",authAvailableHint: "This agent offers ACP sign-in. If sending a message requires login, complete it here.",loginUnavailable: "This ACP connector requires authentication but provides no ACP sign-in method. Authenticate in the agent, then check the connection again.",diff --git a/packages/shared/src/i18n/ja.ts b/packages/shared/src/i18n/ja.tsindex 7cf245ce..869fd694 100644--- a/packages/shared/src/i18n/ja.ts+++ b/packages/shared/src/i18n/ja.ts@@ -1539,13 +1539,14 @@ export const ja = {piAgentLoginHint: "ターミナルで pi を実行し、モデルサービスへのログインまたは API キーの設定を済ませてから、接続を再確認してください。",workbuddyNotFound: "WorkBuddy の ACP プログラムが見つかりません",workbuddyMissingHint: "WorkBuddy デスクトップアプリには ACP プログラムが含まれるため、CodeBuddy の別途インストールは不要です。単体の CodeBuddy CLI も利用できます。",- workbuddyCnLoginHint: "CodeBuddy の別途インストールは不要です。ACP は保存済みのログインを試します。チャットでログインが必要な場合は WeChat または組織指定の方法で ACP 認証を行ってください。",- workbuddyIntlLoginHint: "CodeBuddy の別途インストールは不要です。ACP は保存済みのログインを試します。チャットでログインが必要な場合は Google/GitHub または組織指定の方法で ACP 認証を行ってください。",+ workbuddyCnLoginHint: "ACP は保存済みのログインを試します。チャットでログインが必要な場合は WeChat または組織指定の方法で ACP 認証を行ってください。",+ workbuddyIntlLoginHint: "ACP は保存済みのログインを試します。チャットでログインが必要な場合は Google/GitHub または組織指定の方法で ACP 認証を行ってください。",workbuddyConnectionReady: "ACP 接続済み・ログインはチャット時に確認",installing: "インストールして確認中…",installFailed: "インストールまたは接続確認に失敗しました。以前のバージョンは保持されています。",updateFailed: "自動更新に失敗しました。以前のバージョンを継続して使用します。",authenticating: "ログイン中…",+ authenticationTimedOut: "ログインが完了しませんでした。再試行してください。",authenticateWith: "{{method}} でログイン",authAvailableHint: "この Agent は ACP ログインに対応しています。メッセージ送信時にログインを求められた場合は、ここで認証してください。",loginUnavailable: "この ACP 接続コンポーネントは認証が必要ですが、ACP のログイン方法を提供していません。エージェント側で認証してから再確認してください。",diff --git a/packages/shared/src/i18n/pl.ts b/packages/shared/src/i18n/pl.tsindex 85556f46..f9e43392 100644--- a/packages/shared/src/i18n/pl.ts+++ b/packages/shared/src/i18n/pl.ts@@ -1539,13 +1539,14 @@ export const pl = {piAgentLoginHint: "Uruchom pi w terminalu, aby zalogować się u dostawcy modeli lub skonfigurować klucz API, a potem ponownie sprawdź połączenie.",workbuddyNotFound: "Nie znaleziono programu WorkBuddy ACP",workbuddyMissingHint: "Aplikacja desktopowa WorkBuddy zawiera program ACP; osobna instalacja CodeBuddy nie jest potrzebna. Działa też samodzielny CodeBuddy CLI.",- workbuddyCnLoginHint: "Osobna instalacja CodeBuddy nie jest potrzebna. ACP najpierw próbuje użyć zapisanego logowania. Jeśli czat nadal wymaga zalogowania, użyj WeChat lub metody logowania ACP swojej organizacji.",- workbuddyIntlLoginHint: "Osobna instalacja CodeBuddy nie jest potrzebna. ACP najpierw próbuje użyć zapisanego logowania. Jeśli czat nadal wymaga zalogowania, użyj Google/GitHub lub metody logowania ACP swojej organizacji.",+ workbuddyCnLoginHint: "ACP najpierw próbuje użyć zapisanego logowania. Jeśli czat nadal wymaga zalogowania, użyj WeChat lub metody logowania ACP swojej organizacji.",+ workbuddyIntlLoginHint: "ACP najpierw próbuje użyć zapisanego logowania. Jeśli czat nadal wymaga zalogowania, użyj Google/GitHub lub metody logowania ACP swojej organizacji.",workbuddyConnectionReady: "Połączono z ACP; logowanie jest sprawdzane podczas czatu",installing: "Instalowanie i sprawdzanie…",installFailed: "Instalacja lub sprawdzenie połączenia nie powiodło się. Zachowano poprzednią wersję.",updateFailed: "Automatyczna aktualizacja nie powiodła się. Nadal używana jest poprzednia wersja.",authenticating: "Logowanie…",+ authenticationTimedOut: "Logowanie nie zostało ukończone. Spróbuj ponownie.",authenticateWith: "Zaloguj się przez {{method}}",authAvailableHint: "Ten agent oferuje logowanie ACP. Jeśli wysłanie wiadomości wymaga zalogowania, dokończ je tutaj.",loginUnavailable: "Ten konektor ACP wymaga uwierzytelnienia, ale nie udostępnia metody logowania ACP. Uwierzytelnij się w agencie, a potem ponownie sprawdź połączenie.",diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex 9bc24edd..ccffbd5b 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -1539,13 +1539,14 @@ export const zhCN = {piAgentLoginHint: "请先在终端运行 pi 并完成模型服务登录或 API Key 配置,然后重新检查连接。",workbuddyNotFound: "未找到 WorkBuddy 的 ACP 程序",workbuddyMissingHint: "安装 WorkBuddy 桌面版即可使用其内置 ACP,无需另装 CodeBuddy;也可单独安装 CodeBuddy CLI。",- workbuddyCnLoginHint: "无需另装 CodeBuddy。ACP 会尝试使用已保存的登录;若聊天仍提示需要登录,请使用微信或组织指定方式完成 ACP 认证。",- workbuddyIntlLoginHint: "无需另装 CodeBuddy。ACP 会尝试使用已保存的登录;若聊天仍提示需要登录,请使用 Google/GitHub 或组织指定方式完成 ACP 认证。",+ workbuddyCnLoginHint: "ACP 会尝试使用已保存的登录;若聊天仍提示需要登录,请使用微信或组织指定方式完成 ACP 认证。",+ workbuddyIntlLoginHint: "ACP 会尝试使用已保存的登录;若聊天仍提示需要登录,请使用 Google/GitHub 或组织指定方式完成 ACP 认证。",workbuddyConnectionReady: "ACP 已连接,聊天时验证登录",installing: "正在安装并检查…",installFailed: "安装或连接检查失败,原版本已保留。",updateFailed: "自动更新失败,正在继续使用原版本。",authenticating: "正在登录…",+ authenticationTimedOut: "登录未完成,请重试",authenticateWith: "使用 {{method}} 登录",authAvailableHint: "此 Agent 提供 ACP 登录方式。若发消息时提示需要登录,可在这里完成认证。",loginUnavailable: "这个 ACP 连接组件要求认证,但没有提供 ACP 登录入口。请在对应代理中完成认证后重试连接。",