Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Say under "Add another ChatGPT account" that Business/Enterprise workspaces can block it
AdityaUmale1eb94d1e6046
diff --git a/src/components/EngineAccounts.tsx b/src/components/EngineAccounts.tsxindex ad0757d9be..45ba2165fe 100644--- a/src/components/EngineAccounts.tsx+++ b/src/components/EngineAccounts.tsx@@ -336,7 +336,10 @@ export function AccountsCard({ group, accounts, advanced, bare = false }: { grouonSignInDone={() => setSigningIn((current) => current === instance.instanceId ? null : current)} />))}</ul>- {!primary.snapshot.authenticationUnavailableReason && <AddAccount label={t(COPY[group].add)} endpoint={`/api/instances/${group}-accounts`} folder={group === "claude"} onAdded={setSigningIn} />}+ {!primary.snapshot.authenticationUnavailableReason && <>+ <AddAccount label={t(COPY[group].add)} endpoint={`/api/instances/${group}-accounts`} folder={group === "claude"} onAdded={setSigningIn} />+ {group === "chatgpt" && <p className="px-2 text-[12px] leading-relaxed text-ink-secondary">{t("accounts.addChatgptWorkspaceNote")}</p>}+ </>}</div>)}{primary.snapshot.update && <EngineUpdateNotice update={primary.snapshot.update} instance={primary} className="mt-3" quiet />}diff --git a/src/components/EnginesSettings.test.ts b/src/components/EnginesSettings.test.tsindex db5c30ade4..edba3d7cd6 100644--- a/src/components/EnginesSettings.test.ts+++ b/src/components/EnginesSettings.test.ts@@ -130,6 +130,26 @@ describe("Settings → Engines → setup cards", () => {expect(unsupported).not.toMatch(/<button[^>]*>Sign in<\/button>/);});+ it("says under Add another ChatGPT account that Business and Enterprise workspaces can block it, on the ChatGPT card only", () => {+ vi.stubGlobal("window", {});+ vi.stubGlobal("navigator", { userAgent: "Linux" });+ fixture.bots = [];+ const note = "ChatGPT Business and Enterprise workspaces can block adding an account here";+ const chatgpt: InstanceInfo = {+ instanceId: "chatgpt", driverKind: "codex", displayName: "ChatGPT", cliDefault: "codex",+ snapshot: { state: "available", authenticated: true, chatgptPlan: true }, models: { default: "gpt", options: [] },+ };+ fixture.instances = [chatgpt];+ const html = renderToStaticMarkup(createElement(EnginesSettings));+ expect(html.split(note)).toHaveLength(2);+ expect(html).toContain("3p_delegated_access_policy_denied");+ expect(html.indexOf(note)).toBeGreaterThan(html.indexOf("Add another ChatGPT account"));+ fixture.instances = [{ instanceId: "claude", driverKind: "claudeAgent", displayName: "Claude", cliDefault: "claude", snapshot: { state: "available", authenticated: true }, models: { default: "sonnet", options: [] } }];+ expect(renderToStaticMarkup(createElement(EnginesSettings))).not.toContain(note);+ fixture.instances = [{ ...chatgpt, readOnly: true }];+ expect(renderToStaticMarkup(createElement(EnginesSettings))).not.toContain(note);+ });+it("shows the actual Google account email with an honest fallback", () => {vi.stubGlobal("window", {});fixture.bots = [];diff --git a/src/locales/en.json b/src/locales/en.jsonindex 611cb6fc76..02dd4f6197 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -4331,6 +4331,7 @@"accounts.removeBodyAntigravity": "This removes the account and its sign-in from {app}. Your other Antigravity accounts stay connected.","accounts.addClaude": "Add another Claude account","accounts.addChatgpt": "Add another ChatGPT account",+ "accounts.addChatgptWorkspaceNote": "ChatGPT Business and Enterprise workspaces can block adding an account here (OpenAI shows 3p_delegated_access_policy_denied).","accounts.nameLabel": "Account name","accounts.namePlaceholder": "Work","accounts.addSubmit": "Add and sign in",