Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Settings → AI: no Sign out for an engine an API key signs in, say the CLI is signed out too, name the provider on Unhide and Sign out (#5990)

Milind Soni0ad1e14d05e2
diff --git a/server/drivers/acp/api-key-account.ts b/server/drivers/acp/api-key-account.ts
new file mode 100644
index 0000000000..9884dbd0bb
--- /dev/null
+++ b/server/drivers/acp/api-key-account.ts
@@ -0,0 +1,12 @@
+// What an ACP engine's snapshot says about a provider key it runs on: a key in one of its credentialEnv variables
+// (pasted in Connections or set in the server's environment) signs the engine in whatever its own login says, so
+// signing that login out cannot disconnect it. Settings reads `account.method === "api-key"` and offers no Sign out.
+type Env = Record<string, string | undefined>;
+
+export function keyedBy(env: Env, names: readonly string[] | undefined): boolean {
+ return (names ?? []).some((name) => typeof env[name] === "string" && env[name]!.trim() !== "");
+}
+
+export function apiKeyAccount(env: Env, names: readonly string[] | undefined, authenticated: boolean): { account?: { method: "api-key" } } {
+ return authenticated && keyedBy(env, names) ? { account: { method: "api-key" } } : {};
+}
diff --git a/server/drivers/acp/browser-auth.test.ts b/server/drivers/acp/browser-auth.test.ts
index d1f35fc572..b87e94d39b 100644
--- a/server/drivers/acp/browser-auth.test.ts
+++ b/server/drivers/acp/browser-auth.test.ts
@@ -127,6 +127,38 @@ describe.skipIf(process.platform === "win32")("AcpBrowserAuth", () => {
await auth.dispose();
});
+ it("refuses to sign out an engine an API key signs in, and removes nothing", async () => {
+ const home = tempHome();
+ homes.push(home);
+ const removed: string[] = [];
+ const auth = new AcpBrowserAuth(spec({
+ removeCredentials: (env) => { removed.push(env.HOME!); },
+ signedIn: () => true,
+ signedInByApiKey: (env) => Boolean(env.MISTRAL_API_KEY),
+ }), { cli: process.execPath, environment: () => ({ ...process.env, HOME: home, MISTRAL_API_KEY: "fixture-key" }) });
+ await expect(auth.signOut()).rejects.toThrow("Mistral is signed in by an API key here");
+ expect(removed).toEqual([]);
+ await auth.dispose();
+ });
+
+ it("reports a sign-out the engine contradicts instead of success", async () => {
+ const home = tempHome();
+ homes.push(home);
+ let signedIn = true;
+ const removed: string[] = [];
+ const auth = new AcpBrowserAuth(spec({ removeCredentials: (env) => { removed.push(env.HOME!); }, signedIn: () => signedIn }), {
+ cli: process.execPath,
+ environment: () => ({ ...process.env, HOME: home }),
+ });
+ await expect(auth.signOut()).rejects.toThrow("Mistral still reports a sign-in on this server");
+ expect(removed).toEqual([home]);
+ signedIn = false;
+ removed.length = 0;
+ await auth.signOut();
+ expect(removed).toEqual([home]);
+ await auth.dispose();
+ });
+
it("appends the server hint when the cli path is missing (ENOENT)", async () => {
const home = tempHome();
homes.push(home);
diff --git a/server/drivers/acp/browser-auth.ts b/server/drivers/acp/browser-auth.ts
index a37acb0320..65481e99fc 100644
--- a/server/drivers/acp/browser-auth.ts
+++ b/server/drivers/acp/browser-auth.ts
@@ -35,6 +35,9 @@ export interface AcpBrowserSignInSpec {
/** Remove the engine's own stored sign-in (its cache files, its keychain entry); the person's pasted
* provider key in Connections is not this engine's to remove. */
removeCredentials?(env: Env): void | Promise<void>;
+ /** A provider key the engine runs on (a key pasted in Connections, or the server's environment): it keeps the engine
+ * signed in, so sign-out refuses instead of removing the engine's own sign-in to no effect. */
+ signedInByApiKey?(env: Env): boolean;
}
export interface AcpBrowserAuthOptions {
@@ -231,7 +234,15 @@ export class AcpBrowserAuth {
if (!this.spec.removeCredentials) throw new Error(`Signing out of ${this.spec.product} is not available from here.`);
if (this.flow) throw new Error(`Finish or cancel the ${this.spec.product} sign-in in progress before signing out.`);
if (this.stopping) await this.takeStopping();
- await this.spec.removeCredentials(this.options.environment());
+ const env = this.options.environment();
+ if (this.spec.signedInByApiKey?.(env)) {
+ throw new Error(`${this.spec.product} is signed in by an API key here, which signing out cannot remove. Remove the key under Settings → Connections to disconnect it.`);
+ }
+ await this.spec.removeCredentials(env);
+ // Checked again, as device-auth.ts does: a success the engine contradicts is not reported as one.
+ if (this.spec.signedIn?.(env)) {
+ throw new Error(`${this.spec.product} still reports a sign-in on this server. Update ${this.spec.product} and check its login status before trying again.`);
+ }
}
/** One waiter takes the outstanding termination; later callers see null. */
diff --git a/server/drivers/acp/core.ts b/server/drivers/acp/core.ts
index f15a9c010b..e7c78e7368 100644
--- a/server/drivers/acp/core.ts
+++ b/server/drivers/acp/core.ts
@@ -31,7 +31,7 @@ import { acpMissingSession } from "./rpc-error.ts";
import { readSessionReport } from "./session-reports.ts";
import { acpTurnSteering, advertisedCommands, type AcpSteerSupport } from "./steer.ts";
import { pickSessionModel, SessionModelControls, type AcpModelSelection } from "./session-model-controls.ts";
-import { notThisCli, versionFromProbe } from "./version-probe.ts"; import { engineHomes } from "../../engine-homes/engine-homes.ts";
+import { notThisCli, versionFromProbe } from "./version-probe.ts"; import { engineHomes } from "../../engine-homes/engine-homes.ts"; import { apiKeyAccount } from "./api-key-account.ts";
export function skipSubscriptionAuthForLocalInject(model: string | undefined): boolean {
return Boolean(decodeInjectId(model));
@@ -1547,7 +1547,7 @@ export function createAcpDriver(support: AcpSupport): ProviderDriver<AcpConfig>
});
});
if (!probe.version) return { state: "unavailable", reason: probe.reason, ...(probe.other ? { notEngineCli: true } : {}) };
- return { state: "available", version: probe.version, authenticated: await support.isAuthenticated(env, config, instanceId, instanceEnvNames(input.environment, env)) };
+ const authenticated = await support.isAuthenticated(env, config, instanceId, instanceEnvNames(input.environment, env)); return { state: "available", version: probe.version, authenticated, ...apiKeyAccount(env, support.credentialEnv, authenticated) };
};
/** Memory upkeep's one-shot: a fresh process and session, no MCP servers, an empty folder, and
diff --git a/server/drivers/acp/mistral-vibe.test.ts b/server/drivers/acp/mistral-vibe.test.ts
index 5670b2b9d8..fb5bcd2996 100644
--- a/server/drivers/acp/mistral-vibe.test.ts
+++ b/server/drivers/acp/mistral-vibe.test.ts
@@ -74,6 +74,22 @@ describe("Mistral (Vibe) ACP driver", () => {
expect(vibeSignedIn({ VIBE_HOME: join(scratch, "absent"), MISTRAL_API_KEY: "fixture-key" }, probe)).toBe(true);
});
+ it("reports a pasted key as an API-key account and keeps sign-out from removing the CLI's own sign-in", async () => {
+ const home = join(scratch, "vibe-home");
+ mkdirSync(home, { recursive: true });
+ writeFileSync(join(home, "whoami_cache.json"), JSON.stringify({ customer_id: "cus-fixture" }));
+ const keyed = await create({ MISTRAL_API_KEY: "fixture-key" });
+ expect(await keyed.instance.snapshot()).toMatchObject({ state: "available", authenticated: true, account: { method: "api-key" } });
+ await expect(keyed.instance.signOut!()).rejects.toThrow("signed in by an API key");
+ expect(existsSync(join(home, "whoami_cache.json"))).toBe(true);
+ await keyed.instance.dispose();
+ instance = undefined;
+ const own = await create();
+ const snapshot = await own.instance.snapshot();
+ expect(snapshot).toMatchObject({ state: "available", authenticated: true });
+ expect(snapshot.account).toBeUndefined();
+ });
+
it("treats an injected keychain probe as a sign-in marker (orchestration of the fresh sign-in)", () => {
const env = { VIBE_HOME: join(scratch, "absent") };
expect(vibeSignedIn(env, () => false)).toBe(false);
diff --git a/server/drivers/acp/mistral-vibe.ts b/server/drivers/acp/mistral-vibe.ts
index 047c33f180..ac6a344941 100644
--- a/server/drivers/acp/mistral-vibe.ts
+++ b/server/drivers/acp/mistral-vibe.ts
@@ -177,6 +177,7 @@ export const mistralVibeSupport: AcpSupport = {
}
},
removeCredentials: removeMistralVibeSignIn,
+ signedInByApiKey: (env) => nonEmpty(env.MISTRAL_API_KEY),
},
// Model is a session config option (see header); ids pass through unchanged.
selectModel: { configId: "model" },
diff --git a/src/components/EnginesSettings.hidden-providers.dom.test.ts b/src/components/EnginesSettings.hidden-providers.dom.test.ts
index 3e8a854b2e..a1b6f4922d 100644
--- a/src/components/EnginesSettings.hidden-providers.dom.test.ts
+++ b/src/components/EnginesSettings.hidden-providers.dom.test.ts
@@ -9,7 +9,7 @@ import { setLocale, t } from "@/lib/i18n";
import { BUILT_IN_INSTANCE_DRIVERS } from "@/lib/built-in-instances";
const server = vi.hoisted(() => ({
- all: [] as InstanceInfo[], hidden: new Set<string>(), calls: [] as Array<{ method: string; path: string; body?: unknown }>,
+ all: [] as InstanceInfo[], hidden: new Set<string>(), calls: [] as Array<{ method: string; path: string; body?: unknown }>, refuseUnhide: false,
}));
const fixture = vi.hoisted(() => ({ state: { instances: [] as InstanceInfo[], bots: [] as Bot[], config: {} as Record<string, unknown> } }));
vi.mock("@/state/store", async (original) => {
@@ -36,6 +36,7 @@ vi.mock("@/state/store", async (original) => {
const patch = /^\/api\/instances\/([\w.-]+)$/.exec(path);
if (patch && method === "PATCH") {
const { hidden } = JSON.parse(init!.body!) as { hidden?: boolean };
+ if (hidden === false && server.refuseUnhide) throw new Error("provider settings are already being updated");
if (hidden === true) server.hidden.add(patch[1]!);
if (hidden === false) server.hidden.delete(patch[1]!);
return { instances: visible() };
@@ -64,6 +65,7 @@ beforeEach(() => {
server.all = [codex, kimi(true)];
server.hidden = new Set();
server.calls = [];
+ server.refuseUnhide = false;
fixture.state = { instances: [...server.all], bots: [], config: {} };
container = document.createElement("div"); document.body.append(container); root = createRoot(container);
});
@@ -102,6 +104,7 @@ describe("Settings → AI: a provider hidden from its own card", () => {
expect(hiddenRow.textContent).toContain(t("settings.ai.hiddenStatus"));
expect(hiddenRow.querySelector("svg")).toBeTruthy();
+ expect(hiddenRow.querySelector('[data-unhide-engine="kimi"]')?.getAttribute("aria-label")).toBe("Unhide Kimi");
await click(hiddenRow.querySelector('[data-unhide-engine="kimi"]'));
expect(server.calls).toContainEqual({ method: "PATCH", path: "/api/instances/kimi", body: { hidden: false } });
expect(rows()).toContain("kimi");
@@ -118,12 +121,26 @@ describe("Settings → AI: a provider hidden from its own card", () => {
expect(hiddenRows()).toEqual(["kimi"]);
});
+ it("keeps a hidden provider listed, with the server's refusal, when Unhide fails", async () => {
+ server.hidden.add("kimi");
+ server.refuseUnhide = true;
+ fixture.state = { ...fixture.state, instances: [codex] };
+ await render();
+ await click(container.querySelector('[data-unhide-engine="kimi"]'));
+ expect(container.querySelector('[role="alert"]')?.textContent).toBe("provider settings are already being updated");
+ expect(hiddenRows()).toEqual(["kimi"]);
+ expect(rows()).not.toContain("kimi");
+ });
+
it("signs a connected CLI out from its card without hiding it", async () => {
await render();
await click(rowButton("kimi"));
const signOut = container.querySelector('[data-engine-sign-out="kimi"] button');
expect(signOut?.textContent).toBe("Sign out");
+ expect(signOut?.getAttribute("aria-label")).toBe("Sign out of Kimi");
await click(signOut);
+ // The dialog says the CLI's own sign-in on this computer goes too.
+ expect(document.body.querySelector("[data-sign-out-cli]")?.textContent).toBe(t("accounts.signOutCliBody", { name: "Kimi" }));
const confirm = [...document.body.querySelectorAll("button")].filter((button) => button.textContent === "Sign out").at(-1);
await click(confirm);
expect(server.calls).toContainEqual({ method: "POST", path: "/api/instances/kimi/auth/sign-out" });
@@ -136,6 +153,42 @@ describe("Settings → AI: a provider hidden from its own card", () => {
});
});
+describe("Settings → AI: Sign out on other CLI sign-ins", () => {
+ const grok: InstanceInfo = {
+ instanceId: "grok", driverKind: "grokAgent", displayName: "Grok", cliDefault: "grok",
+ snapshot: { state: "available", authenticated: true }, models: { default: "grok", options: [] },
+ authentication: { method: "device-code", signOut: true },
+ };
+ const vibe = (account?: { method: "api-key" }): InstanceInfo => ({
+ instanceId: "mistralVibe", driverKind: "mistralVibeAgent", displayName: "Mistral (Vibe)", cliDefault: "vibe-acp",
+ snapshot: { state: "available", authenticated: true, ...(account ? { account } : {}) }, models: { default: "mistral-medium-3.5", options: [] },
+ authentication: { method: "browser", signOut: true },
+ });
+
+ it.each([["Grok", grok], ["Mistral (Vibe)", vibe()]] as const)("signs %s out through its own sign-out", async (name, engine) => {
+ server.all = [codex, engine];
+ fixture.state = { ...fixture.state, instances: [...server.all] };
+ await render();
+ await click(rowButton(engine.instanceId));
+ const signOut = container.querySelector(`[data-engine-sign-out="${engine.instanceId}"] button`);
+ expect(signOut?.getAttribute("aria-label")).toBe(`Sign out of ${name}`);
+ await click(signOut);
+ expect(document.body.querySelector("[data-sign-out-cli]")?.textContent).toContain(name);
+ await click([...document.body.querySelectorAll("button")].filter((button) => button.textContent === "Sign out").at(-1));
+ expect(server.calls).toContainEqual({ method: "POST", path: `/api/instances/${engine.instanceId}/auth/sign-out` });
+ expect(server.calls.some((call) => call.method === "PATCH")).toBe(false);
+ });
+
+ it("offers no Sign out to an engine an API key signs in", async () => {
+ server.all = [codex, vibe({ method: "api-key" })];
+ fixture.state = { ...fixture.state, instances: [...server.all] };
+ await render();
+ await click(rowButton("mistralVibe"));
+ expect(container.querySelector('[data-engine-card="mistralVibe"]')).toBeTruthy();
+ expect(container.querySelector('[data-engine-sign-out="mistralVibe"]')).toBeNull();
+ });
+});
+
// Drivers whose instances carry no CLI: the server marks them API-key engines.
const API_DRIVERS = new Set(["openai-compat", "mistral", "cerebras", "groq", "greenference", "modelgo", "meta", "grok"]);
const STATES: Record<string, InstanceInfo["snapshot"] | "hidden"> = {
diff --git a/src/components/EnginesSettings.tsx b/src/components/EnginesSettings.tsx
index 18ea7a4a36..33ff2ca5b5 100644
--- a/src/components/EnginesSettings.tsx
+++ b/src/components/EnginesSettings.tsx
@@ -329,7 +329,7 @@ function EngineAdvanced({ instance }: { instance: InstanceInfo }) {
/** Remove drops an added Antigravity account; Sign out forgets a signed-in account's sign-in (Antigravity's Google one, or
* a CLI's own login such as Kimi's) and never hides the provider, which stays listed with Set up. */
-function EngineAccountAction({ instance, action }: { instance: InstanceInfo; action: "remove" | "signOut" }) {
+function EngineAccountAction({ instance, action, cli = false }: { instance: InstanceInfo; action: "remove" | "signOut"; cli?: boolean }) {
const { state, dispatch, refreshInstances } = useStore();
const [confirming, setConfirming] = useState(false);
const [running, setRunning] = useState(false);
@@ -354,14 +354,17 @@ function EngineAccountAction({ instance, action }: { instance: InstanceInfo; act
};
return <>
<div className="flex flex-wrap items-center gap-2">
- <button type="button" disabled={running || usedBy > 0} onClick={() => setConfirming(true)} className={cn("rounded-lg px-2.5 py-1.5 text-[12px] font-medium disabled:cursor-not-allowed disabled:opacity-50", remove ? "text-danger hover:bg-danger/10" : "text-ink-secondary hover:bg-raised hover:text-ink")}>
+ <button type="button" disabled={running || usedBy > 0} onClick={() => setConfirming(true)} aria-label={remove ? undefined : t("accounts.signOutAria", { name: instance.displayName })} className={cn("rounded-lg px-2.5 py-1.5 text-[12px] font-medium disabled:cursor-not-allowed disabled:opacity-50", remove ? "text-danger hover:bg-danger/10" : "text-ink-secondary hover:bg-raised hover:text-ink")}>
{running ? <Loader2 size={13} className="animate-spin" /> : label}
</button>
{usedBy > 0 && <p className="text-[11px] text-ink-secondary">{t("accounts.inUse", { count: String(usedBy) })}</p>}
</div>
{error && <p role="alert" className="text-[12px] text-danger">{error}</p>}
<ConfirmDialog open={confirming} title={t(remove ? "accounts.removeTitle" : "accounts.signOutTitle", { name: instance.displayName })}
- body={t(remove ? "accounts.removeBodyAntigravity" : "accounts.signOutBody")}
+ body={remove ? t("accounts.removeBodyAntigravity") : cli
+ // The CLI's own sign-in is the one removed: its files in the home folder of the computer this app runs on.
+ ? <>{t("accounts.signOutBody")}<span data-sign-out-cli="" className="mt-2 block">{t("accounts.signOutCliBody", { name: instance.displayName })}</span></>
+ : t("accounts.signOutBody")}
confirmLabel={label} tone="neutral" pending={running} onCancel={() => { if (!running) setConfirming(false); }} onConfirm={() => void run()} />
</>;
}
@@ -407,8 +410,9 @@ function EngineRow({ instance, bare = false }: { instance: InstanceInfo; bare?:
<p className="flex items-center gap-1.5 text-[12px] text-success"><Check size={13} />{t("engineSetup.claude.connectedAccount")}</p>
)
)}
- {instance.driverKind !== "antigravityAgent" && engineReady(instance) && instance.snapshot.authenticated === true && instance.authentication?.signOut === true && (
- <div data-engine-sign-out={instance.instanceId} className="mt-3"><EngineAccountAction instance={instance} action="signOut" /></div>
+ {/* Not for an engine a provider key signs in: removing its own sign-in would leave it connected. */}
+ {instance.driverKind !== "antigravityAgent" && engineReady(instance) && instance.snapshot.authenticated === true && instance.authentication?.signOut === true && instance.snapshot.account?.method !== "api-key" && (
+ <div data-engine-sign-out={instance.instanceId} className="mt-3"><EngineAccountAction instance={instance} action="signOut" cli /></div>
)}
{instance.freeUpSpace && <AntigravityFreeSpace instance={instance} />}
{instance.driverKind === "antigravityAgent" && (
diff --git a/src/components/HiddenProviders.tsx b/src/components/HiddenProviders.tsx
index 7fbc7a69c9..87bbbfaac1 100644
--- a/src/components/HiddenProviders.tsx
+++ b/src/components/HiddenProviders.tsx
@@ -53,7 +53,7 @@ export function HiddenProviderRows({ hidden }: { hidden: HiddenProvider[] }) {
<span className="truncate text-[14px] leading-5 text-ink">{entry.displayName}</span>
<span className="truncate text-[13px] leading-[18px] text-ink-secondary">{t("settings.ai.hiddenStatus")}</span>
</span>
- <button type="button" data-unhide-engine={entry.instanceId} disabled={busy !== null} onClick={() => unhide(entry.instanceId)} className="ui-button ml-3 shrink-0 disabled:opacity-50">
+ <button type="button" data-unhide-engine={entry.instanceId} disabled={busy !== null} onClick={() => unhide(entry.instanceId)} aria-label={t("engines.unhideAria", { name: entry.displayName })} className="ui-button ml-3 shrink-0 disabled:opacity-50">
{busy === entry.instanceId ? t("engines.unhiding") : t("engines.unhide")}
</button>
</div>
@@ -75,7 +75,7 @@ export function HiddenEngines() {
{hidden.map((entry) => (
<div key={entry.instanceId} className="flex items-center justify-between gap-3 rounded-lg bg-control px-3 py-2">
<span className="min-w-0 truncate text-[13px] text-ink">{entry.displayName}</span>
- <button type="button" data-unhide-engine={entry.instanceId} disabled={busy !== null} onClick={() => unhide(entry.instanceId)}
+ <button type="button" data-unhide-engine={entry.instanceId} disabled={busy !== null} onClick={() => unhide(entry.instanceId)} aria-label={t("engines.unhideAria", { name: entry.displayName })}
className="shrink-0 text-[12px] font-medium text-accent hover:underline disabled:opacity-50">
{busy === entry.instanceId ? t("engines.unhiding") : t("engines.unhide")}
</button>
diff --git a/src/locales/en.json b/src/locales/en.json
index 83b1380e9c..0d5bc19010 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -4702,6 +4702,7 @@
"engines.hiddenTitle": "Hidden ({count})",
"engines.hiddenHint": "Left out of every model list. Their apps and sign-ins are unchanged.",
"engines.unhide": "Unhide",
+ "engines.unhideAria": "Unhide {name}",
"engines.unhiding": "Unhiding…",
"engines.claudeUpdated": "Claude updated to {version}",
"engines.updatedTo": "Updated to {version}",
@@ -4721,6 +4722,8 @@
"accounts.inUse": "{count} bot(s) use this account. Pick another model for them first.",
"accounts.signOutTitle": "Sign out of {name}?",
"accounts.signOutBody": "Bots that use this account need it signed in again before their next task. Running tasks are not cancelled.",
+ "accounts.signOutCliBody": "This also signs {name}'s own command-line app out on this computer.",
+ "accounts.signOutAria": "Sign out of {name}",
"accounts.removeTitle": "Remove {name}?",
"accounts.removeBodyClaude": "This removes the account from {app}. Claude's own sign-in files stay on this computer.",
"accounts.removeBodyChatgpt": "This signs the account out and removes it from {app}.",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 7b2557ec6d..c79580df51 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -4389,6 +4389,7 @@
"engines.hiddenTitle": "Provedores ocultos: {count}",
"engines.hiddenHint": "Ficam fora de todas as listas de modelos. Os apps e os logins deles continuam como estão.",
"engines.unhide": "Mostrar novamente",
+ "engines.unhideAria": "Mostrar {name} novamente",
"engines.unhiding": "Mostrando novamente…",
"engines.claudeUpdated": "Claude atualizado para {version}",
"engines.updatedTo": "Atualizado para {version}",
@@ -4414,6 +4415,8 @@
"accounts.inUse": "Bots que usam esta conta: {count}. Escolha outro modelo para eles primeiro.",
"accounts.signOutTitle": "Sair de {name}?",
"accounts.signOutBody": "Os bots que usam esta conta só podem iniciar a próxima tarefa depois que você entrar nela novamente. As tarefas em andamento não são canceladas.",
+ "accounts.signOutCliBody": "Isso também faz o app de linha de comando de {name} sair da conta neste computador.",
+ "accounts.signOutAria": "Sair de {name}",
"accounts.removeTitle": "Remover {name}?",
"accounts.removeBodyClaude": "Isto remove a conta do app {app}. Os arquivos de login do próprio Claude continuam neste computador.",
"accounts.removeBodyChatgpt": "Isto encerra a sessão da conta e a remove do app {app}.",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index a72b96b83b..c40ad30a0f 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -4408,6 +4408,8 @@
"accounts.inUse": "有 {count} 个机器人使用此账户。请先为它们选择其他模型。",
"accounts.signOutTitle": "退出 {name} 的登录?",
"accounts.signOutBody": "使用此账户的机器人需要重新登录该账户,才能开始下一个任务。正在运行的任务不会被取消。",
+ "accounts.signOutCliBody": "这也会让此电脑上 {name} 自己的命令行应用退出登录。",
+ "accounts.signOutAria": "退出 {name} 的登录",
"accounts.removeTitle": "移除 {name}?",
"accounts.removeBodyClaude": "这会把该账户从 {app} 中移除。Claude 自己的登录文件仍保留在这台电脑上。",
"accounts.removeBodyChatgpt": "这会退出该账户的登录,并将它从 {app} 中移除。",
@@ -8802,6 +8804,7 @@
"engines.hiddenTitle": "已隐藏({count})",
"engines.hiddenHint": "已从所有模型列表中隐藏。它们的应用和登录没有变化。",
"engines.unhide": "重新显示",
+ "engines.unhideAria": "重新显示 {name}",
"engines.unhiding": "正在重新显示…",
"accounts.addChatgptWorkspaceNote": "ChatGPT Business 和 Enterprise 组织可能禁止在这里添加账号(OpenAI 会返回 3p_delegated_access_policy_denied)。",
"claudeEndpoints.title": "自定义终结点",