From 1035c2e1da8a2f5c580e2f13e0b921e825775389 Mon Sep 17 00:00:00 2001 From: Roman | RyzenAdvanced Date: Mon, 25 May 2026 16:19:39 +0400 Subject: [PATCH] Fix Codebuff OAuth: use www.codebuff.com (307 redirect on bare domain) --- src/codex-launcher-gui | 6 +++--- src/translate-proxy.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/codex-launcher-gui b/src/codex-launcher-gui index 4041d2b..1ab4286 100755 --- a/src/codex-launcher-gui +++ b/src/codex-launcher-gui @@ -393,7 +393,7 @@ PROVIDER_PRESETS = { }, "Codebuff (Free DeepSeek/Kimi)": { "backend_type": "codebuff", - "base_url": "https://codebuff.com", + "base_url": "https://www.codebuff.com", "oauth_provider": "codebuff", "models": [ "deepseek/deepseek-v4-pro", "deepseek/deepseek-v4-flash", @@ -3685,7 +3685,7 @@ class EditEndpointDialog(Gtk.Dialog): def _codebuff_auth_thread(): try: fingerprint_id = str(uuid.uuid4()) - auth_url = "https://codebuff.com/api/auth/cli/code" + auth_url = "https://www.codebuff.com/api/auth/cli/code" body = json.dumps({"fingerprintId": fingerprint_id}).encode() req = urllib.request.Request(auth_url, data=body, headers={"Content-Type": "application/json", "User-Agent": "codex-launcher/3.10.5"}) @@ -3707,7 +3707,7 @@ class EditEndpointDialog(Gtk.Dialog): webbrowser.open(login_url) - poll_url = f"https://codebuff.com/api/auth/cli/status?fingerprintId={urllib.parse.quote(fingerprint_id)}&fingerprintHash={urllib.parse.quote(fingerprint_hash)}&expiresAt={expires_at}" + poll_url = f"https://www.codebuff.com/api/auth/cli/status?fingerprintId={urllib.parse.quote(fingerprint_id)}&fingerprintHash={urllib.parse.quote(fingerprint_hash)}&expiresAt={expires_at}" deadline = time.time() + 300 while time.time() < deadline: time.sleep(2) diff --git a/src/translate-proxy.py b/src/translate-proxy.py index 73d3250..b000613 100755 --- a/src/translate-proxy.py +++ b/src/translate-proxy.py @@ -294,7 +294,7 @@ _conn_pool = {} _STREAM_IDLE_TIMEOUT = 300 -_CODEBUFF_AUTH_URL = "https://codebuff.com" +_CODEBUFF_AUTH_URL = "https://www.codebuff.com" _CODEBUFF_API_URL = "https://www.codebuff.com" _CODEBUFF_AGENT_MAP = { "deepseek/deepseek-v4-pro": "base2-free-deepseek",