7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.
TypeScript
feat(health): last_healthy_at — separate 'worked recently' from 'checked recently' (#1493) (#1606)
tashdroidb9ec4a5ec4f4
diff --git a/client/src/components/keys/provider-list.tsx b/client/src/components/keys/provider-list.tsxindex 6d775535..e73b64ff 100644--- a/client/src/components/keys/provider-list.tsx+++ b/client/src/components/keys/provider-list.tsx@@ -319,7 +319,7 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {})}- const healthKeyMap = new Map<number, { status: string; lastCheckedAt: string | null; lastHealthError: string | null }>()+ const healthKeyMap = new Map<number, { status: string; lastCheckedAt: string | null; lastHealthyAt?: string | null; lastHealthError: string | null }>()for (const k of healthData?.keys ?? []) healthKeyMap.set(k.id, k)const statusOf = (k: ApiKey) => healthKeyMap.get(k.id)?.status ?? k.status// "unchecked" is not a problem (#1459): a new key sits there until its@@ -624,6 +624,11 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {const status = statusOf(k)const health = healthKeyMap.get(k.id)const lastChecked = health?.lastCheckedAt ?? k.lastCheckedAt+ // #1493: "last worked" is separate from "last checked" —+ // a transport error refreshes the check time without+ // proving the key works, so a stale worked-time under a+ // fresh check-time is the signal an operator needs.+ const lastWorked = health?.lastHealthyAt ?? k.lastHealthyAt ?? nullconst lastHealthError = health?.lastHealthError ?? k.lastHealthErrorconst balance = balanceOf.get(k.id)const customModels = k.models ?? []@@ -733,9 +738,15 @@ export function ProviderList({ onAddKey }: { onAddKey: () => void }) {)}<div className="flex-1" />{lastChecked && (- <span className="text-[11px] text-muted-foreground tabular-nums">- {formatSqliteUtcToLocalTime(lastChecked, { hour: '2-digit', minute: '2-digit' })}- </span>+ <Tooltip+ text={lastWorked+ ? t('keys.lastWorkedHint', { when: formatSqliteUtcToLocalTime(lastWorked, { hour: '2-digit', minute: '2-digit' }) })+ : t('keys.lastWorkedNever')}+ >+ <span className="text-[11px] text-muted-foreground tabular-nums">+ {formatSqliteUtcToLocalTime(lastChecked, { hour: '2-digit', minute: '2-digit' })}+ </span>+ </Tooltip>)}<div className="flex items-center gap-0.5 opacity-0 transition-opacity group-hover/krow:opacity-100 focus-within:opacity-100 pointer-coarse:opacity-100"><Buttondiff --git a/client/src/components/keys/shared.tsx b/client/src/components/keys/shared.tsxindex 585c5099..01b7041e 100644--- a/client/src/components/keys/shared.tsx+++ b/client/src/components/keys/shared.tsx@@ -162,6 +162,6 @@ export interface HealthPlatform {export interface HealthData {platforms: HealthPlatform[]- keys: { id: number; platform: string; status: string; lastCheckedAt: string | null; lastHealthError: string | null }[]+ keys: { id: number; platform: string; status: string; lastCheckedAt: string | null; lastHealthyAt?: string | null; lastHealthError: string | null }[]quotaStates: ProviderQuotaState[]}diff --git a/client/src/i18n/locales/am.json b/client/src/i18n/locales/am.jsonindex 0c8aac46..c9125b27 100644--- a/client/src/i18n/locales/am.json+++ b/client/src/i18n/locales/am.json@@ -542,6 +542,8 @@"providerActions": "የአቅራቢዎች እርምጃዎች","routeViaProxy": "በፕሮክሲ በኩል የሚደረግ መንገድ","checkNow": "አሁን ይመልከቱ",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "ይህ አቅራቢ ራስ-ሰር የቁልፍ ፍተሻዎችን አይፈቅድም። ቁልፉ የመጀመሪያ ጥያቄውን ካገለገለ በኋላ ጤናማ ይሆናል።","noModelsYetHint": "ካታሎግዎ ከዚህ አቅራቢ እስካሁን ሞዴሎች የሉትም፣ ስለዚህ የሚያገለግለው ነገር የለም።","proxyEnvHintBefore": "እንዲሁም በ በኩል ሊዋቀር ይችላል",diff --git a/client/src/i18n/locales/ar.json b/client/src/i18n/locales/ar.jsonindex 17cc0274..4a7c02b5 100644--- a/client/src/i18n/locales/ar.json+++ b/client/src/i18n/locales/ar.json@@ -542,6 +542,8 @@"providerActions": "إجراءات المزود","routeViaProxy": "الطريق عبر الوكيل","checkNow": "تحقق الآن",+ "lastWorkedHint": "آخر عمل: {when}",+ "lastWorkedNever": "لم يقدّم أي طلب ولم يجتز أي فحص بعد","noAutoCheckHint": "لا يسمح هذا المزوّد بالفحص الآلي للمفاتيح. يصبح المفتاح سليمًا بعد أن يخدم أول طلب له.","noModelsYetHint": "لا يحتوي الكتالوج لديك على نماذج من هذا المزوّد بعد، لذا لا يوجد ما يخدمه.","proxyEnvHintBefore": "يمكن تكوينه أيضًا عبر",diff --git a/client/src/i18n/locales/az.json b/client/src/i18n/locales/az.jsonindex 6f072966..b3714759 100644--- a/client/src/i18n/locales/az.json+++ b/client/src/i18n/locales/az.json@@ -542,6 +542,8 @@"providerActions": "Təchizatçı tədbirləri","routeViaProxy": "Proxy vasitəsilə marşrut","checkNow": "İndi yoxla",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Bu provayder açarların avtomatik yoxlanmasına icazə vermir. Açar ilk sorğusuna xidmət etdikdən sonra sağlam olur.","noModelsYetHint": "Kataloqunuzda hələ bu provayderin modeli yoxdur, ona görə də xidmət edəcəyi bir şey yoxdur.","proxyEnvHintBefore": "Həmçinin konfiqurasiya etmək üçün",diff --git a/client/src/i18n/locales/bg.json b/client/src/i18n/locales/bg.jsonindex 50217892..4fa21d25 100644--- a/client/src/i18n/locales/bg.json+++ b/client/src/i18n/locales/bg.json@@ -542,6 +542,8 @@"providerActions": "Действия на доставчика","routeViaProxy": "Маршрут чрез прокси","checkNow": "Провери сега",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Този доставчик не позволява автоматични проверки на ключове. Ключът става изправен, след като обслужи първата си заявка.","noModelsYetHint": "Каталогът ви все още няма модели от този доставчик, така че няма какво да обслужва.","proxyEnvHintBefore": "Също така може да се конфигурира чрез",diff --git a/client/src/i18n/locales/bn.json b/client/src/i18n/locales/bn.jsonindex c2e3e929..c20f3498 100644--- a/client/src/i18n/locales/bn.json+++ b/client/src/i18n/locales/bn.json@@ -542,6 +542,8 @@"providerActions": "প্রদানকারী কর্ম","routeViaProxy": "প্রক্সি মাধ্যমে রুট","checkNow": "এখন পরীক্ষা করুন",+ "lastWorkedHint": "সর্বশেষ কার্যকর: {when}",+ "lastWorkedNever": "এখনো কোনো অনুরোধ পরিবেশন করেনি বা পরীক্ষায় উতীর্ণ হয়নি","noAutoCheckHint": "এই প্রদানকারী স্বয়ংক্রিয় কী যাচাই অনুমতি দেয় না। প্রথম অনুরোধ পরিবেশন করার পরে কী সুস্থ হয়ে যায়।","noModelsYetHint": "আপনার ক্যাটালগে এখনও এই প্রদানকারীর কোনো মডেল নেই, তাই পরিবেশন করার কিছু নেই।","proxyEnvHintBefore": "এছাড়াও মাধ্যমে কনফিগারযোগ্য",diff --git a/client/src/i18n/locales/cs.json b/client/src/i18n/locales/cs.jsonindex 20b6e289..12934201 100644--- a/client/src/i18n/locales/cs.json+++ b/client/src/i18n/locales/cs.json@@ -542,6 +542,8 @@"providerActions": "Akce poskytovatele","routeViaProxy": "Trasa přes zástupce","checkNow": "Zkontrolujte to teď",+ "lastWorkedHint": "Naposledy fungoval: {when}",+ "lastWorkedNever": "Zatím neobsloužil žádný požadavek ani neprošel kontrolou","noAutoCheckHint": "Tento poskytovatel nepovoluje automatické kontroly klíčů. Klíč bude v pořádku, jakmile obslouží svůj první požadavek.","noModelsYetHint": "Váš katalog zatím neobsahuje žádné modely tohoto poskytovatele, takže nemá co obsluhovat.","proxyEnvHintBefore": "Také konfigurovatelné přes",diff --git a/client/src/i18n/locales/da.json b/client/src/i18n/locales/da.jsonindex 11761cf7..ef45c895 100644--- a/client/src/i18n/locales/da.json+++ b/client/src/i18n/locales/da.json@@ -542,6 +542,8 @@"providerActions": "Udbyderhandlinger","routeViaProxy": "Rute via proxy","checkNow": "Tjek nu",+ "lastWorkedHint": "Sidst fungerende: {when}",+ "lastWorkedNever": "Har endnu ikke betjent en anmodning eller bestået et tjek","noAutoCheckHint": "Denne udbyder tillader ikke automatiske nøgletjek. Nøglen bliver sund, når den har betjent sin første forespørgsel.","noModelsYetHint": "Dit katalog har endnu ingen modeller fra denne udbyder, så der er intet for den at betjene.","proxyEnvHintBefore": "Også konfigurerbar via",diff --git a/client/src/i18n/locales/de.json b/client/src/i18n/locales/de.jsonindex f386b715..f705309a 100644--- a/client/src/i18n/locales/de.json+++ b/client/src/i18n/locales/de.json@@ -542,6 +542,8 @@"providerActions": "Anbieteraktionen","routeViaProxy": "Route über Proxy","checkNow": "Jetzt prüfen",+ "lastWorkedHint": "Zuletzt funktionsfähig: {when}",+ "lastWorkedNever": "Hat noch keine Anfrage bedient und keine Prüfung bestanden","noAutoCheckHint": "Dieser Anbieter erlaubt keine automatischen Schlüsselprüfungen. Der Schlüssel wird gesund, sobald er seine erste Anfrage bedient hat.","noModelsYetHint": "Dein Katalog enthält noch keine Modelle dieses Anbieters, daher gibt es nichts zu bedienen.","proxyEnvHintBefore": "Auch konfigurierbar über die",diff --git a/client/src/i18n/locales/el.json b/client/src/i18n/locales/el.jsonindex 059b6ece..b3ec9e5a 100644--- a/client/src/i18n/locales/el.json+++ b/client/src/i18n/locales/el.json@@ -542,6 +542,8 @@"providerActions": "Ενέργειες παρόχου","routeViaProxy": "Δρομολόγηση μέσω διακομιστή μεσολάβησης","checkNow": "Ελέγξτε τώρα",+ "lastWorkedHint": "Τελευταία λειτουργία: {when}",+ "lastWorkedNever": "Δεν έχει εξυπηρετήσει ακόμη κανένα αίτημα ούτε περάσει έλεγχο","noAutoCheckHint": "Αυτός ο πάροχος δεν επιτρέπει αυτόματους ελέγχους κλειδιών. Το κλειδί γίνεται υγιές αφού εξυπηρετήσει το πρώτο του αίτημα.","noModelsYetHint": "Ο κατάλογός σας δεν έχει ακόμη μοντέλα από αυτόν τον πάροχο, οπότε δεν υπάρχει τίποτα να εξυπηρετήσει.","proxyEnvHintBefore": "Μπορεί επίσης να διαμορφωθεί μέσω του",diff --git a/client/src/i18n/locales/en.json b/client/src/i18n/locales/en.jsonindex 1322f7e1..ef6f6657 100644--- a/client/src/i18n/locales/en.json+++ b/client/src/i18n/locales/en.json@@ -587,6 +587,8 @@"providerActions": "Provider actions","routeViaProxy": "Route via proxy","checkNow": "Check now",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "This provider doesn't allow automated key checks. The key turns healthy after it serves its first request.","noModelsYetHint": "Your catalog has no models from this provider yet, so there's nothing for it to serve.","proxyEnvHintBefore": "Also configurable via the ",diff --git a/client/src/i18n/locales/es.json b/client/src/i18n/locales/es.jsonindex 792a05cb..0ca53760 100644--- a/client/src/i18n/locales/es.json+++ b/client/src/i18n/locales/es.json@@ -542,6 +542,8 @@"providerActions": "Acciones del proveedor","routeViaProxy": "Enrutar por proxy","checkNow": "Comprobar ahora",+ "lastWorkedHint": "Último funcionamiento: {when}",+ "lastWorkedNever": "Aún no ha atendido solicitudes ni pasado una comprobación","noAutoCheckHint": "Este proveedor no permite comprobaciones automáticas de claves. La clave pasa a estar sana cuando atiende su primera solicitud.","noModelsYetHint": "Tu catálogo aún no tiene modelos de este proveedor, así que no tiene nada que atender.","proxyEnvHintBefore": "También configurable mediante la variable de entorno ",diff --git a/client/src/i18n/locales/fa.json b/client/src/i18n/locales/fa.jsonindex 7e00ade7..0ecd13fc 100644--- a/client/src/i18n/locales/fa.json+++ b/client/src/i18n/locales/fa.json@@ -542,6 +542,8 @@"providerActions": "اقدامات ارائه دهنده","routeViaProxy": "مسیریابی از طریق پروکسی","checkNow": "اکنون بررسی کنید",+ "lastWorkedHint": "آخرین عملکرد: {when}",+ "lastWorkedNever": "هنوز درخواستی را خدمت نکرده و بازرسی را قبول نکرده است","noAutoCheckHint": "این ارائهدهنده بررسی خودکار کلید را مجاز نمیداند. کلید پس از پاسخ به نخستین درخواستش سالم میشود.","noModelsYetHint": "کاتالوگ شما هنوز مدلی از این ارائهدهنده ندارد، پس چیزی برای پاسخدادن ندارد.","proxyEnvHintBefore": "همچنین قابل تنظیم از طریق",diff --git a/client/src/i18n/locales/fi.json b/client/src/i18n/locales/fi.jsonindex 29603ec2..9ebcda36 100644--- a/client/src/i18n/locales/fi.json+++ b/client/src/i18n/locales/fi.json@@ -542,6 +542,8 @@"providerActions": "Palveluntarjoajan toimet","routeViaProxy": "Reitti välityspalvelimen kautta","checkNow": "Tarkista nyt",+ "lastWorkedHint": "Viimeksi toiminnassa: {when}",+ "lastWorkedNever": "Ei ole vielä palvellut pyyntöjä eikä läpäissyt tarkistusta","noAutoCheckHint": "Tämä palveluntarjoaja ei salli avainten automaattisia tarkistuksia. Avain muuttuu terveeksi, kun se on palvellut ensimmäisen pyyntönsä.","noModelsYetHint": "Katalogissasi ei ole vielä tämän palveluntarjoajan malleja, joten sillä ei ole mitään palveltavaa.","proxyEnvHintBefore": "Myös konfiguroitavissa",diff --git a/client/src/i18n/locales/fr.json b/client/src/i18n/locales/fr.jsonindex 48dc009d..947a8e7a 100644--- a/client/src/i18n/locales/fr.json+++ b/client/src/i18n/locales/fr.json@@ -542,6 +542,8 @@"providerActions": "Actions du fournisseur","routeViaProxy": "Acheminer via le proxy","checkNow": "Vérifier maintenant",+ "lastWorkedHint": "Dernier fonctionnement : {when}",+ "lastWorkedNever": "N'a encore servi aucune requête ni réussi de vérification","noAutoCheckHint": "Ce fournisseur n'autorise pas les vérifications automatiques de clés. La clé passe à l'état sain après avoir servi sa première requête.","noModelsYetHint": "Votre catalogue ne contient encore aucun modèle de ce fournisseur, il n'a donc rien à servir.","proxyEnvHintBefore": "Également configurable via la variable d'environnement ",diff --git a/client/src/i18n/locales/gu.json b/client/src/i18n/locales/gu.jsonindex 07d54a0f..a051b099 100644--- a/client/src/i18n/locales/gu.json+++ b/client/src/i18n/locales/gu.json@@ -542,6 +542,8 @@"providerActions": "પ્રદાતા ક્રિયાઓ","routeViaProxy": "પ્રોક્સી મારફતે રૂટ","checkNow": "હવે તપાસો",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "આ પ્રદાતા સ્વચાલિત કી ચકાસણીની મંજૂરી આપતો નથી. પ્રથમ વિનંતી પૂરી કર્યા પછી કી સ્વસ્થ બને છે.","noModelsYetHint": "તમારા કેટલોગમાં હજી આ પ્રદાતાના કોઈ મોડેલ નથી, તેથી પૂરું પાડવા માટે કંઈ નથી.","proxyEnvHintBefore": "દ્વારા પણ રૂપરેખાંકિત કરી શકાય છે",diff --git a/client/src/i18n/locales/ha.json b/client/src/i18n/locales/ha.jsonindex f466b0b4..49ab66cc 100644--- a/client/src/i18n/locales/ha.json+++ b/client/src/i18n/locales/ha.json@@ -542,6 +542,8 @@"providerActions": "Ayyukan mai bayarwa","routeViaProxy": "Hanya ta hanyar wakili","checkNow": "Duba yanzu",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Wannan mai bayarwa ba ya ba da izinin duba maɓalli ta atomatik. Maɓallin zai zama lafiya bayan ya yi hidimar buƙatarsa ta farko.","noModelsYetHint": "Kasidarka ba ta da samfura daga wannan mai bayarwa tukuna, don haka babu abin da zai yi wa hidima.","proxyEnvHintBefore": "Hakanan ana iya daidaitawa ta hanyar",diff --git a/client/src/i18n/locales/he.json b/client/src/i18n/locales/he.jsonindex 75a3387a..a987a4ad 100644--- a/client/src/i18n/locales/he.json+++ b/client/src/i18n/locales/he.json@@ -542,6 +542,8 @@"providerActions": "פעולות ספק","routeViaProxy": "מסלול באמצעות פרוקסי","checkNow": "בדוק עכשיו",+ "lastWorkedHint": "עבד לאחרונה: {when}",+ "lastWorkedNever": "עדיין לא שירת בקש ולא עבר בדיקה","noAutoCheckHint": "ספק זה אינו מאפשר בדיקות מפתח אוטומטיות. המפתח הופך לתקין אחרי שהוא משרת את הבקשה הראשונה שלו.","noModelsYetHint": "בקטלוג שלך עדיין אין מודלים מהספק הזה, כך שאין לו מה לשרת.","proxyEnvHintBefore": "ניתן גם להגדיר דרך",diff --git a/client/src/i18n/locales/hi.json b/client/src/i18n/locales/hi.jsonindex 976f1e56..54437529 100644--- a/client/src/i18n/locales/hi.json+++ b/client/src/i18n/locales/hi.json@@ -542,6 +542,8 @@"providerActions": "प्रदाता कार्रवाई","routeViaProxy": "प्रॉक्सी के माध्यम से रूट करें","checkNow": "अभी जांचें",+ "lastWorkedHint": "अंतिम बार कार्यरत: {when}",+ "lastWorkedNever": "अभी तक अनुरोध नहीं सेवा किया और न ही जाँच पास की","noAutoCheckHint": "यह प्रदाता स्वचालित कुंजी जाँच की अनुमति नहीं देता। पहला अनुरोध पूरा करने के बाद कुंजी स्वस्थ हो जाती है।","noModelsYetHint": "आपके कैटलॉग में अभी इस प्रदाता का कोई मॉडल नहीं है, इसलिए इसके पास पूरा करने को कुछ नहीं है।","proxyEnvHintBefore": "के माध्यम से भी कॉन्फ़िगर करने योग्य है",diff --git a/client/src/i18n/locales/hr.json b/client/src/i18n/locales/hr.jsonindex b19d4c65..64fd5318 100644--- a/client/src/i18n/locales/hr.json+++ b/client/src/i18n/locales/hr.json@@ -542,6 +542,8 @@"providerActions": "Akcije pružatelja","routeViaProxy": "Ruta putem posrednika","checkNow": "Provjeri sada",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Ovaj pružatelj ne dopušta automatske provjere ključeva. Ključ postaje ispravan nakon što posluži svoj prvi zahtjev.","noModelsYetHint": "Vaš katalog još nema modele ovog pružatelja, pa nema što posluživati.","proxyEnvHintBefore": "Također se može konfigurirati putem",diff --git a/client/src/i18n/locales/hu.json b/client/src/i18n/locales/hu.jsonindex 33e46cbd..9304449d 100644--- a/client/src/i18n/locales/hu.json+++ b/client/src/i18n/locales/hu.json@@ -542,6 +542,8 @@"providerActions": "Szolgáltatói intézkedések","routeViaProxy": "Útvonal proxyn keresztül","checkNow": "Ellenőrizd most",+ "lastWorkedHint": "Utolsó működés: {when}",+ "lastWorkedNever": "Még nem szolgált le egyetlen kérést sem, és nem sikerült egy ellenőrzés sem","noAutoCheckHint": "Ez a szolgáltató nem engedélyezi a kulcsok automatikus ellenőrzését. A kulcs az első kiszolgált kérése után lesz egészséges.","noModelsYetHint": "A katalógusodban még nincs modell ettől a szolgáltatótól, így nincs mit kiszolgálnia.","proxyEnvHintBefore": "Konfigurálható a",diff --git a/client/src/i18n/locales/id.json b/client/src/i18n/locales/id.jsonindex dee65583..9f4711a3 100644--- a/client/src/i18n/locales/id.json+++ b/client/src/i18n/locales/id.json@@ -542,6 +542,8 @@"providerActions": "Tindakan penyedia","routeViaProxy": "Rute melalui proxy","checkNow": "Periksa sekarang",+ "lastWorkedHint": "Terakhir berfungsi: {when}",+ "lastWorkedNever": "Belum pernah melayani permintaan atau lolos pemeriksaan","noAutoCheckHint": "Penyedia ini tidak mengizinkan pemeriksaan kunci otomatis. Kunci menjadi sehat setelah melayani permintaan pertamanya.","noModelsYetHint": "Katalog Anda belum memiliki model dari penyedia ini, jadi belum ada yang bisa dilayani.","proxyEnvHintBefore": "Juga dapat dikonfigurasi melalui",diff --git a/client/src/i18n/locales/ig.json b/client/src/i18n/locales/ig.jsonindex 24e49af2..04a9862c 100644--- a/client/src/i18n/locales/ig.json+++ b/client/src/i18n/locales/ig.json@@ -542,6 +542,8 @@"providerActions": "Omume ndị na-eweta","routeViaProxy": "Ụzọ site na proxy","checkNow": "Lelee ugbu a",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Onye na-enye ọrụ a anaghị ekwe ka a lelee igodo na-akpaghị aka. Igodo ahụ ga-adị mma mgbe o jesịrị arịrịọ mbụ ya ozi.","noModelsYetHint": "Katalọgụ gị enweghị ụdị ọ bụla sitere n'aka onye na-enye ọrụ a ugbu a, ya mere ọ nweghị ihe ọ ga-eje ozi.","proxyEnvHintBefore": "Ọzọkwa configurable site na",diff --git a/client/src/i18n/locales/it.json b/client/src/i18n/locales/it.jsonindex e0908188..3b79fdc2 100644--- a/client/src/i18n/locales/it.json+++ b/client/src/i18n/locales/it.json@@ -542,6 +542,8 @@"providerActions": "Azioni fornitore","routeViaProxy": "Instrada tramite proxy","checkNow": "Controlla ora",+ "lastWorkedHint": "Ultimo funzionamento: {when}",+ "lastWorkedNever": "Non ha ancora servito richieste né superato un controllo","noAutoCheckHint": "Questo provider non consente controlli automatici delle chiavi. La chiave diventa sana dopo aver servito la sua prima richiesta.","noModelsYetHint": "Il tuo catalogo non ha ancora modelli di questo provider, quindi non ha nulla da servire.","proxyEnvHintBefore": "Configurabile anche tramite la variabile d'ambiente ",diff --git a/client/src/i18n/locales/ja.json b/client/src/i18n/locales/ja.jsonindex fa64880d..d54cbad2 100644--- a/client/src/i18n/locales/ja.json+++ b/client/src/i18n/locales/ja.json@@ -542,6 +542,8 @@"providerActions": "プロバイダーのアクション","routeViaProxy": "プロキシ経由のルート","checkNow": "今すぐチェック",+ "lastWorkedHint": "最終稼働: {when}",+ "lastWorkedNever": "リクエストの処理もチェックの合格もまだありません","noAutoCheckHint": "このプロバイダーはキーの自動チェックを許可していません。最初のリクエストを処理するとキーは正常になります。","noModelsYetHint": "カタログにはまだこのプロバイダーのモデルがないため、処理するものがありません。","proxyEnvHintBefore": "また、",diff --git a/client/src/i18n/locales/ka.json b/client/src/i18n/locales/ka.jsonindex e2ba5660..ee182003 100644--- a/client/src/i18n/locales/ka.json+++ b/client/src/i18n/locales/ka.json@@ -542,6 +542,8 @@"providerActions": "პროვაიდერის ქმედებები","routeViaProxy": "მარშრუტი პროქსის საშუალებით","checkNow": "შეამოწმეთ ახლა",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "ეს პროვაიდერი არ უშვებს გასაღების ავტომატურ შემოწმებას. გასაღები ჯანსაღი ხდება პირველი მოთხოვნის მომსახურების შემდეგ.","noModelsYetHint": "თქვენს კატალოგში ჯერ არ არის ამ პროვაიდერის მოდელები, ამიტომ მოსამსახურებელი არაფერია.","proxyEnvHintBefore": "ასევე კონფიგურირებადი მეშვეობით",diff --git a/client/src/i18n/locales/km.json b/client/src/i18n/locales/km.jsonindex 7f8d5896..66998398 100644--- a/client/src/i18n/locales/km.json+++ b/client/src/i18n/locales/km.json@@ -542,6 +542,8 @@"providerActions": "សកម្មភាពអ្នកផ្តល់សេវា","routeViaProxy": "បញ្ជូនតាមរយៈប្រូកស៊ី","checkNow": "ពិនិត្យឥឡូវនេះ",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "អ្នកផ្ដល់សេវានេះមិនអនុញ្ញាតការពិនិត្យសោដោយស្វ័យប្រវត្តិទេ។ សោនឹងល្អ បន្ទាប់ពីវាបម្រើសំណើដំបូងរបស់វា។","noModelsYetHint": "កាតាឡុករបស់អ្នកមិនទាន់មានម៉ូដែលពីអ្នកផ្ដល់សេវានេះនៅឡើយ ដូច្នេះមិនមានអ្វីត្រូវបម្រើទេ។","proxyEnvHintBefore": "អាចកំណត់រចនាសម្ព័ន្ធបានតាមរយៈ",diff --git a/client/src/i18n/locales/kn.json b/client/src/i18n/locales/kn.jsonindex daeb9234..e2fdda05 100644--- a/client/src/i18n/locales/kn.json+++ b/client/src/i18n/locales/kn.json@@ -542,6 +542,8 @@"providerActions": "ಪೂರೈಕೆದಾರರ ಕ್ರಮಗಳು","routeViaProxy": "ಪ್ರಾಕ್ಸಿ ಮೂಲಕ ಮಾರ್ಗ","checkNow": "ಈಗ ಪರಿಶೀಲಿಸಿ",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "ಈ ಪೂರೈಕೆದಾರರು ಸ್ವಯಂಚಾಲಿತ ಕೀ ಪರಿಶೀಲನೆಗೆ ಅನುಮತಿಸುವುದಿಲ್ಲ. ಮೊದಲ ವಿನಂತಿಯನ್ನು ಪೂರೈಸಿದ ನಂತರ ಕೀ ಆರೋಗ್ಯಕರವಾಗುತ್ತದೆ.","noModelsYetHint": "ನಿಮ್ಮ ಕ್ಯಾಟಲಾಗ್ನಲ್ಲಿ ಇನ್ನೂ ಈ ಪೂರೈಕೆದಾರರ ಯಾವುದೇ ಮಾದರಿಗಳಿಲ್ಲ, ಆದ್ದರಿಂದ ಪೂರೈಸಲು ಏನೂ ಇಲ್ಲ.","proxyEnvHintBefore": "ಮೂಲಕ ಕಾನ್ಫಿಗರ್ ಮಾಡಬಹುದು",diff --git a/client/src/i18n/locales/ko.json b/client/src/i18n/locales/ko.jsonindex d1ae6ea3..55d6f7c0 100644--- a/client/src/i18n/locales/ko.json+++ b/client/src/i18n/locales/ko.json@@ -542,6 +542,8 @@"providerActions": "공급자 작업","routeViaProxy": "프록시를 통한 라우팅","checkNow": "지금 확인하세요",+ "lastWorkedHint": "마지막 작동: {when}",+ "lastWorkedNever": "아직 요청을 처리하거나 점검을 통과하지 않았습니다","noAutoCheckHint": "이 공급자는 자동 키 확인을 허용하지 않습니다. 키는 첫 요청을 처리한 뒤 정상 상태가 됩니다.","noModelsYetHint": "카탈로그에 아직 이 공급자의 모델이 없어 처리할 요청이 없습니다.","proxyEnvHintBefore": "또한 다음을 통해 구성할 수 있습니다.",diff --git a/client/src/i18n/locales/lt.json b/client/src/i18n/locales/lt.jsonindex 8ec56721..1fa34373 100644--- a/client/src/i18n/locales/lt.json+++ b/client/src/i18n/locales/lt.json@@ -542,6 +542,8 @@"providerActions": "Tiekėjų veiksmai","routeViaProxy": "Maršrutas per tarpininką","checkNow": "Patikrinkite dabar",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Šis teikėjas neleidžia automatinių raktų patikrų. Raktas tampa veikiančiu, kai aptarnauja pirmąją užklausą.","noModelsYetHint": "Jūsų kataloge dar nėra šio teikėjo modelių, todėl nėra ką aptarnauti.","proxyEnvHintBefore": "Taip pat konfigūruojama per",diff --git a/client/src/i18n/locales/ml.json b/client/src/i18n/locales/ml.jsonindex eb139d92..6d0a5a16 100644--- a/client/src/i18n/locales/ml.json+++ b/client/src/i18n/locales/ml.json@@ -542,6 +542,8 @@"providerActions": "ദാതാവിൻ്റെ പ്രവർത്തനങ്ങൾ","routeViaProxy": "പ്രോക്സി വഴി റൂട്ട്","checkNow": "ഇപ്പോൾ പരിശോധിക്കുക",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "ഈ ദാതാവ് ഓട്ടോമേറ്റഡ് കീ പരിശോധന അനുവദിക്കുന്നില്ല. ആദ്യ അഭ്യർത്ഥന നിറവേറ്റിയ ശേഷം കീ ആരോഗ്യകരമാകും.","noModelsYetHint": "നിങ്ങളുടെ കാറ്റലോഗിൽ ഇതുവരെ ഈ ദാതാവിന്റെ മോഡലുകളൊന്നുമില്ല, അതിനാൽ നിറവേറ്റാൻ ഒന്നുമില്ല.","proxyEnvHintBefore": "വഴിയും ക്രമീകരിക്കാവുന്നതാണ്",diff --git a/client/src/i18n/locales/mr.json b/client/src/i18n/locales/mr.jsonindex 11bcc3e7..5c4d7c18 100644--- a/client/src/i18n/locales/mr.json+++ b/client/src/i18n/locales/mr.json@@ -542,6 +542,8 @@"providerActions": "प्रदाता क्रिया","routeViaProxy": "प्रॉक्सी द्वारे मार्ग","checkNow": "आता तपासा",+ "lastWorkedHint": "शेवटचे कार्यरत: {when}",+ "lastWorkedNever": "अजून कोणतीही विनंती सेवाली नाही तपासणी उत्तीर्ण झाली नाही","noAutoCheckHint": "हा प्रदाता स्वयंचलित की तपासणीला परवानगी देत नाही. पहिली विनंती पूर्ण केल्यानंतर की निरोगी होते.","noModelsYetHint": "तुमच्या कॅटलॉगमध्ये अद्याप या प्रदात्याचे कोणतेही मॉडेल नाही, त्यामुळे पूर्ण करण्यासारखे काही नाही.","proxyEnvHintBefore": "द्वारे देखील कॉन्फिगर करण्यायोग्य",diff --git a/client/src/i18n/locales/ms.json b/client/src/i18n/locales/ms.jsonindex 93200aaa..d988940c 100644--- a/client/src/i18n/locales/ms.json+++ b/client/src/i18n/locales/ms.json@@ -542,6 +542,8 @@"providerActions": "Tindakan penyedia","routeViaProxy": "Laluan melalui proksi","checkNow": "Semak sekarang",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Penyedia ini tidak membenarkan semakan kunci automatik. Kunci menjadi sihat selepas ia melayan permintaan pertamanya.","noModelsYetHint": "Katalog anda belum mempunyai model daripada penyedia ini, jadi tiada apa untuk dilayan.","proxyEnvHintBefore": "Juga boleh dikonfigurasikan melalui",diff --git a/client/src/i18n/locales/my.json b/client/src/i18n/locales/my.jsonindex 030c9f29..ff4a46ec 100644--- a/client/src/i18n/locales/my.json+++ b/client/src/i18n/locales/my.json@@ -542,6 +542,8 @@"providerActions": "ပံ့ပိုးသူ လုပ်ဆောင်ချက်များ","routeViaProxy": "Proxy ဖြင့် လမ်းကြောင်းပြောင်းခြင်း","checkNow": "ယခုစစ်ဆေးပါ",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "ဤဝန်ဆောင်မှုပေးသူသည် key ကို အလိုအလျောက် စစ်ဆေးခြင်းကို ခွင့်မပြုပါ။ ပထမဆုံး တောင်းဆိုမှုကို ဆောင်ရွက်ပြီးနောက် key သည် ကောင်းမွန်သွားပါမည်။","noModelsYetHint": "သင့်ကတ်တလောက်တွင် ဤဝန်ဆောင်မှုပေးသူ၏ မော်ဒယ်များ မရှိသေးသဖြင့် ဆောင်ရွက်စရာ မရှိပါ။","proxyEnvHintBefore": "ထို့အပြင် ပြင်ဆင်နိုင်သော",diff --git a/client/src/i18n/locales/ne.json b/client/src/i18n/locales/ne.jsonindex 87badf31..e8ba4072 100644--- a/client/src/i18n/locales/ne.json+++ b/client/src/i18n/locales/ne.json@@ -542,6 +542,8 @@"providerActions": "प्रदायक कार्यहरू","routeViaProxy": "प्रोक्सी हुँदै मार्ग","checkNow": "अहिले जाँच गर्नुहोस्",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "यो प्रदायकले स्वचालित कुञ्जी जाँचलाई अनुमति दिँदैन। पहिलो अनुरोध पूरा गरेपछि कुञ्जी स्वस्थ हुन्छ।","noModelsYetHint": "तपाईंको क्याटलगमा अझै यो प्रदायकको कुनै मोडेल छैन, त्यसैले पूरा गर्ने केही छैन।","proxyEnvHintBefore": "मार्फत पनि कन्फिगर गर्न सकिने",diff --git a/client/src/i18n/locales/nl.json b/client/src/i18n/locales/nl.jsonindex 0d0a38e8..16458e81 100644--- a/client/src/i18n/locales/nl.json+++ b/client/src/i18n/locales/nl.json@@ -542,6 +542,8 @@"providerActions": "Acties van aanbieders","routeViaProxy": "Route via proxy","checkNow": "Controleer nu",+ "lastWorkedHint": "Laatst gewerkt: {when}",+ "lastWorkedNever": "Heeft nog geen verzoek dienden lopen noch een controle doorstaan","noAutoCheckHint": "Deze provider staat geen automatische sleutelcontroles toe. De sleutel wordt gezond nadat hij zijn eerste verzoek heeft afgehandeld.","noModelsYetHint": "Je catalogus heeft nog geen modellen van deze provider, dus er valt niets af te handelen.","proxyEnvHintBefore": "Ook configureerbaar via de",diff --git a/client/src/i18n/locales/no.json b/client/src/i18n/locales/no.jsonindex 96641b12..314bf722 100644--- a/client/src/i18n/locales/no.json+++ b/client/src/i18n/locales/no.json@@ -542,6 +542,8 @@"providerActions": "Leverandørhandlinger","routeViaProxy": "Rute via proxy","checkNow": "Sjekk nå",+ "lastWorkedHint": "Sist funksjonsdyktig: {when}",+ "lastWorkedNever": "Har ennå ikke betjent en forespørsel eller bestått en sjekk","noAutoCheckHint": "Denne leverandøren tillater ikke automatiske nøkkelsjekker. Nøkkelen blir frisk etter at den har betjent sin første forespørsel.","noModelsYetHint": "Katalogen din har ennå ingen modeller fra denne leverandøren, så det er ingenting for den å betjene.","proxyEnvHintBefore": "Også konfigurerbar via",diff --git a/client/src/i18n/locales/or.json b/client/src/i18n/locales/or.jsonindex defa4988..2b1c227a 100644--- a/client/src/i18n/locales/or.json+++ b/client/src/i18n/locales/or.json@@ -542,6 +542,8 @@"providerActions": "ପ୍ରଦାନକାରୀ କାର୍ଯ୍ୟ","routeViaProxy": "ପ୍ରକ୍ସି ମାଧ୍ୟମରେ ମାର୍ଗ","checkNow": "ବର୍ତ୍ତମାନ ଯାଞ୍ଚ କରନ୍ତୁ",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "ଏହି ପ୍ରଦାନକାରୀ ସ୍ୱୟଂଚାଳିତ କି ଯାଞ୍ଚକୁ ଅନୁମତି ଦିଏ ନାହିଁ। ପ୍ରଥମ ଅନୁରୋଧ ପୂରଣ କରିବା ପରେ କି ସୁସ୍ଥ ହୁଏ।","noModelsYetHint": "ଆପଣଙ୍କ କାଟାଲଗରେ ଏପର୍ଯ୍ୟନ୍ତ ଏହି ପ୍ରଦାନକାରୀଙ୍କ କୌଣସି ମଡେଲ ନାହିଁ, ତେଣୁ ପୂରଣ କରିବାକୁ କିଛି ନାହିଁ।","proxyEnvHintBefore": "ମାଧ୍ୟମରେ ମଧ୍ୟ କନଫିଗର୍ କରାଯାଇପାରେ",diff --git a/client/src/i18n/locales/pa.json b/client/src/i18n/locales/pa.jsonindex 2d3bae0d..a134c99b 100644--- a/client/src/i18n/locales/pa.json+++ b/client/src/i18n/locales/pa.json@@ -542,6 +542,8 @@"providerActions": "ਪ੍ਰਦਾਤਾ ਕਾਰਵਾਈਆਂ","routeViaProxy": "ਪ੍ਰੌਕਸੀ ਰਾਹੀਂ ਰੂਟ","checkNow": "ਹੁਣੇ ਜਾਂਚ ਕਰੋ",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "ਇਹ ਪ੍ਰਦਾਤਾ ਸਵੈਚਲਿਤ ਕੁੰਜੀ ਜਾਂਚ ਦੀ ਇਜਾਜ਼ਤ ਨਹੀਂ ਦਿੰਦਾ। ਪਹਿਲੀ ਬੇਨਤੀ ਪੂਰੀ ਕਰਨ ਤੋਂ ਬਾਅਦ ਕੁੰਜੀ ਸਿਹਤਮੰਦ ਹੋ ਜਾਂਦੀ ਹੈ।","noModelsYetHint": "ਤੁਹਾਡੇ ਕੈਟਾਲਾਗ ਵਿੱਚ ਅਜੇ ਇਸ ਪ੍ਰਦਾਤਾ ਦਾ ਕੋਈ ਮਾਡਲ ਨਹੀਂ ਹੈ, ਇਸ ਲਈ ਪੂਰਾ ਕਰਨ ਲਈ ਕੁਝ ਨਹੀਂ ਹੈ।","proxyEnvHintBefore": "ਦੁਆਰਾ ਵੀ ਸੰਰਚਨਾਯੋਗ",diff --git a/client/src/i18n/locales/pl.json b/client/src/i18n/locales/pl.jsonindex edd7fa3f..bd668489 100644--- a/client/src/i18n/locales/pl.json+++ b/client/src/i18n/locales/pl.json@@ -542,6 +542,8 @@"providerActions": "Działania dostawcy","routeViaProxy": "Trasa przez proxy","checkNow": "Sprawdź teraz",+ "lastWorkedHint": "Ostatnie działanie: {when}",+ "lastWorkedNever": "Nie obsłużył jeszcze żadnego żądania ani nie przeszedł sprawdzenia","noAutoCheckHint": "Ten dostawca nie pozwala na automatyczne sprawdzanie kluczy. Klucz staje się sprawny po obsłużeniu pierwszego żądania.","noModelsYetHint": "Twój katalog nie ma jeszcze modeli tego dostawcy, więc nie ma czego obsługiwać.","proxyEnvHintBefore": "Możliwość konfiguracji również poprzez",diff --git a/client/src/i18n/locales/pt-BR.json b/client/src/i18n/locales/pt-BR.jsonindex 5a14236a..5ce268dd 100644--- a/client/src/i18n/locales/pt-BR.json+++ b/client/src/i18n/locales/pt-BR.json@@ -542,6 +542,8 @@"providerActions": "Ações do provedor","routeViaProxy": "Rotear pelo proxy","checkNow": "Verificar agora",+ "lastWorkedHint": "Último funcionamento: {when}",+ "lastWorkedNever": "Ainda não atendeu nenhuma requisição nem passou em uma verificação","noAutoCheckHint": "Este provedor não permite verificações automáticas de chave. A chave fica saudável depois de atender a primeira solicitação.","noModelsYetHint": "Seu catálogo ainda não tem modelos deste provedor, então não há nada para ela atender.","proxyEnvHintBefore": "Também configurável pela variável de ambiente ",diff --git a/client/src/i18n/locales/pt-PT.json b/client/src/i18n/locales/pt-PT.jsonindex 2d3317f0..8b7096df 100644--- a/client/src/i18n/locales/pt-PT.json+++ b/client/src/i18n/locales/pt-PT.json@@ -542,6 +542,8 @@"providerActions": "Ações do fornecedor","routeViaProxy": "Rota via procuração","checkNow": "Confirme agora",+ "lastWorkedHint": "Último funcionamento: {when}",+ "lastWorkedNever": "Ainda não serviu nenhum pedido nem passou numa verificação","noAutoCheckHint": "Este fornecedor não permite verificações automáticas de chaves. A chave fica saudável depois de servir o primeiro pedido.","noModelsYetHint": "O seu catálogo ainda não tem modelos deste fornecedor, por isso não há nada para servir.","proxyEnvHintBefore": "Também configurável através do",diff --git a/client/src/i18n/locales/ro.json b/client/src/i18n/locales/ro.jsonindex 5125e6e3..43624cf5 100644--- a/client/src/i18n/locales/ro.json+++ b/client/src/i18n/locales/ro.json@@ -542,6 +542,8 @@"providerActions": "Acțiuni ale furnizorului","routeViaProxy": "Traseu prin procură","checkNow": "Verifică acum",+ "lastWorkedHint": "Ultima funcționare: {when}",+ "lastWorkedNever": "Nu a servit încă nicio cerere și nu a trecut nicio verificare","noAutoCheckHint": "Acest furnizor nu permite verificări automate ale cheilor. Cheia devine funcțională după ce servește prima cerere.","noModelsYetHint": "Catalogul tău nu are încă modele de la acest furnizor, așa că nu are ce servi.","proxyEnvHintBefore": "De asemenea, configurabil prin",diff --git a/client/src/i18n/locales/ru.json b/client/src/i18n/locales/ru.jsonindex f89c2945..de994ec4 100644--- a/client/src/i18n/locales/ru.json+++ b/client/src/i18n/locales/ru.json@@ -542,6 +542,8 @@"providerActions": "Действия провайдера","routeViaProxy": "Маршрут через прокси","checkNow": "Проверьте сейчас",+ "lastWorkedHint": "Последняя работа: {when}",+ "lastWorkedNever": "Ещё не обработал ни одного запроса и не прошёл проверку","noAutoCheckHint": "Этот провайдер не разрешает автоматическую проверку ключей. Ключ станет рабочим после того, как обслужит первый запрос.","noModelsYetHint": "В вашем каталоге пока нет моделей этого провайдера, поэтому обслуживать нечего.","proxyEnvHintBefore": "Также настраивается через",diff --git a/client/src/i18n/locales/si.json b/client/src/i18n/locales/si.jsonindex 2180b939..977c5a33 100644--- a/client/src/i18n/locales/si.json+++ b/client/src/i18n/locales/si.json@@ -542,6 +542,8 @@"providerActions": "සපයන්නාගේ ක්රියාවන්","routeViaProxy": "ප්රොක්සි හරහා ගමන් කරන්න","checkNow": "දැන් පරීක්ෂා කරන්න",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "මෙම සපයන්නා ස්වයංක්රීය යතුරු පරීක්ෂා කිරීමට ඉඩ නොදේ. පළමු ඉල්ලීම සපුරාලීමෙන් පසු යතුර නිරෝගී වේ.","noModelsYetHint": "ඔබේ නාමාවලියේ තවමත් මෙම සපයන්නාගේ ආකෘති නොමැති බැවින් සපුරාලීමට කිසිවක් නැත.","proxyEnvHintBefore": "හරහා ද වින්යාසගත කළ හැක",diff --git a/client/src/i18n/locales/sk.json b/client/src/i18n/locales/sk.jsonindex f85b3c36..f2a202a7 100644--- a/client/src/i18n/locales/sk.json+++ b/client/src/i18n/locales/sk.json@@ -542,6 +542,8 @@"providerActions": "Akcie poskytovateľa","routeViaProxy": "Trasa cez proxy","checkNow": "Skontrolujte to teraz",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Tento poskytovateľ nepovoľuje automatické kontroly kľúčov. Kľúč bude v poriadku, keď obslúži svoju prvú požiadavku.","noModelsYetHint": "Váš katalóg zatiaľ neobsahuje žiadne modely tohto poskytovateľa, takže nemá čo obsluhovať.","proxyEnvHintBefore": "Tiež konfigurovateľné cez",diff --git a/client/src/i18n/locales/sr.json b/client/src/i18n/locales/sr.jsonindex 577b882e..54e4669b 100644--- a/client/src/i18n/locales/sr.json+++ b/client/src/i18n/locales/sr.json@@ -542,6 +542,8 @@"providerActions": "Акције провајдера","routeViaProxy": "Рута преко проксија","checkNow": "Проверите сада",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Овај добављач не дозвољава аутоматске провере кључева. Кључ постаје исправан када услужи свој први захтев.","noModelsYetHint": "Ваш каталог још нема моделе овог добављача, па нема шта да услужи.","proxyEnvHintBefore": "Такође се може конфигурисати преко",diff --git a/client/src/i18n/locales/sv.json b/client/src/i18n/locales/sv.jsonindex 675d6ad0..daa04bae 100644--- a/client/src/i18n/locales/sv.json+++ b/client/src/i18n/locales/sv.json@@ -542,6 +542,8 @@"providerActions": "Leverantörsåtgärder","routeViaProxy": "Rutt via proxy","checkNow": "Kolla nu",+ "lastWorkedHint": "Senast fungerande: {when}",+ "lastWorkedNever": "Har ännu inte betjänat någon förfrågan eller klarat en kontroll","noAutoCheckHint": "Den här leverantören tillåter inte automatiska nyckelkontroller. Nyckeln blir frisk när den har betjänat sin första förfrågan.","noModelsYetHint": "Din katalog har ännu inga modeller från den här leverantören, så det finns inget för den att betjäna.","proxyEnvHintBefore": "Kan också konfigureras via",diff --git a/client/src/i18n/locales/sw.json b/client/src/i18n/locales/sw.jsonindex 83cc8dce..2e892e52 100644--- a/client/src/i18n/locales/sw.json+++ b/client/src/i18n/locales/sw.json@@ -542,6 +542,8 @@"providerActions": "Vitendo vya mtoaji","routeViaProxy": "Njia kupitia seva mbadala","checkNow": "Angalia sasa",+ "lastWorkedHint": "Ilifanya kazi mara ya mwisho: {when}",+ "lastWorkedNever": "Haijatumika kwa ombi wala kupitia ukaguzi bado","noAutoCheckHint": "Mtoa huduma huyu haruhusu ukaguzi wa funguo wa kiotomatiki. Ufunguo unakuwa mzima baada ya kuhudumia ombi lake la kwanza.","noModelsYetHint": "Katalogi yako bado haina modeli kutoka kwa mtoa huduma huyu, kwa hivyo hakuna cha kuhudumia.","proxyEnvHintBefore": "Pia inaweza kusanidiwa kupitia",diff --git a/client/src/i18n/locales/ta.json b/client/src/i18n/locales/ta.jsonindex 35400471..efd805ba 100644--- a/client/src/i18n/locales/ta.json+++ b/client/src/i18n/locales/ta.json@@ -542,6 +542,8 @@"providerActions": "வழங்குநர் நடவடிக்கைகள்","routeViaProxy": "ப்ராக்ஸி வழியாக வழி","checkNow": "இப்போது சரிபார்க்கவும்",+ "lastWorkedHint": "கடைசியாக வேலை செய்தது: {when}",+ "lastWorkedNever": "இதுவரை கோரிக்கைகளை பணியாற்றவில்லை; சோதனையும் தேறவில்லை","noAutoCheckHint": "இந்த வழங்குநர் தானியங்கி விசை சரிபார்ப்பை அனுமதிப்பதில்லை. முதல் கோரிக்கையை நிறைவேற்றிய பிறகு விசை ஆரோக்கியமாகும்.","noModelsYetHint": "உங்கள் பட்டியலில் இன்னும் இந்த வழங்குநரின் மாதிரிகள் இல்லை, எனவே நிறைவேற்ற எதுவும் இல்லை.","proxyEnvHintBefore": "வழியாகவும் கட்டமைக்க முடியும்",diff --git a/client/src/i18n/locales/te.json b/client/src/i18n/locales/te.jsonindex b423868e..159af18d 100644--- a/client/src/i18n/locales/te.json+++ b/client/src/i18n/locales/te.json@@ -542,6 +542,8 @@"providerActions": "ప్రొవైడర్ చర్యలు","routeViaProxy": "ప్రాక్సీ ద్వారా మార్గం","checkNow": "ఇప్పుడే తనిఖీ చేయండి",+ "lastWorkedHint": "చివరిగా పనిచేసింది: {when}",+ "lastWorkedNever": "ఇంకా ఏ అభ్యర్థననూ అందించలేదు, పరిశీలన ఉత్తీర్ణులు కాలేదు","noAutoCheckHint": "ఈ ప్రొవైడర్ ఆటోమేటెడ్ కీ తనిఖీలను అనుమతించదు. మొదటి అభ్యర్థనను అందించిన తర్వాత కీ ఆరోగ్యంగా మారుతుంది.","noModelsYetHint": "మీ కేటలాగ్లో ఇంకా ఈ ప్రొవైడర్ మోడల్స్ లేవు, కాబట్టి అందించడానికి ఏమీ లేదు.","proxyEnvHintBefore": "ద్వారా కూడా కాన్ఫిగర్ చేయవచ్చు",diff --git a/client/src/i18n/locales/th.json b/client/src/i18n/locales/th.jsonindex 1f74534a..33b71fa3 100644--- a/client/src/i18n/locales/th.json+++ b/client/src/i18n/locales/th.json@@ -542,6 +542,8 @@"providerActions": "การกระทำของผู้ให้บริการ","routeViaProxy": "เส้นทางผ่านพร็อกซี","checkNow": "ตรวจสอบตอนนี้",+ "lastWorkedHint": "ทำงานล่าสุด: {when}",+ "lastWorkedNever": "ยังไม่เคยรับคำขอหรือผ่านการตรวจสอบ","noAutoCheckHint": "ผู้ให้บริการนี้ไม่อนุญาตให้ตรวจสอบคีย์อัตโนมัติ คีย์จะใช้งานได้ปกติหลังจากให้บริการคำขอแรก","noModelsYetHint": "แคตตาล็อกของคุณยังไม่มีโมเดลจากผู้ให้บริการนี้ จึงยังไม่มีอะไรให้บริการ","proxyEnvHintBefore": "นอกจากนี้ยังสามารถกำหนดค่าผ่านทาง",diff --git a/client/src/i18n/locales/tl.json b/client/src/i18n/locales/tl.jsonindex 3a3f00b8..4325d9b4 100644--- a/client/src/i18n/locales/tl.json+++ b/client/src/i18n/locales/tl.json@@ -542,6 +542,8 @@"providerActions": "Mga aksyon ng provider","routeViaProxy": "Ruta sa pamamagitan ng proxy","checkNow": "Suriin ngayon",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Hindi pinapayagan ng provider na ito ang awtomatikong pagsusuri ng key. Magiging healthy ang key pagkatapos nitong pagsilbihan ang una nitong request.","noModelsYetHint": "Wala pang model mula sa provider na ito ang iyong catalog, kaya wala pa itong mapagsisilbihan.","proxyEnvHintBefore": "Maaari ring i-configure gamit ang",diff --git a/client/src/i18n/locales/tr.json b/client/src/i18n/locales/tr.jsonindex 6cd7ee66..9efb47e8 100644--- a/client/src/i18n/locales/tr.json+++ b/client/src/i18n/locales/tr.json@@ -542,6 +542,8 @@"providerActions": "Sağlayıcı eylemleri","routeViaProxy": "Proxy aracılığıyla yönlendirme","checkNow": "Şimdi kontrol et",+ "lastWorkedHint": "Son çalışma: {when}",+ "lastWorkedNever": "Henüz bir istek karşılamadı ve kontrolden geçmedi","noAutoCheckHint": "Bu sağlayıcı otomatik anahtar kontrollerine izin vermiyor. Anahtar ilk isteğini karşıladıktan sonra sağlıklı olur.","noModelsYetHint": "Kataloğunuzda henüz bu sağlayıcıdan model yok, bu yüzden karşılayacağı bir istek yok.","proxyEnvHintBefore": "Ayrıca ",diff --git a/client/src/i18n/locales/uk.json b/client/src/i18n/locales/uk.jsonindex ad6ac93e..a612744f 100644--- a/client/src/i18n/locales/uk.json+++ b/client/src/i18n/locales/uk.json@@ -542,6 +542,8 @@"providerActions": "Дії провайдера","routeViaProxy": "Маршрут через проксі","checkNow": "Перевір зараз",+ "lastWorkedHint": "Остання робота: {when}",+ "lastWorkedNever": "Ще не обслуговив жодного запиту і не проходив перевірку","noAutoCheckHint": "Цей провайдер не дозволяє автоматичну перевірку ключів. Ключ стане робочим після того, як обслужить свій перший запит.","noModelsYetHint": "У вашому каталозі ще немає моделей цього провайдера, тож обслуговувати нічого.","proxyEnvHintBefore": "Також можна налаштувати за допомогою",diff --git a/client/src/i18n/locales/ur.json b/client/src/i18n/locales/ur.jsonindex 49922223..21c5def6 100644--- a/client/src/i18n/locales/ur.json+++ b/client/src/i18n/locales/ur.json@@ -542,6 +542,8 @@"providerActions": "فراہم کنندہ کے اعمال","routeViaProxy": "پراکسی کے ذریعے راستہ","checkNow": "ابھی چیک کریں۔",+ "lastWorkedHint": "آخرین کامیاب: {when}",+ "lastWorkedNever": "ابھی تک کوئی درخواست پیش نہیں کی اور نہ ہی جانچ پاس کی","noAutoCheckHint": "یہ فراہم کنندہ خودکار کلید جانچ کی اجازت نہیں دیتا۔ پہلی درخواست پوری کرنے کے بعد کلید درست ہو جاتی ہے۔","noModelsYetHint": "آپ کے کیٹلاگ میں ابھی اس فراہم کنندہ کا کوئی ماڈل نہیں، اس لیے پورا کرنے کو کچھ نہیں۔","proxyEnvHintBefore": "کے ذریعے بھی قابل ترتیب",diff --git a/client/src/i18n/locales/uz.json b/client/src/i18n/locales/uz.jsonindex 940bb9c4..66d13fc3 100644--- a/client/src/i18n/locales/uz.json+++ b/client/src/i18n/locales/uz.json@@ -542,6 +542,8 @@"providerActions": "Provayderning harakatlari","routeViaProxy": "Proksi orqali marshrut","checkNow": "Hozir tekshiring",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Bu provayder kalitlarni avtomatik tekshirishga ruxsat bermaydi. Kalit birinchi so‘roviga xizmat ko‘rsatgach, sog‘lom holatga o‘tadi.","noModelsYetHint": "Katalogingizda hali bu provayderning modellari yo‘q, shuning uchun xizmat ko‘rsatadigan narsa yo‘q.","proxyEnvHintBefore": "orqali ham sozlanishi mumkin",diff --git a/client/src/i18n/locales/vi.json b/client/src/i18n/locales/vi.jsonindex 378fb91d..2d12e7db 100644--- a/client/src/i18n/locales/vi.json+++ b/client/src/i18n/locales/vi.json@@ -542,6 +542,8 @@"providerActions": "Hành động của nhà cung cấp","routeViaProxy": "Định tuyến qua proxy","checkNow": "Kiểm tra ngay",+ "lastWorkedHint": "Lần hoạt động gần nhất: {when}",+ "lastWorkedNever": "Chưa phục vụ yêu cầu nào và chưa qua lần kiểm tra nào","noAutoCheckHint": "Nhà cung cấp này không cho phép kiểm tra khóa tự động. Khóa sẽ chuyển sang trạng thái tốt sau khi phục vụ yêu cầu đầu tiên.","noModelsYetHint": "Danh mục của bạn chưa có mô hình nào từ nhà cung cấp này, nên chưa có gì để phục vụ.","proxyEnvHintBefore": "Cũng có thể cấu hình thông qua",diff --git a/client/src/i18n/locales/yo.json b/client/src/i18n/locales/yo.jsonindex 49853e2e..02447b58 100644--- a/client/src/i18n/locales/yo.json+++ b/client/src/i18n/locales/yo.json@@ -542,6 +542,8 @@"providerActions": "Awọn iṣẹ olupese","routeViaProxy": "Ipa ọna nipasẹ aṣoju","checkNow": "Ṣayẹwo bayi",+ "lastWorkedHint": "Last worked: {when}",+ "lastWorkedNever": "Has not served a request or passed a check yet","noAutoCheckHint": "Olùpèsè yìí kò gba àyẹ̀wò kọ́kọ́rọ́ aládàáṣe láàyè. Kọ́kọ́rọ́ náà yóò dára lẹ́yìn tí ó bá sin ìbéèrè àkọ́kọ́ rẹ̀.","noModelsYetHint": "Àkójọ rẹ kò tíì ní àwòṣe kankan láti ọ̀dọ̀ olùpèsè yìí, nítorí náà kò sí nǹkan tí yóò sìn.","proxyEnvHintBefore": "Tun Configurable nipasẹ awọn",diff --git a/client/src/i18n/locales/zh-CN.json b/client/src/i18n/locales/zh-CN.jsonindex d1a561b9..88567fb5 100644--- a/client/src/i18n/locales/zh-CN.json+++ b/client/src/i18n/locales/zh-CN.json@@ -556,6 +556,8 @@"providerActions": "提供方操作","routeViaProxy": "经由代理服务器转发","checkNow": "立即检查",+ "lastWorkedHint": "上次可用:{when}",+ "lastWorkedNever": "尚未处理请求,也尚未通过检查","noAutoCheckHint": "该提供商不允许自动检查密钥。密钥在处理完第一个请求后会变为正常。","noModelsYetHint": "你的目录中还没有该提供商的模型,因此暂时没有可处理的请求。","proxyEnvHintBefore": "也可通过 ",diff --git a/client/src/i18n/locales/zh-TW.json b/client/src/i18n/locales/zh-TW.jsonindex 8af4fecc..3dc47a70 100644--- a/client/src/i18n/locales/zh-TW.json+++ b/client/src/i18n/locales/zh-TW.json@@ -546,6 +546,8 @@"providerActions": "提供者操作","routeViaProxy": "經由代理伺服器轉發","checkNow": "立即檢查",+ "lastWorkedHint": "上次可用:{when}",+ "lastWorkedNever": "尚未處理請求,也尚未通過檢查","noAutoCheckHint": "此供應商不允許自動檢查金鑰。金鑰在處理完第一個請求後會變為正常。","noModelsYetHint": "你的目錄中還沒有此供應商的模型,因此暫時沒有可處理的請求。","proxyEnvHintBefore": "也可透過 ",diff --git a/server/src/__tests__/db/migrate/roundtrip.test.ts b/server/src/__tests__/db/migrate/roundtrip.test.tsindex 8ae6b753..360fba4f 100644--- a/server/src/__tests__/db/migrate/roundtrip.test.ts+++ b/server/src/__tests__/db/migrate/roundtrip.test.ts@@ -49,6 +49,7 @@ const LLMTR_REENABLE_KEYS_FILENAME = '20261017_000001_llmtr_reenable_keys.ts';const REMOVE_GITHUB_PROVIDER_FILENAME = '20261017_000002_remove_github_provider.ts';const REQUEST_FAILURE_ATTRIBUTION_FILENAME = '20261017_233153_request_failure_attribution.ts';const REMOVE_AURAY_PROVIDER_FILENAME = '20261019_000001_remove_auray_provider.ts';+const KEY_LAST_HEALTHY_AT_FILENAME = '20261020_000001_key_last_healthy_at.ts';interface SchemaRow {type: string;@@ -144,6 +145,7 @@ describe('migration round trip', () => {REMOVE_GITHUB_PROVIDER_FILENAME,REQUEST_FAILURE_ATTRIBUTION_FILENAME,REMOVE_AURAY_PROVIDER_FILENAME,+ KEY_LAST_HEALTHY_AT_FILENAME,]);} finally {db.close();diff --git a/server/src/__tests__/services/health-last-healthy.test.ts b/server/src/__tests__/services/health-last-healthy.test.tsnew file mode 100644index 00000000..113ce659--- /dev/null+++ b/server/src/__tests__/services/health-last-healthy.test.ts@@ -0,0 +1,121 @@+import { describe, it, expect, beforeAll, beforeEach, vi } from 'vitest';++const validateKey = vi.fn();+vi.mock('../../providers/index.js', async (importOriginal) => {+ const actual = await importOriginal() as any;+ return {+ ...actual,+ resolveProvider: () => ({ name: 'fake', validateKey }),+ };+});++const { initDb, getDb } = await import('../../db/index.js');+const { encrypt } = await import('../../lib/crypto.js');+const {+ checkKeyHealth,+ markKeyHealthyFromRequest,+ clearLastHealthyStampState,+} = await import('../../services/health.js');++/**+ * #1493: a key can sit at status='healthy' with a fresh last_checked_at while+ * never actually working — the transport-error path refreshes last_checked_at+ * but proves nothing. last_healthy_at is the success-only timestamp: written on+ * a VALID probe verdict and on a served live request, never on a transport+ * error or an invalid verdict.+ */+describe('last_healthy_at (#1493)', () => {+ let nextId = 8200;++ beforeAll(() => {+ process.env.ENCRYPTION_KEY = '0'.repeat(64);+ initDb(':memory:');+ });++ beforeEach(() => {+ validateKey.mockReset();+ clearLastHealthyStampState();+ vi.spyOn(console, 'error').mockImplementation(() => {});+ vi.spyOn(console, 'warn').mockImplementation(() => {});+ vi.spyOn(console, 'log').mockImplementation(() => {});+ });++ function seedKey(status: string): number {+ const id = ++nextId;+ const enc = encrypt(`last-healthy-${id}`);+ getDb().prepare(`+ INSERT INTO api_keys (id, platform, label, encrypted_key, iv, auth_tag, enabled, status)+ VALUES (?, 'mistral', ?, ?, ?, ?, 1, ?)+ `).run(id, `lh-${id}`, enc.encrypted, enc.iv, enc.authTag, status);+ return id;+ }++ function row(id: number): { last_healthy_at: string | null; last_checked_at: string | null; status: string } {+ return getDb().prepare('SELECT last_healthy_at, last_checked_at, status FROM api_keys WHERE id = ?')+ .get(id) as any;+ }++ it('a valid probe stamps last_healthy_at', async () => {+ const id = seedKey('unknown');+ validateKey.mockResolvedValue(true);++ expect(await checkKeyHealth(id)).toBe('healthy');+ expect(row(id).last_healthy_at).not.toBeNull();+ });++ it('an invalid verdict stamps last_checked_at but NOT last_healthy_at', async () => {+ const id = seedKey('healthy');+ validateKey.mockResolvedValue(false);++ expect(await checkKeyHealth(id)).toBe('invalid');+ expect(row(id).last_checked_at).not.toBeNull();+ expect(row(id).last_healthy_at).toBeNull();+ });++ it('a transport error refreshes last_checked_at but NOT last_healthy_at', async () => {+ const id = seedKey('healthy');+ validateKey.mockRejectedValue(new Error('getaddrinfo ENOTFOUND api.mistral.ai'));++ expect(await checkKeyHealth(id)).toBe('healthy');+ expect(row(id).last_checked_at).not.toBeNull();+ // This is exactly the #1493 gap: checked recently, never proven to work.+ expect(row(id).last_healthy_at).toBeNull();+ });++ it('a served request stamps last_healthy_at even on an already-healthy key', async () => {+ // The probe path never touched this key's last_healthy_at (transport-error+ // streak), and its status is healthy — the stamp must fire regardless of+ // current status, or the #1459 providers (no probes at all) never get one.+ const id = seedKey('healthy');+ expect(row(id).last_healthy_at).toBeNull();++ markKeyHealthyFromRequest(id);++ expect(row(id).last_healthy_at).not.toBeNull();+ expect(row(id).status).toBe('healthy');+ });++ it('the traffic stamp is throttled in memory (no per-request DB write)', async () => {+ const id = seedKey('error');++ // First call stamps; a second immediate call must skip the write. Prove it+ // by nulling the column in between: only a real second write would refill it.+ markKeyHealthyFromRequest(id);+ expect(row(id).last_healthy_at).not.toBeNull();+ getDb().prepare('UPDATE api_keys SET last_healthy_at = NULL WHERE id = ?').run(id);++ markKeyHealthyFromRequest(id);+ expect(row(id).last_healthy_at).toBeNull();++ // After clearing the throttle state, the next call stamps again.+ clearLastHealthyStampState();+ markKeyHealthyFromRequest(id);+ expect(row(id).last_healthy_at).not.toBeNull();+ });++ it('markKeyHealthyFromRequest still promotes error/unknown keys', () => {+ const id = seedKey('error');+ markKeyHealthyFromRequest(id);+ expect(row(id).status).toBe('healthy');+ });+});diff --git a/server/src/db/migrate/defaults.ts b/server/src/db/migrate/defaults.tsindex a41e5670..b875446d 100644--- a/server/src/db/migrate/defaults.ts+++ b/server/src/db/migrate/defaults.ts@@ -44,6 +44,7 @@ import * as llmtrReenableKeys from '../migrations/20261017_000001_llmtr_reenableimport * as removeGithubProvider from '../migrations/20261017_000002_remove_github_provider.js';import * as requestFailureAttribution from '../migrations/20261017_233153_request_failure_attribution.js';import * as removeAurayProvider from '../migrations/20261019_000001_remove_auray_provider.js';+import * as keyLastHealthyAt from '../migrations/20261020_000001_key_last_healthy_at.js';export interface MigrationModule {up(db: Db): void;@@ -100,6 +101,7 @@ export const LLMTR_REENABLE_KEYS_FILENAME = '20261017_000001_llmtr_reenable_keysexport const REMOVE_GITHUB_PROVIDER_FILENAME = '20261017_000002_remove_github_provider.ts';export const REQUEST_FAILURE_ATTRIBUTION_FILENAME = '20261017_233153_request_failure_attribution.ts';export const REMOVE_AURAY_PROVIDER_FILENAME = '20261019_000001_remove_auray_provider.ts';+export const KEY_LAST_HEALTHY_AT_FILENAME = '20261020_000001_key_last_healthy_at.ts';export const DEFAULT_MIGRATIONS: readonly DefaultMigration[] = [{ filename: LEGACY_BASELINE_FILENAME, module: legacyBaseline },@@ -147,4 +149,5 @@ export const DEFAULT_MIGRATIONS: readonly DefaultMigration[] = [{ filename: REMOVE_GITHUB_PROVIDER_FILENAME, module: removeGithubProvider },{ filename: REQUEST_FAILURE_ATTRIBUTION_FILENAME, module: requestFailureAttribution },{ filename: REMOVE_AURAY_PROVIDER_FILENAME, module: removeAurayProvider },+ { filename: KEY_LAST_HEALTHY_AT_FILENAME, module: keyLastHealthyAt },];diff --git a/server/src/db/migrations/20261020_000001_key_last_healthy_at.ts b/server/src/db/migrations/20261020_000001_key_last_healthy_at.tsnew file mode 100644index 00000000..16935950--- /dev/null+++ b/server/src/db/migrations/20261020_000001_key_last_healthy_at.ts@@ -0,0 +1,34 @@+// Migration: last_healthy_at observability column on api_keys (#1493)+// Created: 2026-10-20+//+// DOWN: reversible (DROP COLUMN)+//+// A key can sit at status='healthy' with a fresh last_checked_at while never+// actually working: the transport-error path in services/health.ts refreshes+// last_checked_at but records no success, so "checked recently" is+// indistinguishable from "worked recently" (#1493). last_healthy_at is written+// only on evidence that the key WORKED — a valid probe verdict or a served+// live request — and never on a transport error, so "last worked N ago" is+// readable straight off the key row.+//+// Guarded like every other column add: catalog-sync re-runs migrations over a+// live schema, so ALTERs must be idempotent.++import type { Db } from '../types.js';++function hasColumn(db: Db, table: string, column: string): boolean {+ const columns = db.prepare(`PRAGMA table_info(${table})`).all() as { name: string }[];+ return columns.some(col => col.name === column);+}++export function up(db: Db): void {+ if (!hasColumn(db, 'api_keys', 'last_healthy_at')) {+ db.prepare('ALTER TABLE api_keys ADD COLUMN last_healthy_at TEXT').run();+ }+}++export function down(db: Db): void {+ if (hasColumn(db, 'api_keys', 'last_healthy_at')) {+ db.prepare('ALTER TABLE api_keys DROP COLUMN last_healthy_at').run();+ }+}diff --git a/server/src/routes/health.ts b/server/src/routes/health.tsindex 3e19c279..0d6cc8a7 100644--- a/server/src/routes/health.ts+++ b/server/src/routes/health.ts@@ -28,7 +28,7 @@ healthRouter.get('/', (_req: Request, res: Response) => {`).all() as any[];const keys = db.prepare(`- SELECT id, platform, label, status, enabled, created_at, last_checked_at, last_health_error+ SELECT id, platform, label, status, enabled, created_at, last_checked_at, last_healthy_at, last_health_errorFROM api_keysORDER BY platform, created_at DESC`).all() as any[];@@ -53,6 +53,7 @@ healthRouter.get('/', (_req: Request, res: Response) => {enabled: k.enabled === 1,createdAt: k.created_at,lastCheckedAt: k.last_checked_at,+ lastHealthyAt: k.last_healthy_at ?? null,lastHealthError: k.last_health_error,})),quotaStates: getQuotaStateForKeys(),diff --git a/server/src/routes/keys.ts b/server/src/routes/keys.tsindex 9ab16d39..2798b1fd 100644--- a/server/src/routes/keys.ts+++ b/server/src/routes/keys.ts@@ -475,6 +475,10 @@ keysRouter.get('/', (_req: Request, res: Response) => {exportable: isExportableKey({ platform: row.platform, baseUrl: row.base_url ?? null, key: realKey }),createdAt: row.created_at,lastCheckedAt: row.last_checked_at,+ // #1493: last time this key was proven to work (valid probe or served+ // request) — distinct from lastCheckedAt, which a transport error also+ // refreshes.+ lastHealthyAt: row.last_healthy_at ?? null,lastHealthError: row.last_health_error ?? null,// The model_id list this key is limited to; null = serves everything (#657).modelScope: scope ? [...scope] : null,diff --git a/server/src/services/health.ts b/server/src/services/health.tsindex b1338f71..7d606248 100644--- a/server/src/services/health.ts+++ b/server/src/services/health.ts@@ -290,7 +290,12 @@ export async function checkKeyHealth(keyId: number): Promise<KeyStatus> {const status: KeyStatus = isValid ? 'healthy' : 'invalid';- db.prepare("UPDATE api_keys SET status = ?, last_health_error = ?, last_checked_at = datetime('now') WHERE id = ?")+ // #1493: stamp last_healthy_at only on a VALID verdict. A transport error+ // (the catch below) refreshes last_checked_at but records no success, so+ // "checked recently" and "worked recently" stay distinguishable.+ db.prepare(isValid+ ? "UPDATE api_keys SET status = ?, last_health_error = ?, last_checked_at = datetime('now'), last_healthy_at = datetime('now') WHERE id = ?"+ : "UPDATE api_keys SET status = ?, last_health_error = ?, last_checked_at = datetime('now') WHERE id = ?").run(status, lastError, keyId);if (isValid) {@@ -408,6 +413,21 @@ export async function probeKeyValidity(keyId: number): Promise<KeyProbeOutcome>}}+/**+ * #1493: throttle for the last_healthy_at write from live traffic. The probe+ * path already writes the column at most once per health pass, but this+ * function runs on every successful proxied request, and an unthrottled UPDATE+ * would put a DB write on the hot path. One stamp per key per minute is plenty+ * for "last worked N ago".+ */+const lastHealthyStampedAt = new Map<number, number>();+const LAST_HEALTHY_STAMP_INTERVAL_MS = 60_000;++/** Test seam: drop the stamp throttle so a test can observe consecutive writes. */+export function clearLastHealthyStampState(): void {+ lastHealthyStampedAt.clear();+}+/*** Promote a key out of 'error' or 'unknown' after it successfully served a live* request.@@ -421,6 +441,18 @@ export async function probeKeyValidity(keyId: number): Promise<KeyProbeOutcome>*/export function markKeyHealthyFromRequest(keyId: number): void {try {+ // #1493: a served request is the strongest "this key works" evidence there+ // is — stamp last_healthy_at regardless of current status. This is the only+ // success signal for providers with supportsKeyValidation === false (#1459),+ // which never get a probe. Throttled in memory, not per request.+ const now = Date.now();+ const lastStamp = lastHealthyStampedAt.get(keyId);+ if (lastStamp === undefined || now - lastStamp >= LAST_HEALTHY_STAMP_INTERVAL_MS) {+ lastHealthyStampedAt.set(keyId, now);+ getDb()+ .prepare("UPDATE api_keys SET last_healthy_at = datetime('now') WHERE id = ?")+ .run(keyId);+ }getDb().prepare("UPDATE api_keys SET status = 'healthy', last_health_error = NULL WHERE id = ? AND status IN ('error', 'unknown')").run(keyId);diff --git a/shared/types.ts b/shared/types.tsindex 0ee314bc..1faed551 100644--- a/shared/types.ts+++ b/shared/types.ts@@ -366,6 +366,10 @@ export interface ApiKey {exportable: boolean;createdAt: string;lastCheckedAt: string | null;+ /** Last time the key was proven to work — a valid probe verdict or a served+ * live request (#1493). Unlike lastCheckedAt, a transport error does not+ * refresh it, so "checked recently but never worked" is visible. */+ lastHealthyAt?: string | null;lastHealthError: string | null;/** Model ids this key is limited to; null = serves every model of its* platform (#657). */