Skip to content

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

Merge origin/main into train/nov15b-q1

milind-soni01bafa06337c
diff --cc src/components/EnginesSettings.tsx
index 14940baa08,33ff2ca5b5..296a459d38
--- a/src/components/EnginesSettings.tsx
+++ b/src/components/EnginesSettings.tsx
@@@ -329,9 -327,9 +329,9 @@@ function EngineAdvanced({ instance }:
);
}
-/** 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, cli = false }: { instance: InstanceInfo; action: "remove" | "signOut"; cli?: boolean }) {
+/** Remove drops an added Antigravity account or an added server; 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, removeBody = "accounts.removeBodyAntigravity" }: { instance: InstanceInfo; action: "remove" | "signOut"; removeBody?: LocaleKey }) {
++function EngineAccountAction({ instance, action, cli = false, removeBody = "accounts.removeBodyAntigravity" }: { instance: InstanceInfo; action: "remove" | "signOut"; cli?: boolean; removeBody?: LocaleKey }) {
const { state, dispatch, refreshInstances } = useStore();
const [confirming, setConfirming] = useState(false);
const [running, setRunning] = useState(false);
@@@ -363,7 -361,10 +363,10 @@@
</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 ? removeBody : "accounts.signOutBody")}
- body={remove ? t("accounts.removeBodyAntigravity") : cli
++ body={remove ? t(removeBody) : 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()} />
</>;
}