fix(codex-bridge): say so when AITURK is unreachable instead of a silent 503
ci / mobile-link-windows (push) Canceled after 0s
ci / approval-gate-windows (push) Canceled after 0s

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 <noreply@anthropic.com>
This commit is contained in:
yilsemandClaude Opus 5.5 committed 2026-10-11 02:01:21 +03:00
1 parent a46ff51019
commit 615fedde01
1 file changed
+7
@@ -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