From 615fedde0158bc42442f6acdf825f4a3e79a95aa Mon Sep 17 00:00:00 2001 From: yilsem Date: Sun, 11 Oct 2026 02:01:21 +0300 Subject: [PATCH] fix(codex-bridge): say so when AITURK is unreachable instead of a silent 503 During the server cutover the gateway was down; the bridge answered 503, Codex retried silently, the turn ended empty and the voice assistant kept saying it was checking. The user now hears that AITURK is unreachable and how to switch to a subscription model. Co-Authored-By: Claude Opus 5.5 --- apps/desktop/assets/codex-bridge/bridge.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/desktop/assets/codex-bridge/bridge.py b/apps/desktop/assets/codex-bridge/bridge.py index 7265e98..7a7ea64 100644 --- a/apps/desktop/assets/codex-bridge/bridge.py +++ b/apps/desktop/assets/codex-bridge/bridge.py @@ -1310,6 +1310,13 @@ class H(http.server.BaseHTTPRequestHandler): if mapping is None and slug.startswith(ide_prefix): # Never send an IDE model to chatgpt.com under another name. log(f"[{n} IDE {slug}] Codex Baglama kapali ya da IDE anahtari yok") + # 503 donmek Codex'i sessizce yeniden denetiyor ve tur cevapsiz bitiyordu; sesli asistan da "bakiyorum" + # deyip duruyordu (olcum 11 Ekim 2026, sunucu gecisi sirasinda). Kullanici durumu duysun. + if CFG.get("kesinti_mesaji", True): + return self._yerel_yanit(gelen, "AITURK modellerine şu an ulaşılamıyor (AITURK sunucusu cevap vermiyor ya da " + "bağlantı kapalı); bu model şimdi cevap veremez. Beklemek istemezsen Codex'in kendi " + "modeline geç: \"modeli gpt 6 astra yap\" de. AITURK geri gelince tekrar " + "\"modeli … yap\" diyerek dönebilirsin.") return self._send_json(503, {"error": {"message": "AITURK IDE Codex Baglama kapali ya da IDE oturumu bulunamadi; bu model su an kullanilamiyor."}}) if mapping is None: # abonelik modeli: chatgpt.com'a oldugu gibi