Skip to content

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

Settings → AI: bring hidden providers back, sign a CLI out without hiding it, Cursor's real mark (#5985)

Milind Soni99186351ef32
diff --git a/NOTICE b/NOTICE
index 59ef3af0af..bd6682651d 100644
--- a/NOTICE
+++ b/NOTICE
@@ -71,6 +71,12 @@ Selected provider icon paths are from Simple Icons, used under CC0 1.0.
The Cohere provider icon path is from Lobe Icons, Copyright 2023 LobeHub,
used under the MIT License.
+The Cursor provider mark (src/components/CursorMark.tsx) adapts the Cursor
+provider icon path of T3 Code (packages/provider-cursor/src/client.ts),
+Copyright 2026 T3 Tools Inc., used under the MIT License
+(third_party/t3-code/LICENSE). The mark is Cursor's trademark and is shown
+only to identify the Cursor provider.
+
The model provider catalog bundles provider and model data from models.dev,
https://github.com/anomalyco/models.dev, Copyright (c) 2025 models.dev, used
under the MIT License. Its cache and refresh logic is adapted from OpenCode,
diff --git a/src/components/CursorMark.tsx b/src/components/CursorMark.tsx
index 73804359d1..995211b04a 100644
--- a/src/components/CursorMark.tsx
+++ b/src/components/CursorMark.tsx
@@ -1,4 +1,7 @@
-// Official Cursor mark (cursor.com favicon).
+// Adapted from pingdotgg/t3code@a16796b9 packages/provider-cursor/src/client.ts (the provider icon; the same path is
+// CursorIcon in apps/web/src/components/Icons.tsx), MIT License, Copyright (c) 2026 T3 Tools Inc. (full text in
+// third_party/t3-code/LICENSE); modified: drawn in the ink colour, which inverts with the skin, instead of its fixed
+// light and dark fills. The mark itself is Cursor's, shown only to identify the Cursor provider.
import { cn } from "@/lib/cn";
interface IconProps {
@@ -6,10 +9,11 @@ interface IconProps {
className?: string;
}
+/** Cursor's cube mark: a hexagon with the cursor facet cut out of it. */
export function CursorMark({ size = 16, className }: IconProps) {
return (
- <svg width={size} height={size} viewBox="0 0 24 24" className={cn("fill-[var(--color-ink)]", className)} aria-hidden>
- <path d="M4 2.2 20.6 12 12.7 13.9 10.4 21.8z" />
+ <svg width={size} height={size} viewBox="0 0 466.73 532.09" className={cn("fill-[var(--color-ink)]", className)} aria-hidden>
+ <path d="M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z" />
</svg>
);
}
diff --git a/src/components/EngineLibrary.test.ts b/src/components/EngineLibrary.test.ts
index 9f85ae7cda..fcb375c55c 100644
--- a/src/components/EngineLibrary.test.ts
+++ b/src/components/EngineLibrary.test.ts
@@ -19,6 +19,12 @@ describe("engine library", () => {
expect(html).toContain("ink");
}
});
+ it("draws Cursor's cube mark for the Cursor engine, not a pointer arrow", () => {
+ const html = renderToStaticMarkup(createElement(InstanceProviderMark, { instance: instance({ driverKind: "cursorAgent" }) }));
+ expect(html).toContain('viewBox="0 0 466.73 532.09"');
+ expect(html).toContain("fill-[var(--color-ink)]");
+ expect(html).not.toContain("M4 2.2");
+ });
it("uses an instance icon without changing the driver's default mark", () => {
const preset = renderToStaticMarkup(createElement(InstanceProviderMark, { instance: instance({ icon: { kind: "preset", preset: "azure" } }) }));
const custom = renderToStaticMarkup(createElement(InstanceProviderMark, { instance: instance({ icon: { kind: "custom", dataUrl: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=" } }) }));
diff --git a/src/components/EnginesSettings.hidden-providers.dom.test.ts b/src/components/EnginesSettings.hidden-providers.dom.test.ts
new file mode 100644
index 0000000000..3e8a854b2e
--- /dev/null
+++ b/src/components/EnginesSettings.hidden-providers.dom.test.ts
@@ -0,0 +1,176 @@
+// @vitest-environment happy-dom
+// Settings → AI → Providers against a small model of the server: a hidden provider leaves /api/instances (as
+// withInstanceConfig does) and is listed only by /api/instances/hidden.
+import { act, createElement } from "react";
+import { createRoot, type Root } from "react-dom/client";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import type { Bot, InstanceInfo } from "@/state/store";
+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 }>,
+}));
+const fixture = vi.hoisted(() => ({ state: { instances: [] as InstanceInfo[], bots: [] as Bot[], config: {} as Record<string, unknown> } }));
+vi.mock("@/state/store", async (original) => {
+ const visible = () => server.all.filter((instance) => !server.hidden.has(instance.instanceId));
+ const refresh = async () => { fixture.state = { ...fixture.state, instances: visible() }; };
+ return {
+ ...await original<typeof import("@/state/store")>(),
+ useStore: () => ({
+ state: fixture.state,
+ dispatch: (action: { type: string; instances?: InstanceInfo[] }) => { if (action.type === "instances" && action.instances) fixture.state = { ...fixture.state, instances: action.instances }; },
+ refreshInstances: refresh, refreshModels: async () => {},
+ }),
+ api: async (path: string, init?: { method?: string; body?: string }) => {
+ const method = init?.method ?? "GET";
+ server.calls.push({ method, path, ...(init?.body ? { body: JSON.parse(init.body) } : {}) });
+ if (path === "/api/instances/hidden") {
+ return { instances: server.all.filter((instance) => server.hidden.has(instance.instanceId)).map(({ instanceId, driverKind, displayName }) => ({ instanceId, driverKind, displayName })) };
+ }
+ const signOut = /^\/api\/instances\/([\w.-]+)\/auth\/sign-out$/.exec(path);
+ if (signOut) {
+ server.all = server.all.map((instance) => instance.instanceId === signOut[1] ? { ...instance, snapshot: { state: "available", authenticated: false } } : instance);
+ return { instances: visible() };
+ }
+ const patch = /^\/api\/instances\/([\w.-]+)$/.exec(path);
+ if (patch && method === "PATCH") {
+ const { hidden } = JSON.parse(init!.body!) as { hidden?: boolean };
+ if (hidden === true) server.hidden.add(patch[1]!);
+ if (hidden === false) server.hidden.delete(patch[1]!);
+ return { instances: visible() };
+ }
+ return {};
+ },
+ };
+});
+const { EnginesSettings } = await import("./EnginesSettings");
+const { accountGroupOf } = await import("./EngineAccounts");
+
+const kimi = (authenticated: boolean): InstanceInfo => ({
+ instanceId: "kimi", driverKind: "kimiAgent", displayName: "Kimi", cliDefault: "kimi",
+ snapshot: { state: "available", authenticated, version: "kimi 2.5.2" }, models: { default: "kimi-for-coding", options: [] },
+ authentication: { method: "device-code", signOut: true }, install: { signInCommand: "kimi login" },
+});
+const codex: InstanceInfo = {
+ instanceId: "codex", driverKind: "codex", displayName: "Codex", cliDefault: "codex",
+ snapshot: { state: "available", authenticated: true }, models: { default: "gpt", options: [] },
+};
+
+let container: HTMLDivElement, root: Root;
+beforeEach(() => {
+ vi.stubGlobal("IS_REACT_ACT_ENVIRONMENT", true);
+ setLocale("en");
+ server.all = [codex, kimi(true)];
+ server.hidden = new Set();
+ server.calls = [];
+ fixture.state = { instances: [...server.all], bots: [], config: {} };
+ container = document.createElement("div"); document.body.append(container); root = createRoot(container);
+});
+afterEach(async () => { await act(async () => root.unmount()); container.remove(); document.body.innerHTML = ""; vi.unstubAllGlobals(); });
+
+const render = async (open = true) => {
+ await act(async () => { root.render(createElement(EnginesSettings, { simple: true, more: { id: "ai-more", open, onToggle: () => {} } })); });
+ await act(async () => { await new Promise((done) => setTimeout(done, 0)); });
+};
+const rows = () => [...container.querySelectorAll("[data-simple-engine]")].map((row) => row.getAttribute("data-simple-engine"));
+const hiddenRows = () => [...container.querySelectorAll("[data-hidden-engine]")].map((row) => row.getAttribute("data-hidden-engine"));
+const click = async (target: Element | null | undefined) => {
+ expect(target).toBeTruthy();
+ await act(async () => { (target as HTMLElement).click(); });
+ await render();
+};
+const rowButton = (instanceId: string) => container.querySelector(`[data-simple-engine="${instanceId}"] button`);
+const moreCount = () => container.querySelector('[data-settings-disclosure="ai-more"]')?.textContent;
+
+describe("Settings → AI: a provider hidden from its own card", () => {
+ it("stays listed under More providers → Hidden, and Unhide brings it back with its row", async () => {
+ await render();
+ expect(rows()).toContain("kimi");
+ await click(rowButton("kimi"));
+ // The Hide button on the connected card (the customer's "disconnect").
+ await click(container.querySelector('[data-hide-engine="kimi"]'));
+ expect(server.calls).toContainEqual({ method: "PATCH", path: "/api/instances/kimi", body: { hidden: true } });
+ expect(fixture.state.instances.map((instance) => instance.instanceId)).toEqual(["codex"]);
+
+ expect(rows()).not.toContain("kimi");
+ expect(hiddenRows()).toEqual(["kimi"]);
+ expect(moreCount()).toContain("More providers");
+ expect(moreCount()).toContain("1");
+ const hiddenRow = container.querySelector('[data-hidden-engine="kimi"]')!;
+ expect(hiddenRow.textContent).toContain("Kimi");
+ expect(hiddenRow.textContent).toContain(t("settings.ai.hiddenStatus"));
+ expect(hiddenRow.querySelector("svg")).toBeTruthy();
+
+ 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");
+ expect(hiddenRows()).toEqual([]);
+ });
+
+ it("keeps the More providers row while every provider left in it is hidden", async () => {
+ server.hidden.add("kimi");
+ fixture.state = { ...fixture.state, instances: [codex] };
+ await render(false);
+ expect(moreCount()).toContain("1");
+ expect(hiddenRows()).toEqual([]);
+ await render(true);
+ expect(hiddenRows()).toEqual(["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");
+ await click(signOut);
+ 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" });
+ expect(server.calls.some((call) => call.method === "PATCH")).toBe(false);
+ await act(async () => { fixture.state = { ...fixture.state, instances: server.all }; });
+ await render();
+ expect(rows()).toContain("kimi");
+ expect(rowButton("kimi")?.textContent).not.toBe("Manage");
+ expect(hiddenRows()).toEqual([]);
+ });
+});
+
+// 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"> = {
+ "never set up, CLI missing": { state: "unavailable", reason: "CLI not found" },
+ connected: { state: "available", authenticated: true },
+ "signed out": { state: "available", authenticated: false },
+ "sign-in unknown": { state: "available" },
+ hidden: "hidden",
+};
+
+describe("Settings → AI lists every provider the app knows", () => {
+ const catalog = Object.entries(BUILT_IN_INSTANCE_DRIVERS);
+ const instance = ([instanceId, driverKind]: [string, string], index: number, snapshot: InstanceInfo["snapshot"]): InstanceInfo => ({
+ instanceId, driverKind, displayName: instanceId, snapshot, models: { default: "model", options: [] },
+ ...(API_DRIVERS.has(driverKind) ? { access: "api" as const } : { cliDefault: instanceId }),
+ // Half sign in by account (the featured rows), half not (folded under More providers).
+ ...(index % 2 === 0 ? { authentication: { method: "device-code" as const, signOut: true } } : {}),
+ });
+
+ it.each(Object.keys(STATES))("reaches each one when it is %s", async (name) => {
+ const state = STATES[name]!;
+ const all = catalog.map((entry, index) => instance(entry, index, state === "hidden" ? { state: "available", authenticated: true } : state));
+ server.all = all;
+ server.hidden = new Set(state === "hidden" ? all.map((one) => one.instanceId) : []);
+ fixture.state = { ...fixture.state, instances: all.filter((one) => !server.hidden.has(one.instanceId)) };
+ await render();
+ const shown = new Set(rows());
+ const hidden = new Set(hiddenRows());
+ const unreachable = all.filter((one) => {
+ if (shown.has(one.instanceId) || hidden.has(one.instanceId)) return false;
+ // A provider's accounts share one card, the row of its first account.
+ const group = accountGroupOf(one);
+ return !(group && all.some((other) => accountGroupOf(other) === group && shown.has(other.instanceId)));
+ }).map((one) => one.instanceId);
+ expect(unreachable).toEqual([]);
+ if (state === "hidden") expect(hidden.size).toBe(all.length);
+ });
+});
diff --git a/src/components/EnginesSettings.tsx b/src/components/EnginesSettings.tsx
index 06e4b1a18d..18ea7a4a36 100644
--- a/src/components/EnginesSettings.tsx
+++ b/src/components/EnginesSettings.tsx
@@ -20,6 +20,9 @@ import { Select } from "./Select";
import { SettingsFoldRow, SettingsGroup, SettingsMark, SettingsRows, StatusDot } from "./SettingsPrimitives";
import { OllamaModels, ollamaShortStatus } from "./OllamaStatusLine";
import { InstanceProviderMark } from "./ProviderIcons";
+import { HiddenEngines, HiddenProviderRows, useHiddenProviders } from "./HiddenProviders";
+
+export { HiddenEngines };
interface ProbeResult {
ok: boolean;
@@ -324,8 +327,9 @@ function EngineAdvanced({ instance }: { instance: InstanceInfo }) {
);
}
-/** Remove drops an added account; Sign out forgets a signed-in account's Google sign-in, the first one too. */
-function AntigravityAccountAction({ instance, action }: { instance: InstanceInfo; action: "remove" | "signOut" }) {
+/** 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" }) {
const { state, dispatch, refreshInstances } = useStore();
const [confirming, setConfirming] = useState(false);
const [running, setRunning] = useState(false);
@@ -403,13 +407,16 @@ 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>
+ )}
{instance.freeUpSpace && <AntigravityFreeSpace instance={instance} />}
{instance.driverKind === "antigravityAgent" && (
<div className="mt-3 space-y-3">
{instance.snapshot.authenticated && <p className="break-words text-[12px] text-ink-secondary">{instance.snapshot.account?.email ?? t("engineSetup.antigravity.emailUnavailable")}</p>}
<AntigravityAddAccount source={instance} />
- {instance.snapshot.authenticated === true && instance.authentication?.signOut === true && <AntigravityAccountAction instance={instance} action="signOut" />}
- {instance.instanceId.startsWith("antigravity-") && <AntigravityAccountAction instance={instance} action="remove" />}
+ {instance.snapshot.authenticated === true && instance.authentication?.signOut === true && <EngineAccountAction instance={instance} action="signOut" />}
+ {instance.instanceId.startsWith("antigravity-") && <EngineAccountAction instance={instance} action="remove" />}
</div>
)}
<EngineAdvanced instance={instance} />
@@ -458,6 +465,8 @@ function SimpleEngines({ rows, isReady, renderEngine, more }: {
more: { id: string; open: boolean; onToggle: () => void };
}) {
const [opened, setOpened] = useState<string | null>(null);
+ // A hidden provider is gone from the instance list, so without these rows nothing in Settings brings it back.
+ const hidden = useHiddenProviders();
const featured = rows.filter((instance) => isReady(instance) || instance.authentication !== undefined);
const others = rows.filter((instance) => !featured.includes(instance));
const row = (instance: InstanceInfo, compact: boolean) => {
@@ -469,10 +478,11 @@ function SimpleEngines({ rows, isReady, renderEngine, more }: {
<SettingsGroup label={t("settings.ai.providers")} actions={<RefreshEngines />}>
<SettingsRows icons>
{featured.map((instance) => row(instance, false))}
- {others.length > 0 && (
- <SettingsFoldRow id={more.id} title={t("settings.ai.moreProviders")} value={String(others.length)} open={more.open} onToggle={more.onToggle}
+ {others.length + hidden.length > 0 && (
+ <SettingsFoldRow id={more.id} title={t("settings.ai.moreProviders")} value={String(others.length + hidden.length)} open={more.open} onToggle={more.onToggle}
leading={<span aria-hidden="true" />}>
{others.map((instance) => row(instance, true))}
+ <HiddenProviderRows hidden={hidden} />
</SettingsFoldRow>
)}
</SettingsRows>
@@ -480,49 +490,6 @@ function SimpleEngines({ rows, isReady, renderEngine, more }: {
);
}
-/** Providers someone hid: listed apart, folded, each one click from coming back. */
-export function HiddenEngines() {
- const { state, refreshInstances } = useStore();
- const [hidden, setHidden] = useState<Array<{ instanceId: string; displayName: string }>>([]);
- const [busy, setBusy] = useState<string | null>(null);
- const [error, setError] = useState<string | null>(null);
- useEffect(() => {
- let alive = true;
- // An older server has no such route: nothing is hidden there.
- api<{ instances?: Array<{ instanceId: string; displayName: string }> } | undefined>("/api/instances/hidden")
- .then((result) => { if (alive) setHidden(Array.isArray(result?.instances) ? result.instances : []); })
- .catch(() => {});
- return () => { alive = false; };
- }, [state.instances]);
- if (hidden.length === 0) return null;
- const unhide = (instanceId: string) => {
- setBusy(instanceId);
- setError(null);
- api(`/api/instances/${encodeURIComponent(instanceId)}`, { method: "PATCH", body: JSON.stringify({ hidden: false }) })
- .then(() => Promise.resolve(refreshInstances()).catch(() => {}))
- .catch((e) => setError(e.message))
- .finally(() => setBusy(null));
- };
- return (
- <details data-hidden-engines className="px-4">
- <summary className="cursor-pointer text-[13px] font-medium text-ink-secondary hover:text-ink">{t("engines.hiddenTitle", { count: String(hidden.length) })}</summary>
- <p className="mt-2 text-[12px] text-ink-secondary">{t("engines.hiddenHint")}</p>
- <div className="mt-2 flex flex-col gap-1.5">
- {hidden.map((entry) => (
- <div key={entry.instanceId} className="flex items-center justify-between gap-3 rounded-lg border border-hairline/40 bg-inset 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)}
- className="shrink-0 text-[12px] font-medium text-accent hover:underline disabled:opacity-50">
- {busy === entry.instanceId ? t("engines.unhiding") : t("engines.unhide")}
- </button>
- </div>
- ))}
- </div>
- {error && <div role="alert" className="mt-1 text-[12px] text-danger">{error}</div>}
- </details>
- );
-}
-
export function EnginesSettings({ simple = false, more }: { simple?: boolean; more?: { id: string; open: boolean; onToggle: () => void } }) {
const { state } = useStore();
// Leaving Settings ends the "now uses the copy OpenMausBot installed" lines.
diff --git a/src/components/HiddenProviders.tsx b/src/components/HiddenProviders.tsx
new file mode 100644
index 0000000000..7fbc7a69c9
--- /dev/null
+++ b/src/components/HiddenProviders.tsx
@@ -0,0 +1,88 @@
+import { useEffect, useState } from "react";
+
+import { api, useStore } from "@/state/store";
+import { t } from "@/lib/i18n";
+import { InstanceProviderMark } from "./ProviderIcons";
+import { SettingsMark } from "./SettingsPrimitives";
+
+/** A provider someone hid: the server leaves it out of /api/instances and every model list (withInstanceConfig), so
+ * these lists are the only way back to it. */
+export interface HiddenProvider { instanceId: string; driverKind?: string; displayName: string }
+
+/** GET /api/instances/hidden, read again whenever the instance list changes (a Hide or an Unhide refreshes it). */
+export function useHiddenProviders(): HiddenProvider[] {
+ const { state } = useStore();
+ const [hidden, setHidden] = useState<HiddenProvider[]>([]);
+ useEffect(() => {
+ let alive = true;
+ // An older server has no such route: nothing is hidden there.
+ api<{ instances?: HiddenProvider[] } | undefined>("/api/instances/hidden")
+ .then((result) => { if (alive) setHidden(Array.isArray(result?.instances) ? result.instances : []); })
+ .catch(() => {});
+ return () => { alive = false; };
+ }, [state.instances]);
+ return hidden;
+}
+
+function useUnhide() {
+ const { refreshInstances } = useStore();
+ const [busy, setBusy] = useState<string | null>(null);
+ const [error, setError] = useState<string | null>(null);
+ const unhide = (instanceId: string) => {
+ setBusy(instanceId);
+ setError(null);
+ api(`/api/instances/${encodeURIComponent(instanceId)}`, { method: "PATCH", body: JSON.stringify({ hidden: false }) })
+ .then(() => Promise.resolve(refreshInstances()).catch(() => {}))
+ .catch((e) => setError(e instanceof Error ? e.message : String(e)))
+ .finally(() => setBusy(null));
+ };
+ return { busy, error, unhide };
+}
+
+/** The hidden providers as the last rows of Settings → AI → More providers: each with its mark, a status saying it is
+ * hidden, and Unhide. */
+export function HiddenProviderRows({ hidden }: { hidden: HiddenProvider[] }) {
+ const { busy, error, unhide } = useUnhide();
+ if (hidden.length === 0) return null;
+ return <>
+ <div data-hidden-engines="" className="px-4 pb-1 pt-3 text-[12px] font-medium text-ink-secondary">{t("engines.hiddenTitle", { count: String(hidden.length) })}</div>
+ {hidden.map((entry) => (
+ <div key={entry.instanceId} data-hidden-engine={entry.instanceId} className="flex min-h-11 items-center gap-3 px-4 py-1.5">
+ <SettingsMark><InstanceProviderMark instance={{ driverKind: entry.driverKind ?? "" }} size={18} subtle /></SettingsMark>
+ <span className="flex min-w-0 flex-1 flex-col gap-0.5">
+ <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">
+ {busy === entry.instanceId ? t("engines.unhiding") : t("engines.unhide")}
+ </button>
+ </div>
+ ))}
+ {error && <p role="alert" className="px-4 pb-2 text-[12px] text-danger">{error}</p>}
+ </>;
+}
+
+/** Providers someone hid, for the full engines page: listed apart, folded, each one click from coming back. */
+export function HiddenEngines() {
+ const hidden = useHiddenProviders();
+ const { busy, error, unhide } = useUnhide();
+ if (hidden.length === 0) return null;
+ return (
+ <details data-hidden-engines className="px-4">
+ <summary className="cursor-pointer text-[13px] font-medium text-ink-secondary hover:text-ink">{t("engines.hiddenTitle", { count: String(hidden.length) })}</summary>
+ <p className="mt-2 text-[12px] text-ink-secondary">{t("engines.hiddenHint")}</p>
+ <div className="mt-2 flex flex-col gap-1.5">
+ {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)}
+ className="shrink-0 text-[12px] font-medium text-accent hover:underline disabled:opacity-50">
+ {busy === entry.instanceId ? t("engines.unhiding") : t("engines.unhide")}
+ </button>
+ </div>
+ ))}
+ </div>
+ {error && <div role="alert" className="mt-1 text-[12px] text-danger">{error}</div>}
+ </details>
+ );
+}
diff --git a/src/components/settings/closed-scale.test.ts b/src/components/settings/closed-scale.test.ts
index a213443588..45149527be 100644
--- a/src/components/settings/closed-scale.test.ts
+++ b/src/components/settings/closed-scale.test.ts
@@ -31,6 +31,7 @@ const FILES = [
"src/components/DiagnosticsRow.tsx",
"src/components/EnginesSettings.tsx",
"src/components/EveryBotRules.tsx",
+ "src/components/HiddenProviders.tsx",
"src/components/HomeLine.tsx",
"src/components/ImageGenerationSettings.tsx",
"src/components/ImportSettings.tsx",
@@ -100,7 +101,7 @@ const DEBT: Record<string, number> = {
"src/components/BrowserProfilesManager.tsx": 10,
"src/components/CloudAccountSettings.tsx": 2,
"src/components/CloudUsageMeter.tsx": 9,
- "src/components/EnginesSettings.tsx": 16,
+ "src/components/EnginesSettings.tsx": 14,
"src/components/HomeLine.tsx": 1,
"src/components/ImportSettings.tsx": 8,
"src/components/LocalComputerSection.tsx": 11,
diff --git a/src/components/settings/settings-index.test.ts b/src/components/settings/settings-index.test.ts
index b3ee8f8a6f..3bf9f59074 100644
--- a/src/components/settings/settings-index.test.ts
+++ b/src/components/settings/settings-index.test.ts
@@ -160,6 +160,8 @@ describe("search", () => {
it.each(["cancel", "billing", "invoice", "subscription", "refund"])("puts Plan & billing first for “%s”", (query) => expect(first(query)?.page).toBe("plan"));
it.each(["voice", "microphone", "dictation"])("puts the Talk shortcut first for “%s” on the desktop", (query) => expect(first(query)?.id).toBe("talk"));
it("puts All bots on You and your bots", () => expect(first("all bots")?.page).toBe("bots"));
+ it.each(["kimi", "hidden providers", "unhide"])("puts AI › Providers first for “%s”", (query) => expect(first(query)?.id).toBe("providers"));
+ it("finds AI › Providers for “cursor” beside importing from Cursor", () => expect(find("cursor").map((hit) => hit.entry.id)).toEqual(expect.arrayContaining(["providers", "ai-apps"])));
it("finds Activity in Data where it exists: a browser, for an admin", () => {
expect(first("activity", PEOPLE["a team admin"])?.anchor).toBe("activity");
expect(find("activity", fullContext()).some((hit) => hit.entry.anchor === "activity")).toBe(false);
diff --git a/src/components/settings/settings-index.ts b/src/components/settings/settings-index.ts
index ee0992b476..57e7043545 100644
--- a/src/components/settings/settings-index.ts
+++ b/src/components/settings/settings-index.ts
@@ -184,7 +184,7 @@ export const SETTINGS_INDEX: readonly SettingsIndexEntry[] = [
{ id: "sidebar-color", page: "overview", anchor: "sidebar", labelKey: "placeLook.sidebarColor", sectionKey: "settings.overview.sidebar", synonyms: ["color", "colour", "tint", "cloud color"] },
{ id: "sidebar-picture", page: "overview", anchor: "sidebar", labelKey: "placeLook.sidebarPicture", sectionKey: "settings.overview.sidebar", topFor: ["wallpaper", "background", "sidebar image"], synonyms: ["picture", "banner", "image"] },
{ id: "show-helper", page: "overview", anchor: "sidebar", labelKey: "settings.search.showHelper", sectionKey: "settings.overview.sidebar", synonyms: ["helper", "starter", "default bot"] },
- { id: "providers", page: "ai", anchor: "providers", labelKey: "settings.ai.providers", topFor: ["ollama", "lm studio", "local model", "model providers"], synonyms: ["models", "engines", "claude", "codex", "sign in", "subscription", "cli"] },
+ { id: "providers", page: "ai", anchor: "providers", labelKey: "settings.ai.providers", topFor: ["ollama", "lm studio", "local model", "model providers"], synonyms: ["models", "engines", "claude", "codex", "sign in", "subscription", "cli", "kimi", "cursor", "hidden providers", "unhide"] },
{ id: "keys", page: "ai", anchor: "ai-keys", labelKey: "settings.ai.otherServices", topFor: ["api keys", "api key"], synonyms: ["keys", "key", "openai", "anthropic", "xai", "openrouter", "router", "base url", "mistral", "groq", "cerebras", "deepseek", "opencode", "composio", "elevenlabs"] },
{ id: "backup-model", page: "ai", anchor: "backup-model", labelKey: "settings.recovery.title", sectionKey: "settings.ai.backupModel", advanced: true, synonyms: ["backup model", "fallback", "recovery"] },
{ id: "routing", page: "ai", anchor: "routing", labelKey: "settings.ai.routing", advanced: true, synonyms: ["decision and extraction", "decision", "extraction", "routing", "who answers", "jev", "typesafe", "cloudflare", "workers ai"] },
diff --git a/src/locales/en.json b/src/locales/en.json
index 3c753a8911..83b1380e9c 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -10717,6 +10717,7 @@
"settings.ai.ready": "Ready",
"settings.ai.notSetUp": "Not set up",
"settings.ai.attention": "Needs attention",
+ "settings.ai.hiddenStatus": "Hidden from every model list",
"settings.ai.otherServices": "Other services",
"backup.exportShort": "Password-protected. Saved logins are not included.",
"backup.importShort": "Bring back bots and conversations from a backup file.",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 33255319ad..7b2557ec6d 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -10700,6 +10700,7 @@
"settings.ai.ready": "Pronto",
"settings.ai.notSetUp": "Não configurado",
"settings.ai.attention": "Precisa de atenção",
+ "settings.ai.hiddenStatus": "Oculto em todas as listas de modelos",
"settings.ai.otherServices": "Outros serviços",
"backup.exportShort": "Protegido por senha. Logins salvos não são incluídos.",
"backup.importShort": "Traga de volta bots e conversas de um arquivo de backup.",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 1e8953788c..a72b96b83b 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -8644,6 +8644,7 @@
"settings.ai.ready": "就绪",
"settings.ai.notSetUp": "未设置",
"settings.ai.attention": "需要处理",
+ "settings.ai.hiddenStatus": "已从所有模型列表中隐藏",
"settings.ai.otherServices": "其他服务",
"backup.exportShort": "有密码保护。不包含已保存的登录信息。",
"backup.importShort": "从备份文件恢复机器人和对话。",