Skip to content

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

Sign-in on a Cloud: name the emailed Claude code, show where ChatGPT device code is turned on, and say when a sign-in was interrupted

milind-soni94a1a6d1f11c
diff --git a/server/drivers/claude-login-auth.test.ts b/server/drivers/claude-login-auth.test.ts
index 97acd36297..d1d6f61510 100644
--- a/server/drivers/claude-login-auth.test.ts
+++ b/server/drivers/claude-login-auth.test.ts
@@ -74,6 +74,10 @@ describe("the sign-in link and code checks", () => {
expect(claudeLoginCode(" GOODCODE#abc ")).toBe("GOODCODE#abc");
expect(claudeLoginCode("short")).toBeNull();
expect(claudeLoginCode("has spaces in it here")).toBeNull();
+ // The login code Claude emails belongs on Claude's page, not here.
+ expect(claudeLoginCode("085764")).toBeNull();
+ expect(claudeLoginCode("08576412")).toBeNull();
+ expect(claudeLoginCode("085764123")).toBe("085764123");
});
});
@@ -136,7 +140,8 @@ describe("Claude server-owned sign-in", () => {
it("reports a rejected code without keeping the process, and refuses malformed codes before sending", async () => {
const controller = create();
const start = await controller.start();
- await expect(controller.complete(start.flowId!, "bad")).rejects.toThrow(/whole code/);
+ await expect(controller.complete(start.flowId!, "bad")).rejects.toThrow(/login code Claude emails you, enter it on Claude's page, click Authorize/);
+ await expect(controller.complete(start.flowId!, "08576412")).rejects.toThrow(/not the code from Claude's page/);
await expect(controller.complete(start.flowId!, "WRONGCODE#abc")).rejects.toThrow(/did not accept that code/);
expect(await controller.get(start.flowId!)).toMatchObject({ phase: "failed" });
const pid = Number(readFileSync(join(home, "pid"), "utf8"));
diff --git a/server/drivers/claude-login-auth.ts b/server/drivers/claude-login-auth.ts
index 53cf40bac4..b5045de1b3 100644
--- a/server/drivers/claude-login-auth.ts
+++ b/server/drivers/claude-login-auth.ts
@@ -41,12 +41,15 @@ export function claudeLoginPrompt(output: string): { authorizationUrl: string }
return null;
}
-/** What Anthropic's page shows after sign-in: a code, sometimes with `#state`. */
+/** What Anthropic's page shows after sign-in: a code, sometimes with `#state`. Never the short digits-only login code
+ * Claude emails, which belongs on Claude's own page. */
export function claudeLoginCode(value: string): string | null {
const code = value.trim();
- return /^[A-Za-z0-9_\-#.:]{8,1024}$/.test(code) ? code : null;
+ return /^[A-Za-z0-9_\-#.:]{8,1024}$/.test(code) && !/^\d{1,8}$/.test(code) ? code : null;
}
+const NOT_THE_CODE = "That is not the code from Claude's page. If it is the login code Claude emails you, enter it on Claude's page, click Authorize, then paste the longer code Claude shows.";
+
type Flow = {
status: ProviderAuthenticationStatus;
child: ChildProcess | null;
@@ -148,7 +151,7 @@ export class ClaudeLoginController {
if (flow.status.phase !== "waiting" || !flow.ready) throw new Error(NOT_AVAILABLE);
if (flow.codeSent) throw new Error("A code was already sent for this sign-in. Wait for the result, or cancel and start again.");
const code = claudeLoginCode(pasted);
- if (!code) throw withSignInReason(new Error("Paste the whole code shown on Anthropic's page after signing in."), "wrong_code");
+ if (!code) throw withSignInReason(new Error(NOT_THE_CODE), "wrong_code");
const child = flow.child;
const stdin = child?.stdin;
if (!child || !stdin || child.exitCode !== null || child.signalCode !== null) throw new Error(NOT_AVAILABLE);
diff --git a/server/drivers/codex-device-auth.test.ts b/server/drivers/codex-device-auth.test.ts
index f151b41015..bb7911309a 100644
--- a/server/drivers/codex-device-auth.test.ts
+++ b/server/drivers/codex-device-auth.test.ts
@@ -289,7 +289,7 @@ describe("Codex server-owned device authentication", () => {
expect(existsSync(join(home, "calls.jsonl"))).toBe(false);
});
- it.each([["old", "needs updating"], ["disabled", "Enable device-code login"], ["overflow", "unexpected sign-in response"]])("reports a safe, actionable %s failure", async (mode, message) => {
+ it.each([["old", "needs updating"], ["disabled", "did not allow device code sign-in"], ["overflow", "unexpected sign-in response"]])("reports a safe, actionable %s failure", async (mode, message) => {
const controller = create(mode);
await expect(controller.start()).rejects.toThrow(message);
await controller.cancel();
diff --git a/server/drivers/codex-device-auth.ts b/server/drivers/codex-device-auth.ts
index c699b9bf15..38e3bf0d34 100644
--- a/server/drivers/codex-device-auth.ts
+++ b/server/drivers/codex-device-auth.ts
@@ -15,12 +15,12 @@ function loginFailure(output: string): string {
return "This server's Codex CLI needs updating for browser sign-in. Run npm install -g @openai/codex@latest on the server, then try again.";
}
if (/device.{0,40}(disabled|not enabled|not allowed)|enable.{0,40}device/i.test(output)) {
- return "Enable device-code login in your ChatGPT security settings or ask your workspace admin to allow it, then try again.";
+ return "OpenAI did not allow device code sign-in. Turn it on in ChatGPT → Settings → Security (your ChatGPT admin may need to), then try again.";
}
if (/expired|expiration|timed out/i.test(output)) {
return "The ChatGPT sign-in code expired. Start sign-in again for a new code.";
}
- return "ChatGPT sign-in did not finish. Check the server's connection and that device-code login is enabled in ChatGPT, then try again.";
+ return "ChatGPT sign-in did not finish. If OpenAI said device code sign-in isn't allowed, turn it on in ChatGPT → Settings → Security (your ChatGPT admin may need to), then try again.";
}
/** `loginFailure` as a fixed code: an expired code, device sign-in refused by the account's settings, else the command ended. */
diff --git a/src/components/ClaudeSignIn.interaction.test.ts b/src/components/ClaudeSignIn.interaction.test.ts
index 3990ee8131..739b54980c 100644
--- a/src/components/ClaudeSignIn.interaction.test.ts
+++ b/src/components/ClaudeSignIn.interaction.test.ts
@@ -78,14 +78,55 @@ it("ends the flow with Claude Code's own words when it refuses the code, and off
it("keeps the flow open after a code Claude Code never took, so a typo can be fixed", async () => {
fixture.api.mockResolvedValueOnce({ auth: waiting })
- .mockRejectedValueOnce(new ApiError("Paste the whole code shown on Anthropic's page after signing in.", 500))
+ .mockRejectedValueOnce(new ApiError("That is not the code from Claude's page. If it is the login code Claude emails you, enter it on Claude's page, click Authorize, then paste the longer code Claude shows.", 500))
.mockResolvedValueOnce({ auth: waiting });
await startAndPaste("half-a-code");
expect(fixture.values[AUTH]).toMatchObject({ phase: "waiting", flowId: "flow-one" });
- expect(fixture.values[ERROR]).toBe("Paste the whole code shown on Anthropic's page after signing in.");
+ expect(fixture.values[ERROR]).toBe("That is not the code from Claude's page. If it is the login code Claude emails you, enter it on Claude's page, click Authorize, then paste the longer code Claude shows.");
expect(fixture.track).not.toHaveBeenCalled();
});
+it.each(["085764", "08576412", "abc"])("says at once that %s is the emailed login code, not Anthropic's, and keeps Finish off", async (pasted) => {
+ fixture.api.mockResolvedValueOnce({ auth: waiting });
+ render().find((node) => node.type === "button")!.props.onClick!();
+ await flush();
+ fixture.values[CODE] = pasted;
+ const tree = render();
+ const hint = tree.find((node) => node.type === "p" && JSON.stringify(node.props.children).includes("login code Claude emails you"));
+ expect(hint).toBeDefined();
+ expect(JSON.stringify(hint!.props.children)).toContain("click Authorize, then paste the longer code Claude shows");
+ const finish = tree.find((node) => node.type === "button" && (node.props as { type?: string }).type === "submit")!;
+ expect((finish.props as { disabled?: boolean }).disabled).toBe(true);
+ fixture.values[CODE] = "alice-12345678#state";
+ const ready = render();
+ expect(ready.some((node) => node.type === "p" && JSON.stringify(node.props.children).includes("login code Claude emails you"))).toBe(false);
+ expect((ready.find((node) => node.type === "button" && (node.props as { type?: string }).type === "submit")!.props as { disabled?: boolean }).disabled).toBe(false);
+});
+
+const INTERRUPTED = "This sign-in was interrupted because the server stopped. Start sign-in again.";
+it.each([
+ ["the code is sent (its reason)", [new ApiError(INTERRUPTED, 404, { error: INTERRUPTED, reason: "interrupted" })]],
+ ["the code is sent (an older server's 404)", [new ApiError("This sign-in is no longer available in this browser. Start a new sign-in.", 404)]],
+ ["the status check after a refusal (its reason)", [new ApiError("This sign-in is no longer available. Start sign-in again.", 500), { auth: { phase: "failed", flowId: "flow-one", authorizationUrl: null, expiresAt: null, reason: "interrupted" } }]],
+ ["the status check after a refusal (an older server's 404)", [new ApiError("This sign-in is no longer available. Start sign-in again.", 500), new ApiError("This sign-in is no longer available in this browser. Start a new sign-in.", 404)]],
+] as const)("says the sign-in was interrupted when the server lost it at %s, and starts a fresh one", async (_when, answers) => {
+ fixture.api.mockResolvedValueOnce({ auth: waiting });
+ for (const answer of answers) {
+ if (answer instanceof Error) fixture.api.mockRejectedValueOnce(answer);
+ else fixture.api.mockResolvedValueOnce(answer);
+ }
+ await startAndPaste("alice-12345678#state");
+ expect(fixture.values[AUTH]).toMatchObject({ phase: "failed", message: "This sign-in was interrupted. Start again." });
+ const tree = render();
+ expect(tree.some((node) => node.type === "p" && node.props.children === "This sign-in was interrupted. Start again.")).toBe(true);
+ const again = tree.find((node) => node.type === "button" && JSON.stringify(node.props.children).includes("Try again"))!;
+ fixture.api.mockResolvedValueOnce({ auth: { ...waiting, flowId: "flow-two" } });
+ await again.props.onClick!();
+ await flush();
+ expect(fixture.api).toHaveBeenLastCalledWith("/api/instances/claude/auth/start", { method: "POST" });
+ expect(fixture.values[AUTH]).toMatchObject({ phase: "waiting", flowId: "flow-two" });
+});
+
it("reports no sign-in when the person cancels or the code expires", async () => {
fixture.api.mockResolvedValueOnce({ auth: waiting }).mockResolvedValueOnce({});
render().find((node) => node.type === "button")!.props.onClick!();
diff --git a/src/components/ClaudeSignIn.tsx b/src/components/ClaudeSignIn.tsx
index 1c91fdc288..93b268fceb 100644
--- a/src/components/ClaudeSignIn.tsx
+++ b/src/components/ClaudeSignIn.tsx
@@ -4,7 +4,7 @@ import { api, ApiError, useStore } from "@/state/store";
import { t } from "@/lib/i18n";
import { openExternalLink } from "@/lib/app-links";
import { engineSignedIn } from "@/lib/product-events";
-import { type DeviceSignInStatus } from "./DeviceSignIn";
+import { signInInterrupted, type DeviceSignInStatus } from "./DeviceSignIn";
const SIGN_IN_HOSTS = ["claude.com", "claude.ai", "console.anthropic.com", "platform.claude.com"];
@@ -28,6 +28,13 @@ function ended(phase: "expired" | "failed", message?: string): DeviceSignInStatu
return { phase, flowId: null, authorizationUrl: null, expiresAt: null, ...(message ? { message } : {}) };
}
+/** Anthropic's code is long (`code#state`); a short or digits-only one is the login code Claude emails, which belongs on
+ * Claude's own page. The server refuses it too. */
+export function looksLikeEmailedCode(value: string): boolean {
+ const code = value.trim();
+ return code.length > 0 && (code.length < 8 || /^\d{1,8}$/.test(code));
+}
+
/** `autoStart` begins at once and opens Anthropic's page; `onDone` hears the outcome so an account list can close it. */
export function ClaudeSignIn({ instanceId, autoStart = false, onDone, onStart }: {
instanceId: string;
@@ -97,16 +104,21 @@ export function ClaudeSignIn({ instanceId, autoStart = false, onDone, onStart }:
await succeeded();
} catch (cause) {
const message = cause instanceof Error ? cause.message : t("engineSetup.device.failed");
- if (cause instanceof ApiError && [401, 403, 404, 410].includes(cause.status)) {
+ // The server no longer has this sign-in, as after the Cloud restarted: say so and offer a fresh one.
+ if (signInInterrupted(cause)) {
+ setAuth(ended("failed", t("engineSetup.device.interrupted")));
+ return;
+ }
+ if (cause instanceof ApiError && [401, 403].includes(cause.status)) {
setAuth(ended("expired"));
return;
}
// A code Claude Code refused ends the flow; one it never took (a typo) leaves it open to try again.
const still = await api(`${base}/status?flowId=${encodeURIComponent(auth.flowId)}`)
- .then(({ auth: next }: { auth: DeviceSignInStatus }) => next.phase === "waiting")
- .catch(() => false);
- if (still) setError(message);
- else setAuth(ended("failed", message));
+ .then(({ auth: next }: { auth: DeviceSignInStatus }) => next.phase === "waiting" ? "waiting" : signInInterrupted(next) ? "gone" : "ended")
+ .catch((statusCause: unknown) => signInInterrupted(statusCause) ? "gone" : "ended");
+ if (still === "waiting") setError(message);
+ else setAuth(ended("failed", still === "gone" ? t("engineSetup.device.interrupted") : message));
} finally {
setBusy(null);
}
@@ -133,6 +145,7 @@ export function ClaudeSignIn({ instanceId, autoStart = false, onDone, onStart }:
}
if (auth?.phase === "waiting" && link) {
+ const emailedCode = looksLikeEmailedCode(code);
return (
<form data-claude-sign-in className="mt-3 space-y-3 rounded-xl border border-hairline/50 bg-app p-3" onSubmit={(event) => { event.preventDefault(); void finish(); }}>
<div className="space-y-1.5">
@@ -154,13 +167,15 @@ export function ClaudeSignIn({ instanceId, autoStart = false, onDone, onStart }:
spellCheck={false}
autoFocus
placeholder={t("accounts.claude.codePlaceholder")}
+ aria-describedby={emailedCode ? `claude-code-hint-${instanceId}` : undefined}
className="min-w-0 flex-1 rounded-lg border border-hairline/40 bg-inset px-3 py-2 font-mono text-[13px] text-ink outline-none focus:border-accent-border"
/>
- <button type="submit" disabled={busy !== null || code.trim().length < 8} className="flex shrink-0 items-center gap-1.5 rounded-lg bg-accent px-3 py-2 text-[13px] font-semibold text-white hover:brightness-110 disabled:opacity-50">
+ <button type="submit" disabled={busy !== null || code.trim().length < 8 || emailedCode} className="flex shrink-0 items-center gap-1.5 rounded-lg bg-accent px-3 py-2 text-[13px] font-semibold text-white hover:brightness-110 disabled:opacity-50">
{busy === "finish" && <Loader2 size={13} className="animate-spin" />}
{busy === "finish" ? t("engineSetup.claude.finishing") : t("accounts.claude.finish")}
</button>
</div>
+ {emailedCode && <p id={`claude-code-hint-${instanceId}`} role="status" className="text-[12px] leading-relaxed text-warning">{t("accounts.claude.emailCode")}</p>}
</div>
{error && <p role="alert" className="text-[12px] text-danger">{error}</p>}
<div className="flex items-center justify-between gap-3">
diff --git a/src/components/DeviceSignIn.interaction.test.ts b/src/components/DeviceSignIn.interaction.test.ts
new file mode 100644
index 0000000000..cc8e154a75
--- /dev/null
+++ b/src/components/DeviceSignIn.interaction.test.ts
@@ -0,0 +1,105 @@
+import { Children, isValidElement, type ReactElement, type ReactNode } from "react";
+import { afterEach, beforeEach, expect, it, vi } from "vitest";
+
+const fixture = vi.hoisted(() => ({
+ values: [] as unknown[], index: 0, effects: [] as (() => (() => void) | undefined)[],
+ api: vi.fn(), refreshInstances: vi.fn(), refreshModels: vi.fn(), openExternal: vi.fn(), track: vi.fn(),
+}));
+vi.mock("react", async (original) => ({
+ ...await original<typeof import("react")>(),
+ useState: (initial: unknown) => {
+ const index = fixture.index++;
+ if (!(index in fixture.values)) fixture.values[index] = initial;
+ return [fixture.values[index], (next: unknown) => { fixture.values[index] = typeof next === "function" ? (next as (value: unknown) => unknown)(fixture.values[index]) : next; }];
+ },
+ useEffect: (effect: () => (() => void) | undefined) => { fixture.effects.push(effect); },
+ useRef: (current: unknown) => ({ current }),
+}));
+vi.mock("@/state/store", async (original) => ({
+ ...await original<typeof import("@/state/store")>(), api: fixture.api,
+ useStore: () => ({ refreshInstances: fixture.refreshInstances, refreshModels: fixture.refreshModels }),
+}));
+vi.mock("@/lib/analytics", () => ({ track: fixture.track }));
+const { ApiError } = await import("@/state/store");
+const { DeviceSignIn } = await import("./DeviceSignIn");
+
+type Node = ReactElement<{ children?: ReactNode; onClick?: () => Promise<void> }>;
+function nodes(tree: ReactNode): Node[] {
+ return Children.toArray(tree).flatMap((child) => isValidElement(child) ? [child as Node, ...nodes((child as Node).props.children)] : []);
+}
+function render() {
+ fixture.index = 0;
+ fixture.effects = [];
+ return nodes(DeviceSignIn({ instanceId: "codex", provider: "codex" }));
+}
+const flush = async () => { for (let i = 0; i < 20; i++) await Promise.resolve(); };
+const text = (node: Node) => JSON.stringify(node.props.children);
+const waiting = { phase: "waiting", flowId: "flow-one", authorizationUrl: "https://auth.openai.com/codex/device", userCode: "ABCD-12345", expiresAt: new Date(Date.now() + 15 * 60_000).toISOString() };
+const AUTH = 0;
+
+async function startAndPoll(poll: () => Promise<unknown>) {
+ render().find((node) => node.type === "button")!.props.onClick!();
+ await flush();
+ fixture.api.mockImplementationOnce(poll);
+ render();
+ fixture.effects[0]();
+ await vi.advanceTimersByTimeAsync(2000);
+ await flush();
+}
+
+beforeEach(() => {
+ vi.clearAllMocks();
+ vi.useFakeTimers();
+ fixture.values = [];
+ fixture.refreshInstances.mockResolvedValue(undefined);
+ fixture.refreshModels.mockResolvedValue(undefined);
+ vi.stubGlobal("window", { setTimeout, clearTimeout, ogb: { openExternal: fixture.openExternal } });
+});
+afterEach(() => { vi.unstubAllGlobals(); vi.useRealTimers(); });
+
+it("shows where to turn on device code sign-in before a code is asked for", () => {
+ expect(render().some((node) => node.type === "p" && text(node).includes("turn it on in ChatGPT → Settings → Security"))).toBe(true);
+});
+
+it("says the sign-in was interrupted when the server no longer has it, and Try again starts a fresh one", async () => {
+ fixture.api.mockResolvedValueOnce({ auth: waiting });
+ await startAndPoll(() => Promise.reject(new ApiError("This sign-in is no longer available in this browser. Start a new sign-in.", 404)));
+ expect(fixture.api).toHaveBeenLastCalledWith("/api/instances/codex/auth/status?flowId=flow-one", expect.anything());
+ expect(fixture.values[AUTH]).toMatchObject({ phase: "failed", message: "This sign-in was interrupted. Start again." });
+ const again = render().find((node) => node.type === "button" && text(node).includes("Try again"))!;
+ fixture.api.mockResolvedValueOnce({ auth: { ...waiting, flowId: "flow-two" } });
+ await again.props.onClick!();
+ await flush();
+ expect(fixture.api).toHaveBeenLastCalledWith("/api/instances/codex/auth/start", { method: "POST" });
+ expect(fixture.values[AUTH]).toMatchObject({ phase: "waiting", flowId: "flow-two" });
+});
+
+it("says the sign-in was interrupted when the poll hears the server's interrupted reason, with no message", async () => {
+ fixture.api.mockResolvedValueOnce({ auth: waiting });
+ await startAndPoll(() => Promise.resolve({ auth: { phase: "failed", flowId: "flow-one", authorizationUrl: null, expiresAt: null, reason: "interrupted" } }));
+ expect(fixture.values[AUTH]).toMatchObject({ phase: "failed", reason: "interrupted" });
+ expect(render().some((node) => node.type === "button" && text(node).includes("Try again"))).toBe(true);
+});
+
+it("shows OpenAI's refusal as the server words it, with Try again and the setting to turn on", async () => {
+ const refused = "OpenAI did not allow device code sign-in. Turn it on in ChatGPT → Settings → Security (your ChatGPT admin may need to), then try again.";
+ fixture.api.mockResolvedValueOnce({ auth: waiting });
+ await startAndPoll(() => Promise.resolve({ auth: { phase: "failed", flowId: "flow-one", authorizationUrl: null, expiresAt: null, message: refused } }));
+ expect(fixture.values[AUTH]).toMatchObject({ phase: "failed", message: refused });
+ const tree = render();
+ expect(tree.some((node) => node.type === "button" && text(node).includes("Try again"))).toBe(true);
+ expect(tree.some((node) => node.type === "p" && text(node).includes("If OpenAI says device code sign-in isn't allowed"))).toBe(true);
+});
+
+it("ends a code that runs out with the expiry line, Try again and the setting to turn on, not endless waiting", async () => {
+ fixture.api.mockResolvedValueOnce({ auth: { ...waiting, expiresAt: new Date(Date.now() + 1000).toISOString() } });
+ render().find((node) => node.type === "button")!.props.onClick!();
+ await flush();
+ render();
+ fixture.effects[0]();
+ await vi.advanceTimersByTimeAsync(1000);
+ expect(fixture.values[AUTH]).toMatchObject({ phase: "expired" });
+ const tree = render();
+ expect(tree.some((node) => node.type === "button" && text(node).includes("Try again"))).toBe(true);
+ expect(tree.some((node) => node.type === "p" && text(node).includes("If OpenAI says device code sign-in isn't allowed"))).toBe(true);
+});
diff --git a/src/components/DeviceSignIn.test.ts b/src/components/DeviceSignIn.test.ts
index b48063318b..0962d55478 100644
--- a/src/components/DeviceSignIn.test.ts
+++ b/src/components/DeviceSignIn.test.ts
@@ -2,7 +2,7 @@ import { createElement } from "react";
import { renderToStaticMarkup } from "react-dom/server";
import { afterEach, describe, expect, it, vi } from "vitest";
import { api, ApiError } from "@/state/store";
-import { chatgptPlanLink, codexDeviceLink, deviceFlowUnavailable, DeviceSignInProgress, deviceSignInProvider, type DeviceSignInStatus } from "./DeviceSignIn";
+import { chatgptPlanLink, codexDeviceLink, deviceFlowUnavailable, DeviceSignInProgress, deviceSignInProvider, type DeviceSignInStatus, unavailableFlow } from "./DeviceSignIn";
afterEach(() => vi.unstubAllGlobals());
@@ -26,6 +26,32 @@ describe("Codex device sign-in UI", () => {
expect(html).not.toContain("codex login");
});
+ it("says how to turn on device code sign-in as step 1, before the code", () => {
+ const html = render(waiting);
+ const step = html.indexOf("1. If OpenAI says device code sign-in isn&#x27;t allowed, turn it on in ChatGPT → Settings → Security");
+ expect(step).toBeGreaterThan(-1);
+ expect(html).toContain("your ChatGPT admin may need to");
+ expect(html.indexOf("2. Enter this one-time code on OpenAI&#x27;s sign-in page")).toBeGreaterThan(step);
+ expect(html.indexOf("ABCD-12345")).toBeGreaterThan(step);
+ });
+
+ it("says a flow the server lost was interrupted, and keeps the pairing reason for 401/403", () => {
+ expect(unavailableFlow(new ApiError("This sign-in is no longer available in this browser. Start a new sign-in.", 404)))
+ .toEqual({ phase: "failed", flowId: null, authorizationUrl: null, expiresAt: null, reason: "interrupted", message: "This sign-in was interrupted. Start again." });
+ expect(unavailableFlow(new ApiError("gone", 410), true).message).toBe("This sign-in was interrupted. Start again.");
+ expect(unavailableFlow(new ApiError("Your session ended.", 401)).message).toContain("still paired with Full access");
+ expect(render(unavailableFlow(new ApiError("gone", 404)))).toContain("This sign-in was interrupted. Start again.");
+ expect(unavailableFlow(new ApiError("Cut short.", 404, { reason: "interrupted" })).reason).toBe("interrupted");
+ // A reason other than interrupted is not read as one, whatever the status.
+ expect(unavailableFlow(new ApiError("Gone.", 404, { reason: "expired" })).message).toContain("still paired with Full access");
+ });
+
+ it("words a status the server ended as interrupted (a code, no message) in the person's language", () => {
+ const html = render({ phase: "failed", flowId: "fixture-flow", authorizationUrl: null, expiresAt: null, reason: "interrupted" });
+ expect(html).toContain("This sign-in was interrupted. Start again.");
+ expect(html).not.toContain("could not be completed");
+ });
+
it.each([
"http://auth.openai.com/codex/device",
"https://auth.openai.com.evil.test/codex/device",
@@ -123,6 +149,7 @@ describe("Grok Build device sign-in UI", () => {
expect(html).toContain("Open Grok sign-in");
expect(html).toContain("grok.com subscription");
expect(html).not.toMatch(/ChatGPT|OpenAI/);
+ expect(html).not.toContain("1. ");
});
it("follows the page that carries the code, only for that code", () => {
diff --git a/src/components/DeviceSignIn.tsx b/src/components/DeviceSignIn.tsx
index 124a6a6277..dd6c29fcc6 100644
--- a/src/components/DeviceSignIn.tsx
+++ b/src/components/DeviceSignIn.tsx
@@ -7,6 +7,7 @@ import { useCopyFeedback } from "@/lib/copy-text";
import { engineSignedIn } from "@/lib/product-events";
import type { LocaleKey } from "@/locales";
import { deviceSignInHasCode, deviceSignInLink, isDeviceSignInCode, type DeviceSignInProvider } from "../../shared/device-sign-in";
+import { signInOutcome, type SignInOutcome } from "../../shared/sign-in-outcome";
import { CodexMark } from "./ProviderIcons";
export interface DeviceSignInStatus {
@@ -16,6 +17,22 @@ export interface DeviceSignInStatus {
userCode?: string;
expiresAt: string | null;
message?: string;
+ /** Why it ended, as a fixed code (shared/sign-in-outcome.ts); older servers send none. */
+ reason?: SignInOutcome;
+}
+
+/** The server's reason code on a status or a refused request, if it sent one. */
+export function signInReason(source: unknown): SignInOutcome | null {
+ if (source instanceof ApiError) return signInOutcome(source.body?.reason);
+ return source && typeof source === "object" ? signInOutcome((source as { reason?: unknown }).reason) : null;
+}
+
+/** The server no longer has this sign-in, as after the Cloud restarted: its `interrupted` reason, or from a server that
+ * sends no reason, a 404/410. */
+export function signInInterrupted(source: unknown): boolean {
+ const reason = signInReason(source);
+ if (reason) return reason === "interrupted";
+ return source instanceof ApiError && [404, 410].includes(source.status);
}
export function deviceSignInProvider(driverKind: string): DeviceSignInProvider {
@@ -83,6 +100,14 @@ function endedFlow(phase: "expired" | "failed", browserPkce = false): DeviceSign
return { phase, flowId: null, authorizationUrl: null, expiresAt: null, ...(phase === "failed" ? { message: t(browserPkce ? "engineSetup.chatgpt.flowEnded" : "engineSetup.device.flowEnded") } : {}) };
}
+/** A flow the server answers for no more: 404/410 when it lost it (as after the Cloud restarted), 401/403 when this
+ * browser lost its pairing. */
+export function unavailableFlow(cause: unknown, browserPkce = false): DeviceSignInStatus {
+ return signInInterrupted(cause)
+ ? { phase: "failed", flowId: null, authorizationUrl: null, expiresAt: null, reason: "interrupted", message: t("engineSetup.device.interrupted") }
+ : endedFlow("failed", browserPkce);
+}
+
/** Security: never turn arbitrary process output into a sign-in link; the server validates this address too. */
export function codexDeviceLink(value: string | null): string | null {
return deviceSignInLink("codex", value);
@@ -109,6 +134,8 @@ export function DeviceSignInProgress({ auth, browserPkce = false, provider = "co
const label = auth.phase === "succeeded" ? t(copy.connected)
: auth.phase === "cancelled" ? t(browserPkce ? "engineSetup.chatgpt.cancelled" : "engineSetup.device.cancelled")
: auth.phase === "expired" ? t(browserPkce ? "engineSetup.chatgpt.expired" : "engineSetup.device.expired")
+ // The server words an interrupted sign-in with its code alone, so the line is in the person's language.
+ : signInInterrupted(auth) ? t("engineSetup.device.interrupted")
: auth.message || t(browserPkce ? "engineSetup.chatgpt.failed" : copy.failed);
return <p role="status" className={auth.phase === "succeeded" ? "text-[12px] text-success" : "text-[12px] text-ink-secondary"}>{label}</p>;
}
@@ -118,9 +145,12 @@ export function DeviceSignInProgress({ auth, browserPkce = false, provider = "co
return <p role="alert" className="text-[12px] text-danger">{t(browserPkce ? "engineSetup.chatgpt.invalidChallenge" : copy.invalidChallenge)}</p>;
}
+ // ChatGPT accounts can have device code sign-in off; say where to turn it on before the code is used.
+ const enableStep = provider === "codex" && codeShown;
return (
<div className="space-y-2 rounded-lg border border-hairline/50 bg-app p-3">
- {codeShown && <><p className="text-[12px] text-ink-secondary">{t(copy.enterCode)}</p>
+ {enableStep && <p data-device-enable-step className="text-[12px] leading-relaxed text-ink">1. {t("engineSetup.device.enableNote")}</p>}
+ {codeShown && <><p className="text-[12px] text-ink-secondary">{enableStep && "2. "}{t(copy.enterCode)}</p>
<div className="flex items-center justify-between gap-2 rounded-lg bg-inset px-3 py-2">
<code className="select-all font-mono text-lg font-semibold tracking-widest text-ink">{auth.userCode}</code>
<button
@@ -195,7 +225,7 @@ export function DeviceSignIn({ instanceId, browserPkce = false, provider = "code
.catch((cause: unknown) => {
if (controller.signal.aborted) return;
if (deviceFlowUnavailable(cause)) {
- setAuth(endedFlow("failed", browserPkce));
+ setAuth(unavailableFlow(cause, browserPkce));
setError(null);
return;
}
@@ -236,7 +266,7 @@ export function DeviceSignIn({ instanceId, browserPkce = false, provider = "code
setAuth({ phase: "cancelled", flowId: null, authorizationUrl: null, expiresAt: null });
onDone?.(false);
} catch (cause) {
- if (deviceFlowUnavailable(cause)) setAuth(endedFlow("failed", browserPkce));
+ if (deviceFlowUnavailable(cause)) setAuth(unavailableFlow(cause, browserPkce));
else setError(cause instanceof Error ? cause.message : failed);
} finally { setBusy(false); }
};
@@ -265,7 +295,9 @@ export function DeviceSignIn({ instanceId, browserPkce = false, provider = "code
</button>
)}
{error && <p role="alert" className="text-[12px] text-danger">{error}</p>}
- {!browserPkce && provider === "codex" && <p className="text-[11px] leading-relaxed text-ink-secondary">{t("engineSetup.device.enableHint")}</p>}
+ {!browserPkce && provider === "codex" && auth?.phase !== "waiting" && auth?.phase !== "succeeded" && (
+ <p data-device-enable-note className="text-[12px] leading-relaxed text-ink-secondary">{t("engineSetup.device.enableNote")}</p>
+ )}
</div>
);
}
diff --git a/src/locales/de.json b/src/locales/de.json
index 2e028c95be..1a9319c82a 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -1641,6 +1641,7 @@
"engines.updatedTo": "Aktualisiert auf {version}",
"engines.account.signInHint": "Führe genau diesen Befehl in einem Terminal auf dem Computer aus, auf dem {app} läuft, schließe die Claude-CLI-Anmeldung ab und klicke dann auf „Konto prüfen“. Wenn du {app} aus der Ferne nutzt, führe ihn dort aus, nicht auf diesem Gerät.",
"accounts.chatgptDeviceHint": "Prüfe vor der Eingabe des Codes, dass ChatGPT das Konto anzeigt, das du hier möchtest. Zeigt es ein anderes, wechsle dort zuerst das Konto.",
+ "accounts.claude.emailCode": "Das sieht nach dem Anmeldecode aus, den Claude dir per E-Mail schickt. Gib ihn auf der Claude-Seite ein, klicke auf Autorisieren und füge dann den längeren Code ein, den Claude anzeigt.",
"engines.none": "Bisher keine Apps von Modellanbietern erkannt.",
"remote.pairing.tailscale.title": "Tailscale-Kopplung",
"remote.pairing.tailscale.subtitle": "Private Kopplung über das Tailnet, das Host und zu koppelndes Gerät teilen.",
@@ -2195,7 +2196,8 @@
"engineSetup.device.description": "Verbinde dein ChatGPT-Konto mit Codex. Schließe die Anmeldung in deinem eigenen Browser ab; kein Terminal und kein Teilen von Passwörtern nötig.",
"engineSetup.chatgpt.welcomeBody": "Geeignete KI-Anfragen in {app} nutzen deinen ChatGPT-Tarif. Nutzung und Zugriff verwaltest du in den ChatGPT-Einstellungen. Dein ChatGPT-Tarif ist getrennt von MausBot Cloud.",
"engineSetup.device.security": "Gib nur einen Code ein, den du hier angefordert hast. Damit wird Codex für deine Bots angemeldet und nutzt die Limits deines Kontos. Dein Passwort bleibt bei OpenAI, und die Anmeldung bleibt dort, wo deine Bots laufen.",
- "engineSetup.device.enableHint": "Die Anmeldung per Gerätecode muss eventuell in den ChatGPT-Sicherheitseinstellungen oder von deinem ChatGPT-Admin aktiviert werden.",
+ "engineSetup.device.enableNote": "Wenn OpenAI meldet, dass die Anmeldung per Gerätecode nicht erlaubt ist, schalte sie unter ChatGPT → Einstellungen → Sicherheit ein (eventuell muss das dein ChatGPT-Admin tun) und versuche es dann erneut.",
+ "engineSetup.device.interrupted": "Diese Anmeldung wurde unterbrochen. Starte sie neu.",
"engineSetup.device.connectedAccount": "ChatGPT verbunden",
"engineSetup.device.failed": "Die Anmeldung konnte nicht abgeschlossen werden. Versuche es erneut oder prüfe die Codex-Installation.",
"engineSetup.grok.description": "Melde dich mit deinem grok.com-Konto an, damit deine Bots Grok nutzen können. Du schließt es in deinem eigenen Browser ab; kein Terminal und kein Teilen von Passwörtern nötig.",
diff --git a/src/locales/en.json b/src/locales/en.json
index 6dd78e269f..b5311c311f 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -4965,6 +4965,7 @@
"accounts.claude.openAgain": "Open Claude sign-in",
"accounts.claude.step2": "2. Paste the code Claude shows you",
"accounts.claude.codePlaceholder": "Paste code",
+ "accounts.claude.emailCode": "That looks like the login code Claude emails you. Enter it on Claude's page, click Authorize, then paste the longer code Claude shows.",
"accounts.claude.finish": "Finish",
"accounts.claude.security": "The code goes to Claude Code once and is never saved.",
"claudeEndpoints.title": "Custom endpoint",
@@ -6369,7 +6370,7 @@
"engineSetup.device.waiting": "Waiting for you to finish signing in…",
"engineSetup.device.expires": "Code expires at {time}",
"engineSetup.device.security": "Only enter a code you requested here. This signs Codex in for your bots and uses your account's limits. Your password stays with OpenAI, and the sign-in stays where your bots run.",
- "engineSetup.device.enableHint": "Device-code login may need enabling in ChatGPT security settings or by your ChatGPT admin.",
+ "engineSetup.device.enableNote": "If OpenAI says device code sign-in isn't allowed, turn it on in ChatGPT → Settings → Security (your ChatGPT admin may need to), then try again.",
"engineSetup.device.connected": "ChatGPT connected. Your models are being refreshed.",
"engineSetup.device.connectedAccount": "ChatGPT connected",
"engineSetup.device.cancel": "Cancel sign-in",
@@ -6380,6 +6381,7 @@
"engineSetup.device.unreachable": "Lost touch with the server during sign-in. Check the connection and start again.",
"engineSetup.device.invalidChallenge": "Codex did not return a valid OpenAI sign-in link and code. Cancel and try again.",
"engineSetup.device.flowEnded": "This sign-in session is no longer available. Check that this browser is still paired with Full access, then request a new code.",
+ "engineSetup.device.interrupted": "This sign-in was interrupted. Start again.",
"engineSetup.device.tryAgain": "Try again",
"engineSetup.grok.description": "Sign in with your grok.com account so your bots can use Grok. You finish in your own browser; no terminal or password sharing needed.",
"engineSetup.grok.start": "Sign in to Grok",
diff --git a/src/locales/es.json b/src/locales/es.json
index f1491314ca..476f856244 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -3354,6 +3354,7 @@
"accounts.claude.openAgain": "Abrir el inicio de sesión de Claude",
"accounts.claude.step2": "2. Pega el código que te muestra Claude",
"accounts.claude.codePlaceholder": "Pega el código",
+ "accounts.claude.emailCode": "Parece el código de inicio de sesión que Claude te envía por correo. Introdúcelo en la página de Claude, haz clic en Autorizar y luego pega el código más largo que muestra Claude.",
"accounts.claude.finish": "Terminar",
"accounts.claude.security": "El código se envía a Claude Code una sola vez y nunca se guarda.",
"engines.none": "Todavía no se detectaron apps de proveedores de modelos.",
@@ -4481,7 +4482,7 @@
"engineSetup.device.waiting": "Esperando a que termines de iniciar sesión…",
"engineSetup.device.expires": "El código caduca a las {time}",
"engineSetup.device.security": "Escribe solo un código que hayas solicitado aquí. Esto inicia la sesión de Codex para tus bots y usa los límites de tu cuenta. Tu contraseña se queda en OpenAI, y el inicio de sesión se queda donde funcionan tus bots.",
- "engineSetup.device.enableHint": "Puede que haga falta activar el inicio de sesión con código de dispositivo en los ajustes de seguridad de ChatGPT, o que lo active tu administrador de ChatGPT.",
+ "engineSetup.device.enableNote": "Si OpenAI dice que no se permite el inicio de sesión con código de dispositivo, actívalo en ChatGPT → Configuración → Seguridad (puede que tenga que hacerlo tu administrador de ChatGPT) y vuelve a intentarlo.",
"engineSetup.device.connected": "ChatGPT conectado. Tus modelos se están actualizando.",
"engineSetup.device.connectedAccount": "ChatGPT conectado",
"engineSetup.device.cancel": "Cancelar el inicio de sesión",
@@ -4491,6 +4492,7 @@
"engineSetup.device.failed": "No se pudo completar el inicio de sesión. Inténtalo de nuevo o revisa la instalación de Codex.",
"engineSetup.device.invalidChallenge": "Codex no devolvió un enlace y un código válidos de inicio de sesión de OpenAI. Cancela e inténtalo de nuevo.",
"engineSetup.device.flowEnded": "Este proceso de inicio de sesión ya no está disponible. Comprueba que este navegador sigue vinculado con «Acceso total» y luego solicita un código nuevo.",
+ "engineSetup.device.interrupted": "Este inicio de sesión se interrumpió. Empieza de nuevo.",
"engineSetup.device.tryAgain": "Inténtalo de nuevo",
"engineSetup.grok.description": "Inicia sesión con tu cuenta de grok.com para que tus bots puedan usar Grok. Terminas en tu propio navegador; sin terminal y sin compartir contraseñas.",
"engineSetup.grok.start": "Iniciar sesión en Grok",
diff --git a/src/locales/everyday-words.test.ts b/src/locales/everyday-words.test.ts
index d2ab2f4033..722bb8273c 100644
--- a/src/locales/everyday-words.test.ts
+++ b/src/locales/everyday-words.test.ts
@@ -52,7 +52,8 @@ const EVERYDAY_KEYS: Record<string, readonly string[]> = {
"adding and sharing a bot": ["newBot.presetKeeps", "template.neverShared", "template.arrives"],
"signing in to an AI, the Cloud's own sign-in included": [
"engineSetup.claude.description", "engineSetup.claude.connectedAccount", "engineSetup.device.description", "engineSetup.device.security",
- "engineSetup.device.connectedAccount", "engineSetup.device.failed", "engineSetup.device.enableHint", "engineSetup.grok.description",
+ "engineSetup.device.connectedAccount", "engineSetup.device.failed", "engineSetup.device.enableNote", "engineSetup.device.interrupted", "accounts.claude.emailCode",
+ "engineSetup.grok.description",
"engineSetup.grok.security", "engineSetup.grok.connectedAccount", "engineSetup.grok.failed", "engineSetup.grok.notInstalled",
"engineSetup.serverInstall", "engineSetup.serverUpdate", "engineSetup.serverInstalling", "engineSetup.sendRedirect",
"engineSetup.sameMachine", "engineSetup.invalidStatus", "engines.account.signInHint", "engines.trialCredit", "engines.trialCreditEnded",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index 7b03c6c1bf..ec13bd230d 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -1489,6 +1489,7 @@
"engines.updatedTo": "Mis à jour vers {version}",
"engines.account.signInHint": "Exécutez exactement cette commande dans un terminal sur l’ordinateur qui exécute {app}, terminez la connexion Claude CLI, puis cliquez sur « Vérifier le compte ». Si vous consultez {app} à distance, exécutez-la là-bas, pas sur cet appareil.",
"accounts.chatgptDeviceHint": "Avant de saisir le code, vérifiez que ChatGPT affiche le compte voulu ici. S'il en affiche un autre, changez d'abord de compte dans ChatGPT.",
+ "accounts.claude.emailCode": "Cela ressemble au code de connexion que Claude vous envoie par e-mail. Saisissez-le sur la page de Claude, cliquez sur Autoriser, puis collez le code plus long que Claude affiche.",
"engines.none": "Aucune application de fournisseur de modèles détectée pour l’instant.",
"remote.pairing.tailscale.title": "Appairage via Tailscale",
"remote.pairing.tailscale.subtitle": "Appairage privé via le tailnet partagé par l'hôte et l'appareil à associer.",
@@ -2042,7 +2043,8 @@
"engineSetup.device.description": "Connectez votre compte ChatGPT à Codex. Terminez la connexion dans votre propre navigateur ; ni terminal ni partage de mot de passe.",
"engineSetup.chatgpt.welcomeBody": "Les requêtes IA éligibles dans {app} utilisent votre forfait ChatGPT. Gérez l'utilisation et l'accès dans les paramètres de ChatGPT. Votre forfait ChatGPT est distinct de MausBot Cloud.",
"engineSetup.device.security": "Saisissez uniquement un code que vous avez demandé ici. Cela connecte Codex pour vos bots et utilise les limites de votre compte. Votre mot de passe reste chez OpenAI, et la connexion reste là où tournent vos bots.",
- "engineSetup.device.enableHint": "La connexion par code d’appareil doit peut-être être activée dans les réglages de sécurité de ChatGPT ou par votre administrateur ChatGPT.",
+ "engineSetup.device.enableNote": "Si OpenAI indique que la connexion par code d’appareil n’est pas autorisée, activez-la dans ChatGPT → Paramètres → Sécurité (votre administrateur ChatGPT devra peut-être le faire), puis réessayez.",
+ "engineSetup.device.interrupted": "Cette connexion a été interrompue. Recommencez.",
"engineSetup.device.connectedAccount": "ChatGPT connecté",
"engineSetup.device.failed": "La connexion n’a pas pu aboutir. Réessayez ou vérifiez l’installation de Codex.",
"engineSetup.grok.description": "Connectez-vous avec votre compte grok.com pour que vos bots puissent utiliser Grok. Vous terminez dans votre propre navigateur ; ni terminal ni partage de mot de passe.",
diff --git a/src/locales/hi.json b/src/locales/hi.json
index bc2d017d32..f4c1f9be64 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -1487,6 +1487,7 @@
"engines.updatedTo": "{version} पर अपडेट हुआ",
"engines.account.signInHint": "{app} चला रहे कंप्यूटर के टर्मिनल में यही कमांड चलाएँ, Claude CLI साइन-इन पूरा करें, फिर खाता जाँचें पर क्लिक करें। अगर आप {app} को रिमोट से देख रहे हैं, तो इसे वहीं चलाएँ, इस डिवाइस पर नहीं।",
"accounts.chatgptDeviceHint": "कोड डालने से पहले देख लें कि ChatGPT वही खाता दिखा रहा है जो आप यहाँ चाहते हैं। अगर कोई दूसरा खाता दिखे, तो पहले वहाँ खाता बदलें।",
+ "accounts.claude.emailCode": "यह वह लॉगिन कोड लगता है जो Claude आपको ईमेल करता है। इसे Claude के पेज पर डालें, Authorize पर क्लिक करें, फिर Claude जो लंबा कोड दिखाए उसे यहाँ पेस्ट करें।",
"engines.none": "अभी कोई मॉडल प्रदाता ऐप नहीं मिला।",
"remote.pairing.tailscale.title": "Tailscale से जोड़ना",
"remote.pairing.tailscale.subtitle": "होस्ट और जोड़े जा रहे डिवाइस की साझा tailnet से निजी पेयरिंग।",
@@ -2040,7 +2041,8 @@
"engineSetup.device.description": "अपना ChatGPT खाता Codex से जोड़ें। साइन-इन अपने ब्राउज़र में पूरा करें; न टर्मिनल चाहिए, न पासवर्ड साझा करना।",
"engineSetup.chatgpt.welcomeBody": "{app} में योग्य AI अनुरोध आपके ChatGPT प्लान का इस्तेमाल करते हैं। इस्तेमाल और पहुँच को ChatGPT सेटिंग्स में प्रबंधित करें। आपका ChatGPT प्लान MausBot Cloud से अलग है।",
"engineSetup.device.security": "सिर्फ़ वही कोड डालें जो आपने यहाँ माँगा था। इससे आपके बॉट के लिए Codex में साइन इन होता है और आपके खाते की सीमाएँ इस्तेमाल होती हैं। आपका पासवर्ड OpenAI के पास रहता है, और साइन-इन वहीं रहता है जहाँ आपके बॉट चलते हैं।",
- "engineSetup.device.enableHint": "डिवाइस-कोड लॉगिन को ChatGPT की सुरक्षा सेटिंग्स में या आपके ChatGPT एडमिन द्वारा चालू करना पड़ सकता है।",
+ "engineSetup.device.enableNote": "अगर OpenAI कहे कि डिवाइस-कोड साइन-इन की अनुमति नहीं है, तो इसे ChatGPT → Settings → Security में चालू करें (शायद आपके ChatGPT एडमिन को करना पड़े), फिर दोबारा कोशिश करें।",
+ "engineSetup.device.interrupted": "यह साइन-इन बीच में रुक गया। फिर से शुरू करें।",
"engineSetup.device.connectedAccount": "ChatGPT जुड़ गया",
"engineSetup.device.failed": "साइन-इन पूरा नहीं हो सका। फिर से कोशिश करें, या Codex इंस्टॉलेशन जाँचें।",
"engineSetup.grok.description": "अपने grok.com खाते से साइन इन करें ताकि आपके बॉट Grok इस्तेमाल कर सकें। आप इसे अपने ब्राउज़र में पूरा करते हैं; न टर्मिनल चाहिए, न पासवर्ड साझा करना।",
diff --git a/src/locales/it.json b/src/locales/it.json
index 6ba0e6a3e0..5e02cb3ac6 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -4914,6 +4914,7 @@
"accounts.claude.openAgain": "Apri l'accesso a Claude",
"accounts.claude.step2": "2. Incolla il codice che Claude ti mostra",
"accounts.claude.codePlaceholder": "Incolla il codice",
+ "accounts.claude.emailCode": "Sembra il codice di accesso che Claude ti invia via e-mail. Inseriscilo nella pagina di Claude, fai clic su Autorizza, poi incolla il codice più lungo che Claude mostra.",
"accounts.claude.finish": "Completa",
"accounts.claude.security": "Il codice viene inviato a Claude Code una sola volta e non viene mai salvato.",
"claudeEndpoints.title": "Punto finale personalizzato",
@@ -6318,7 +6319,7 @@
"engineSetup.device.waiting": "In attesa che completi l'accesso…",
"engineSetup.device.expires": "Il codice scade alle {time}",
"engineSetup.device.security": "Inserisci solo un codice che hai richiesto qui. Così Codex accede per i tuoi bot e usa i limiti del tuo account. La password resta su OpenAI e l'accesso resta dove girano i tuoi bot.",
- "engineSetup.device.enableHint": "L'accesso con codice dispositivo può richiedere l'attivazione nelle impostazioni di sicurezza di ChatGPT, oppure dal tuo amministratore ChatGPT.",
+ "engineSetup.device.enableNote": "Se OpenAI dice che l'accesso con codice dispositivo non è consentito, attivalo in ChatGPT → Impostazioni → Sicurezza (potrebbe doverlo fare il tuo amministratore ChatGPT), poi riprova.",
"engineSetup.device.connected": "ChatGPT collegato. I modelli si stanno aggiornando.",
"engineSetup.device.connectedAccount": "ChatGPT collegato",
"engineSetup.device.cancel": "Annulla accesso",
@@ -6329,6 +6330,7 @@
"engineSetup.device.unreachable": "Connessione persa con il server durante l'accesso. Controlla la connessione e ricomincia.",
"engineSetup.device.invalidChallenge": "Codex non ha restituito un link e un codice di accesso OpenAI validi. Annulla e riprova.",
"engineSetup.device.flowEnded": "Questa sessione di accesso non è più disponibile. Controlla che questo browser sia ancora abbinato con Accesso completo, poi richiedi un nuovo codice.",
+ "engineSetup.device.interrupted": "Questo accesso è stato interrotto. Ricomincia.",
"engineSetup.device.tryAgain": "Riprova",
"engineSetup.grok.description": "Accedi con il tuo account grok.com, così i bot possono usare Grok. Concludi nel tuo browser; non serve il terminale né condividere la password.",
"engineSetup.grok.start": "Accedi a Grok",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 855af981ef..f973803471 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -4197,6 +4197,7 @@
"accounts.claude.openAgain": "Claudeのサインインを開く",
"accounts.claude.step2": "2. Claudeが表示したコードを貼り付けます",
"accounts.claude.codePlaceholder": "コードを貼り付け",
+ "accounts.claude.emailCode": "これは Claude からメールで届くログインコードのようです。Claude のページで入力して「承認」をクリックし、Claude に表示される長いコードを貼り付けてください。",
"accounts.claude.finish": "完了",
"accounts.claude.security": "コードはClaude Codeに一度だけ渡され、保存されることはありません。",
"engines.none": "モデルプロバイダーのアプリはまだ検出されていません。",
@@ -5487,7 +5488,7 @@
"engineSetup.device.waiting": "サインインの完了を待っています…",
"engineSetup.device.expires": "コードは {time} に期限切れになります",
"engineSetup.device.security": "ここで要求したコードだけを入力してください。これによりボット用に Codex にサインインし、アカウントの利用上限が適用されます。パスワードは OpenAI に留まり、サインイン情報はボットが動く場所に保存されます。",
- "engineSetup.device.enableHint": "デバイスコードログインは、ChatGPT のセキュリティ設定または ChatGPT の管理者による有効化が必要な場合があります。",
+ "engineSetup.device.enableNote": "デバイスコードでのサインインが許可されていないと OpenAI に表示された場合は、ChatGPT → 設定 → セキュリティ でオンにしてから(ChatGPT の管理者が行う必要がある場合があります)、もう一度お試しください。",
"engineSetup.device.connected": "ChatGPT を接続しました。モデルを更新中です。",
"engineSetup.device.connectedAccount": "ChatGPT 接続済み",
"engineSetup.device.cancel": "サインインをキャンセル",
@@ -5497,6 +5498,7 @@
"engineSetup.device.failed": "サインインを完了できませんでした。もう一度試すか、Codex のインストールを確認してください。",
"engineSetup.device.invalidChallenge": "Codex から有効な OpenAI サインインリンクとコードが返されませんでした。キャンセルして、もう一度お試しください。",
"engineSetup.device.flowEnded": "このサインインセッションはもう使えません。このブラウザーが引き続きフルアクセスでペアリングされていることを確認し、新しいコードを要求してください。",
+ "engineSetup.device.interrupted": "このサインインは中断されました。もう一度始めてください。",
"engineSetup.device.tryAgain": "もう一度試す",
"engineSetup.grok.description": "grok.com アカウントでサインインすると、ボットが Grok を使えるようになります。ご自身のブラウザーで完了できます。ターミナルやパスワードの共有は不要です。",
"engineSetup.grok.start": "Grok にサインイン",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 0f86a9372e..bb30b64809 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -4000,6 +4000,7 @@
"accounts.claude.openAgain": "Claude 로그인 열기",
"accounts.claude.step2": "2. Claude가 보여 주는 코드를 붙여 넣으세요",
"accounts.claude.codePlaceholder": "코드 붙여 넣기",
+ "accounts.claude.emailCode": "Claude가 이메일로 보내는 로그인 코드 같아요. Claude 페이지에 입력하고 승인을 누른 뒤, Claude가 보여 주는 더 긴 코드를 붙여 넣으세요.",
"accounts.claude.finish": "마치기",
"accounts.claude.security": "코드는 Claude Code에 한 번만 전달되고 저장되지 않아요.",
"engines.none": "아직 감지된 모델 제공자 앱이 없어요.",
@@ -5272,7 +5273,7 @@
"engineSetup.device.waiting": "로그인을 마치기를 기다리는 중…",
"engineSetup.device.expires": "코드 만료 시간: {time}",
"engineSetup.device.security": "여기서 요청한 코드만 입력하세요. 이 과정은 봇을 위해 Codex에 로그인하며 내 계정의 한도를 써요. 비밀번호는 OpenAI에만 남고, 로그인 정보는 봇이 실행되는 곳에 남아요.",
- "engineSetup.device.enableHint": "기기 코드 로그인은 ChatGPT 보안 설정이나 ChatGPT 관리자가 켜 줘야 할 수 있어요.",
+ "engineSetup.device.enableNote": "OpenAI에서 기기 코드 로그인이 허용되지 않는다고 하면 ChatGPT → 설정 → 보안에서 켠 뒤(ChatGPT 관리자가 켜야 할 수도 있어요) 다시 시도하세요.",
"engineSetup.device.connected": "ChatGPT가 연결됐어요. 모델을 새로고침하는 중이에요.",
"engineSetup.device.connectedAccount": "ChatGPT 연결됨",
"engineSetup.device.cancel": "로그인 취소",
@@ -5282,6 +5283,7 @@
"engineSetup.device.failed": "로그인을 완료하지 못했어요. 다시 시도하거나 Codex 설치를 확인하세요.",
"engineSetup.device.invalidChallenge": "Codex가 올바른 OpenAI 로그인 링크와 코드를 보내지 않았어요. 취소하고 다시 시도하세요.",
"engineSetup.device.flowEnded": "이 로그인 세션은 더 이상 쓸 수 없어요. 이 브라우저가 아직 전체 접근으로 페어링되어 있는지 확인한 뒤 새 코드를 요청하세요.",
+ "engineSetup.device.interrupted": "로그인이 중단됐어요. 다시 시작하세요.",
"engineSetup.device.tryAgain": "다시 시도",
"engineSetup.grok.description": "봇이 Grok을 쓸 수 있도록 grok.com 계정으로 로그인하세요. 내 브라우저에서 마치면 되고, 터미널이나 비밀번호 공유는 필요 없어요.",
"engineSetup.grok.start": "Grok에 로그인",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 7dbceaed5e..7adfa0e05b 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -3695,6 +3695,7 @@
"accounts.claude.openAgain": "Otwórz logowanie do Claude",
"accounts.claude.step2": "2. Wklej kod wyświetlony przez Claude",
"accounts.claude.codePlaceholder": "Wklej kod",
+ "accounts.claude.emailCode": "To wygląda na kod logowania, który Claude wysyła e-mailem. Wpisz go na stronie Claude, kliknij Autoryzuj, a potem wklej dłuższy kod, który pokaże Claude.",
"accounts.claude.finish": "Zakończ",
"accounts.claude.security": "Kod jest przekazywany do Claude Code tylko raz i nigdy nie jest zapisywany.",
"engines.none": "Nie wykryto jeszcze aplikacji dostawców modeli.",
@@ -4855,7 +4856,7 @@
"engineSetup.device.waiting": "Czekam na dokończenie logowania…",
"engineSetup.device.expires": "Kod wygasa o {time}",
"engineSetup.device.security": "Wpisz tylko kod, o który poproszono tutaj. Spowoduje to zalogowanie Codex dla twoich botów i wykorzystanie limitów twojego konta. Twoje hasło pozostaje w OpenAI, a logowanie pozostaje tam, gdzie działają twoje boty.",
- "engineSetup.device.enableHint": "Logowanie kodem urządzenia może wymagać włączenia w ustawieniach bezpieczeństwa ChatGPT lub przez administratora ChatGPT.",
+ "engineSetup.device.enableNote": "Jeśli OpenAI informuje, że logowanie kodem urządzenia jest niedozwolone, włącz je w ChatGPT → Ustawienia → Bezpieczeństwo (może to wymagać administratora ChatGPT), a potem spróbuj ponownie.",
"engineSetup.device.connected": "ChatGPT połączono. Twoje modele są odświeżane.",
"engineSetup.device.connectedAccount": "ChatGPT połączono",
"engineSetup.device.cancel": "Anuluj logowanie",
@@ -4865,6 +4866,7 @@
"engineSetup.device.failed": "Nie udało się dokończyć logowania. Spróbuj ponownie lub sprawdź instalację Codex.",
"engineSetup.device.invalidChallenge": "Codex nie zwrócił prawidłowego linku i kodu logowania OpenAI. Anuluj i spróbuj ponownie.",
"engineSetup.device.flowEnded": "Ta sesja logowania nie jest już dostępna. Sprawdź, czy ta przeglądarka jest nadal sparowana z pełnym dostępem, a następnie poproś o nowy kod.",
+ "engineSetup.device.interrupted": "To logowanie zostało przerwane. Zacznij od nowa.",
"engineSetup.device.tryAgain": "Spróbuj ponownie",
"engineSetup.grok.description": "Zaloguj się kontem grok.com, aby twoje boty mogły używać Grok. Dokończysz we własnej przeglądarce; nie potrzebujesz terminala ani udostępniania hasła.",
"engineSetup.grok.start": "Zaloguj się do Grok",
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 6085952c5b..7bf190204a 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -4615,6 +4615,7 @@
"accounts.claude.openAgain": "Abrir o login do Claude",
"accounts.claude.step2": "2. Cole o código que o Claude mostrar",
"accounts.claude.codePlaceholder": "Cole o código",
+ "accounts.claude.emailCode": "Isso parece o código de login que o Claude envia por e-mail. Digite-o na página do Claude, clique em Autorizar e depois cole o código mais longo que o Claude mostrar.",
"accounts.claude.finish": "Concluir",
"accounts.claude.security": "O código vai para o Claude Code uma única vez e nunca é salvo.",
"claudeEndpoints.title": "Endpoint personalizado",
@@ -5998,7 +5999,7 @@
"engineSetup.device.waiting": "Esperando você concluir o login…",
"engineSetup.device.expires": "O código expira às {time}",
"engineSetup.device.security": "Só digite um código que você pediu aqui. Isso faz o login do Codex para os bots e usa os limites da sua conta. Sua senha fica com a OpenAI, e o login fica onde os bots rodam.",
- "engineSetup.device.enableHint": "Talvez seja preciso ativar o login por código de dispositivo nas configurações de segurança do ChatGPT ou pedir a ativação ao administrador.",
+ "engineSetup.device.enableNote": "Se a OpenAI disser que o login por código de dispositivo não é permitido, ative-o em ChatGPT → Configurações → Segurança (talvez o administrador do ChatGPT precise fazer isso) e tente novamente.",
"engineSetup.device.connected": "ChatGPT conectado. Seus modelos estão sendo atualizados.",
"engineSetup.device.connectedAccount": "ChatGPT conectado",
"engineSetup.device.cancel": "Cancelar login",
@@ -6009,6 +6010,7 @@
"engineSetup.device.unreachable": "Perdemos a conexão com o servidor durante o login. Verifique a conexão e comece de novo.",
"engineSetup.device.invalidChallenge": "O Codex não devolveu um link e um código de login válidos da OpenAI. Cancele e tente novamente.",
"engineSetup.device.flowEnded": "Esta sessão de login não está mais disponível. Verifique se este navegador ainda está pareado com “Acesso total” e peça um novo código.",
+ "engineSetup.device.interrupted": "Este login foi interrompido. Comece de novo.",
"engineSetup.device.tryAgain": "Tentar novamente",
"engineSetup.grok.description": "Entre com sua conta do grok.com para os bots usarem o Grok. Você conclui o login no seu próprio navegador; sem terminal e sem compartilhar senha.",
"engineSetup.grok.start": "Entrar no Grok",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 2313b6800a..a6d68aa895 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -3743,6 +3743,7 @@
"accounts.claude.openAgain": "Открыть вход Claude",
"accounts.claude.step2": "2. Вставьте код, который показывает Claude",
"accounts.claude.codePlaceholder": "Вставьте код",
+ "accounts.claude.emailCode": "Похоже, это код входа, который Claude присылает по почте. Введите его на странице Claude, нажмите «Авторизовать», а затем вставьте более длинный код, который покажет Claude.",
"accounts.claude.finish": "Завершить",
"accounts.claude.security": "Код отправляется в Claude Code один раз и никогда не сохраняется.",
"engines.none": "Приложения-поставщики моделей пока не обнаружены.",
@@ -4904,7 +4905,7 @@
"engineSetup.device.waiting": "Ожидаем, пока вы завершите вход…",
"engineSetup.device.expires": "Код действует до {time}",
"engineSetup.device.security": "Вводите только код, который вы запросили здесь. Так Codex выполняет вход для ваших ботов, и используются лимиты вашей учётной записи. Ваш пароль остаётся у OpenAI, а сеанс входа — там, где работают ваши боты.",
- "engineSetup.device.enableHint": "Возможно, вход по коду устройства потребуется включить в настройках безопасности ChatGPT или это сделает ваш администратор ChatGPT.",
+ "engineSetup.device.enableNote": "Если OpenAI сообщает, что вход по коду устройства не разрешён, включите его в ChatGPT → Настройки → Безопасность (возможно, это должен сделать ваш администратор ChatGPT) и попробуйте снова.",
"engineSetup.device.connected": "ChatGPT подключён. Ваши модели обновляются.",
"engineSetup.device.connectedAccount": "ChatGPT подключён",
"engineSetup.device.cancel": "Отменить вход",
@@ -4914,6 +4915,7 @@
"engineSetup.device.failed": "Не удалось завершить вход. Повторите попытку или проверьте установку Codex.",
"engineSetup.device.invalidChallenge": "Codex не вернул корректные ссылку и код входа OpenAI. Отмените и повторите попытку.",
"engineSetup.device.flowEnded": "Этот сеанс входа больше недоступен. Проверьте, что этому браузеру по-прежнему предоставлен полный доступ, и запросите новый код.",
+ "engineSetup.device.interrupted": "Вход был прерван. Начните заново.",
"engineSetup.device.tryAgain": "Повторить попытку",
"engineSetup.grok.description": "Войдите с помощью учётной записи grok.com, чтобы ваши боты могли использовать Grok. Вы завершите вход в своём браузере; терминал и передача пароля не понадобятся.",
"engineSetup.grok.start": "Войти в Grok",
diff --git a/src/locales/source-hashes.json b/src/locales/source-hashes.json
index bc8df98a02..cd95695507 100644
--- a/src/locales/source-hashes.json
+++ b/src/locales/source-hashes.json
@@ -1514,7 +1514,6 @@
"engineSetup.device.description": "0f1ec8f0f576411af1f3551da5351f12ced556e9d887198322dff3719c7b7c7f",
"engineSetup.chatgpt.welcomeBody": "194c98400c148953d7e7f35715f161e81f1f49b020df104f1363e2c3131d10f0",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.failed": "bd1c1dab8ac43920897e6e839c4a1c8603388d75a89c8e021d36a9d92d2f15c8",
"engineSetup.grok.description": "b365a8f9a633aee3b7d292dbe27c6780023e7cda40d90c40d3fa39d7530f399a",
@@ -8314,7 +8313,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
@@ -12796,7 +12794,6 @@
"engineSetup.device.description": "0f1ec8f0f576411af1f3551da5351f12ced556e9d887198322dff3719c7b7c7f",
"engineSetup.chatgpt.welcomeBody": "194c98400c148953d7e7f35715f161e81f1f49b020df104f1363e2c3131d10f0",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.failed": "bd1c1dab8ac43920897e6e839c4a1c8603388d75a89c8e021d36a9d92d2f15c8",
"engineSetup.grok.description": "b365a8f9a633aee3b7d292dbe27c6780023e7cda40d90c40d3fa39d7530f399a",
@@ -16958,7 +16955,6 @@
"engineSetup.device.description": "0f1ec8f0f576411af1f3551da5351f12ced556e9d887198322dff3719c7b7c7f",
"engineSetup.chatgpt.welcomeBody": "194c98400c148953d7e7f35715f161e81f1f49b020df104f1363e2c3131d10f0",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.failed": "bd1c1dab8ac43920897e6e839c4a1c8603388d75a89c8e021d36a9d92d2f15c8",
"engineSetup.grok.description": "b365a8f9a633aee3b7d292dbe27c6780023e7cda40d90c40d3fa39d7530f399a",
@@ -23661,7 +23657,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
@@ -33003,7 +32998,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
@@ -42188,7 +42182,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
@@ -53349,7 +53342,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
@@ -62969,7 +62961,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
@@ -68821,7 +68812,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
@@ -75065,7 +75055,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
@@ -82147,7 +82136,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
@@ -89676,7 +89664,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
@@ -97027,7 +97014,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
@@ -109653,7 +109639,6 @@
"engineSetup.device.waiting": "881d76d2239cdf9137ddb45450a75ca2cfe3961acd8f96214d08634910a01328",
"engineSetup.device.expires": "0026dd13d39cf2d79f97fae38ca322cd4e463db99b086f5726d1716df69b03c9",
"engineSetup.device.security": "44df4e27a78590b23e7ca39481730ba8f6d80192b6481f3f959a3631833a27ec",
- "engineSetup.device.enableHint": "5516c14d1fa3fb48e575a01ce81489c5475a73d5a1bfcb02ee6bbe9775b9e3b1",
"engineSetup.device.connected": "89d7c2aaba4f56e77860bbfe2dbac2ddadbe1aa486907388789cb90a06d04be8",
"engineSetup.device.connectedAccount": "d7fa418b955fff2847192d41909e89093503896dd11afa224ec65f4c99d397e1",
"engineSetup.device.cancel": "9effa0b7488496eeaed3bf526cf18bab53952e8a502008e7889eaf9840c012c7",
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 4dd9f6496a..4c87466890 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -3010,6 +3010,7 @@
"accounts.claude.openAgain": "Claude girişini aç",
"accounts.claude.step2": "2. Claude'un gösterdiği kodu yapıştırın",
"accounts.claude.codePlaceholder": "Kodu yapıştırın",
+ "accounts.claude.emailCode": "Bu, Claude'un size e-postayla gönderdiği giriş kodu gibi görünüyor. Bunu Claude'un sayfasına girin, Yetkilendir'e tıklayın, ardından Claude'un gösterdiği daha uzun kodu yapıştırın.",
"accounts.claude.finish": "Bitir",
"accounts.claude.security": "Kod Claude Code'a bir kez gönderilir ve asla kaydedilmez.",
"engines.none": "Henüz algılanan model sağlayıcı uygulaması yok.",
@@ -3862,7 +3863,7 @@
"engineSetup.device.waiting": "Oturum açmayı tamamlamanız bekleniyor…",
"engineSetup.device.expires": "Kodun süresi {time} saatinde doluyor",
"engineSetup.device.security": "Yalnızca buradan talep ettiğiniz bir kodu girin. Bu işlem botlarınız için Codex oturumu açar ve hesabınızın sınırlarını kullanır. Şifreniz OpenAI'de kalır; oturum botlarınızın çalıştığı yerde kalır.",
- "engineSetup.device.enableHint": "Cihaz kodu ile girişin ChatGPT güvenlik ayarlarında veya ChatGPT yöneticiniz tarafından etkinleştirilmesi gerekebilir.",
+ "engineSetup.device.enableNote": "OpenAI cihaz kodu ile girişe izin verilmediğini söylerse ChatGPT → Ayarlar → Güvenlik bölümünden açın (bunu ChatGPT yöneticinizin yapması gerekebilir), ardından tekrar deneyin.",
"engineSetup.device.connected": "ChatGPT bağlandı. Modelleriniz yenileniyor.",
"engineSetup.device.connectedAccount": "ChatGPT bağlandı",
"engineSetup.device.cancel": "Oturum açmayı iptal et",
@@ -3872,6 +3873,7 @@
"engineSetup.device.failed": "Oturum açma tamamlanamadı. Tekrar deneyin veya Codex kurulumunu kontrol edin.",
"engineSetup.device.invalidChallenge": "Codex geçerli bir OpenAI oturum açma bağlantısı ve kodu döndürmedi. İptal edip tekrar deneyin.",
"engineSetup.device.flowEnded": "Bu oturum açma oturumu artık kullanılamıyor. Bu tarayıcının hâlâ Tam erişimle eşleştirildiğini kontrol edin, ardından yeni bir kod talep edin.",
+ "engineSetup.device.interrupted": "Bu giriş yarıda kesildi. Yeniden başlayın.",
"engineSetup.device.tryAgain": "Tekrar dene",
"engineSetup.grok.description": "Botlarınızın Grok'u kullanabilmesi için grok.com hesabınızla giriş yapın. İşlemi kendi tarayıcınızda tamamlarsınız; terminal veya parola paylaşımı gerekmez.",
"engineSetup.grok.start": "Grok'a giriş yap",
diff --git a/src/locales/uk.json b/src/locales/uk.json
index e618db3bd1..83999b134a 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -1793,6 +1793,7 @@
"engines.account.signInHint": "Виконайте цю команду в терміналі на комп'ютері, де працює {app}, завершіть вхід Claude CLI, потім натисніть «Перевірити акаунт». Якщо ви дивитеся {app} віддалено, запускайте там, а не на цьому пристрої.",
"engines.account.powershell": "Для цієї команди використайте PowerShell.",
"accounts.chatgptDeviceHint": "Перш ніж вводити код, перевірте, що ChatGPT показує потрібний тут обліковий запис. Якщо показано інший, спочатку перемкніть обліковий запис там.",
+ "accounts.claude.emailCode": "Схоже, це код входу, який Claude надсилає поштою. Введіть його на сторінці Claude, натисніть «Авторизувати», а потім вставте довший код, який покаже Claude.",
"engines.none": "Застосунків провайдерів моделей ще не виявлено.",
"engines.footer": "«Задати CLI» прив'язує провайдера моделей до конкретного бінарника — версійної збірки, скрипта-обгортки або абсолютного шляху. Зміни зберігаються лише коли обраний провайдер неактивний. Інші провайдери продовжують працювати.",
"engines.library.custom": "Своя модель",
@@ -2428,13 +2429,14 @@
"engineSetup.device.waiting": "Чекаємо, поки ви завершите вхід…",
"engineSetup.device.expires": "Код спливає о {time}",
"engineSetup.device.security": "Вводьте лише код, який ви самі запросили тут. Це виконує вхід Codex для ваших ботів і використовує ліміти вашого акаунта. Ваш пароль лишається в OpenAI, а вхід — там, де працюють ваші боти.",
- "engineSetup.device.enableHint": "Вхід за кодом пристрою може потребувати увімкнення в налаштуваннях безпеки ChatGPT або від вашого адміна ChatGPT.",
+ "engineSetup.device.enableNote": "Якщо OpenAI повідомляє, що вхід за кодом пристрою не дозволено, увімкніть його в ChatGPT → Налаштування → Безпека (можливо, це має зробити ваш адмін ChatGPT), а потім спробуйте ще раз.",
"engineSetup.device.connected": "ChatGPT підключено. Моделі оновлюються.",
"engineSetup.device.connectedAccount": "ChatGPT підключено",
"engineSetup.device.cancel": "Скасувати вхід",
"engineSetup.device.cancelling": "Скасовуємо…",
"engineSetup.device.cancelled": "Вхід скасовано. Можете запросити новий код, коли будете готові.",
"engineSetup.device.expired": "Цей код сплив. Запросіть новий код, щоб спробувати ще раз.",
+ "engineSetup.device.interrupted": "Вхід було перервано. Почніть знову.",
"engineSetup.device.failed": "Вхід не вдалося завершити. Спробуйте ще раз або перевірте встановлення Codex.",
"engineSetup.device.invalidChallenge": "Codex не повернув дійсне посилання входу OpenAI і код. Скасуйте і спробуйте ще раз.",
"engineSetup.grok.description": "Увійдіть зі своїм акаунтом grok.com, щоб ваші боти могли користуватися Grok. Ви завершуєте вхід у власному браузері; термінал чи спільний пароль не потрібні.",
diff --git a/src/locales/vi.json b/src/locales/vi.json
index 62d6abf5b4..d3a46d8fb4 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -3010,6 +3010,7 @@
"accounts.claude.openAgain": "Mở trang đăng nhập Claude",
"accounts.claude.step2": "2. Dán mã mà Claude hiển thị cho bạn",
"accounts.claude.codePlaceholder": "Dán mã",
+ "accounts.claude.emailCode": "Đây có vẻ là mã đăng nhập Claude gửi qua email cho bạn. Hãy nhập mã đó trên trang của Claude, nhấn Ủy quyền, rồi dán mã dài hơn mà Claude hiển thị.",
"accounts.claude.finish": "Hoàn tất",
"accounts.claude.security": "Mã chỉ được gửi tới Claude Code một lần và không bao giờ được lưu.",
"engines.none": "Chưa phát hiện ứng dụng nhà cung cấp mô hình nào.",
@@ -3862,7 +3863,7 @@
"engineSetup.device.waiting": "Đang chờ bạn hoàn tất đăng nhập…",
"engineSetup.device.expires": "Mã hết hạn lúc {time}",
"engineSetup.device.security": "Chỉ nhập mã bạn đã yêu cầu tại đây. Thao tác này sẽ đăng nhập Codex cho các bot của bạn và sử dụng hạn mức tài khoản của bạn. Mật khẩu của bạn luôn được lưu tại OpenAI; thông tin đăng nhập ở lại nơi bot của bạn chạy.",
- "engineSetup.device.enableHint": "Tính năng đăng nhập bằng mã thiết bị có thể cần được bật trong cài đặt bảo mật của ChatGPT hoặc do quản trị viên ChatGPT của bạn cấp quyền.",
+ "engineSetup.device.enableNote": "Nếu OpenAI báo không cho phép đăng nhập bằng mã thiết bị, hãy bật tính năng này trong ChatGPT → Cài đặt → Bảo mật (có thể quản trị viên ChatGPT của bạn phải bật), rồi thử lại.",
"engineSetup.device.connected": "Đã kết nối ChatGPT. Các mô hình của bạn đang được làm mới.",
"engineSetup.device.connectedAccount": "ChatGPT đã kết nối",
"engineSetup.device.cancel": "Hủy đăng nhập",
@@ -3872,6 +3873,7 @@
"engineSetup.device.failed": "Không thể hoàn tất đăng nhập. Hãy thử lại hoặc kiểm tra bản cài đặt Codex.",
"engineSetup.device.invalidChallenge": "Codex không trả về liên kết và mã đăng nhập OpenAI hợp lệ. Hãy hủy và thử lại.",
"engineSetup.device.flowEnded": "Phiên đăng nhập này không còn khả dụng. Hãy kiểm tra xem trình duyệt này có còn được ghép nối với quyền Toàn quyền truy cập hay không, rồi yêu cầu mã mới.",
+ "engineSetup.device.interrupted": "Lần đăng nhập này đã bị gián đoạn. Hãy bắt đầu lại.",
"engineSetup.device.tryAgain": "Thử lại",
"engineSetup.grok.description": "Đăng nhập bằng tài khoản grok.com của bạn để các bot có thể dùng Grok. Bạn hoàn tất trong trình duyệt của riêng mình; không cần chia sẻ terminal hay mật khẩu.",
"engineSetup.grok.start": "Đăng nhập vào Grok",
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index 3c9813e678..b0da01ade7 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -4342,6 +4342,7 @@
"accounts.claude.openAgain": "開啟 Claude 登入",
"accounts.claude.step2": "2. 貼上 Claude 顯示的代碼",
"accounts.claude.codePlaceholder": "貼上代碼",
+ "accounts.claude.emailCode": "這看起來是 Claude 寄到你信箱的登入碼。請在 Claude 的頁面輸入它,點選「授權」,再貼上 Claude 顯示的較長代碼。",
"accounts.claude.finish": "完成",
"accounts.claude.security": "代碼只會傳送給 Claude Code 一次,且永遠不會儲存。",
"claudeEndpoints.title": "自訂端點",
@@ -5674,7 +5675,7 @@
"engineSetup.device.waiting": "正在等待你完成登入…",
"engineSetup.device.expires": "驗證碼將於 {time} 過期",
"engineSetup.device.security": "請只輸入你在這裡要求的驗證碼。這會為你的機器人登入 Codex,並使用你帳戶的用量限制。你的密碼只會留在 OpenAI;登入資訊則留在機器人執行的地方。",
- "engineSetup.device.enableHint": "裝置碼登入可能需要在 ChatGPT 安全性設定中啟用,或由你的 ChatGPT 管理員啟用。",
+ "engineSetup.device.enableNote": "如果 OpenAI 表示不允許使用裝置碼登入,請到 ChatGPT → 設定 → 安全性 開啟(可能需要你的 ChatGPT 管理員開啟),然後再試一次。",
"engineSetup.device.connected": "ChatGPT 已連線。正在重新整理你的模型。",
"engineSetup.device.connectedAccount": "ChatGPT 已連線",
"engineSetup.device.cancel": "取消登入",
@@ -5684,6 +5685,7 @@
"engineSetup.device.failed": "無法完成登入。請重試,或檢查 Codex 的安裝狀況。",
"engineSetup.device.invalidChallenge": "Codex 未傳回有效的 OpenAI 登入連結與驗證碼。請取消後再試一次。",
"engineSetup.device.flowEnded": "此登入工作階段已失效。請確認這個瀏覽器仍以完整存取權完成配對,然後重新索取驗證碼。",
+ "engineSetup.device.interrupted": "這次登入已中斷。請重新開始。",
"engineSetup.device.tryAgain": "再試一次",
"engineSetup.grok.description": "使用你的 grok.com 帳戶登入,讓你的機器人可以使用 Grok。只要在自己的瀏覽器中完成即可;不需要使用終端機,也不必共用密碼。",
"engineSetup.grok.start": "登入 Grok",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index ea8658d00c..568ea6d563 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -4397,6 +4397,7 @@
"accounts.claude.openAgain": "打开 Claude 登录页",
"accounts.claude.step2": "2. 粘贴 Claude 显示的代码",
"accounts.claude.codePlaceholder": "粘贴代码",
+ "accounts.claude.emailCode": "这看起来是 Claude 发到你邮箱的登录码。请在 Claude 的页面输入它,点击“授权”,再粘贴 Claude 显示的较长代码。",
"accounts.claude.finish": "完成",
"accounts.claude.security": "代码只会发送给 Claude Code 一次,不会被保存。",
"engines.none": "尚未检测到模型提供方应用。",
@@ -5710,7 +5711,7 @@
"engineSetup.device.waiting": "正在等待你完成登录…",
"engineSetup.device.expires": "验证码将于 {time} 过期",
"engineSetup.device.security": "请只输入你在这里请求的验证码。这会为你的机器人登录 Codex,并使用你账户的用量限制。你的密码只会留在 OpenAI;登录信息则留在机器人运行的地方。",
- "engineSetup.device.enableHint": "设备码登录可能需要在 ChatGPT 安全设置中启用,或由你的 ChatGPT 管理员启用。",
+ "engineSetup.device.enableNote": "如果 OpenAI 提示不允许使用设备码登录,请在 ChatGPT → 设置 → 安全 中开启(可能需要你的 ChatGPT 管理员开启),然后重试。",
"engineSetup.device.connected": "ChatGPT 已连接。正在刷新你的模型。",
"engineSetup.device.connectedAccount": "ChatGPT 已连接",
"engineSetup.device.cancel": "取消登录",
@@ -5720,6 +5721,7 @@
"engineSetup.device.failed": "无法完成登录。请重试,或检查 Codex 的安装状况。",
"engineSetup.device.invalidChallenge": "Codex 未返回有效的 OpenAI 登录链接和验证码。请取消后重试。",
"engineSetup.device.flowEnded": "此登录会话已失效。请确认这个浏览器仍以完全访问权限完成配对,然后重新索取验证码。",
+ "engineSetup.device.interrupted": "此次登录已中断。请重新开始。",
"engineSetup.device.tryAgain": "重试",
"engineSetup.grok.description": "使用你的 grok.com 账户登录,让你的机器人可以使用 Grok。只需在自己的浏览器中完成;不需要使用终端,也不必共享密码。",
"engineSetup.grok.start": "登录 Grok",