Keep the typed address, know an instance signed in to before, heed min_clients
CI / check (push) Canceled after 0s

- A new sign-in stores the normalised typed address; the instance's own base_url is not stored
  and is looked at only to recognise an instance already on the phone (same account, stored
  base equal to the typed address or to what the instance says): that entry is refreshed under
  its id, no twin is added. Existing entries are not migrated: ids are opaque keys.
- The device-code endpoints of the discovery document are used only on the typed address's
  origin; otherwise the sign-in says so.
- min_clients.android in the discovery document, above this app's version (by numbers,
  beta-aware, a build's suffix left off), is "update the app" with both versions, at sign-in
  and at the drawer's check. Any other shape of the field is read as nothing said.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Fable 5.2 committed 2026-12-01 19:26:14 +00:00
1 parent 71b2e847cf
commit 827f57839f
19 files changed
+339 -25

No files matched your search

+2
View File
@@ -29,6 +29,8 @@ STRINGS: dict[str, str] = {
# when an instance signed this phone out.
"signin_not_lembas": "There is no LLeMbas instance at that address.",
"signin_failed": "The sign-in could not be completed (%1$s). Try again.",
"signin_app_too_old": "This instance needs LLeMbas for Android %1$s or newer, and this is %2$s. Update the app.",
"signin_other_origin": "This instance names another address for signing in (%1$s) than the one you typed. Its proxy has to pass on the address it is reached by.",
"address_needs_https": "This app needs an https:// address: plain http is not supported.",
"address_unreadable": "That is not an address this app can use. Type the instance's address, like llm.example.org.",
"server_answered": "The server answered %1$s.",
+24 -8
View File
@@ -445,7 +445,9 @@
"signed_out": "%1$s tento telefon odhlásila. Přihlaste se znovu a pokračujte: vaše chaty i zdejší nastavení zůstávají.",
"signed_out_again": "Přihlásit se znovu",
"signed_out_use": "Použít %1$s",
"signed_out_remove": "Odebrat tuto instanci"
"signed_out_remove": "Odebrat tuto instanci",
"signin_app_too_old": "Tato instance potřebuje LLeMbas pro Android %1$s nebo novější, a toto je %2$s. Aktualizujte aplikaci.",
"signin_other_origin": "Tato instance uvádí pro přihlášení jinou adresu (%1$s), než jakou jste zadali. Její proxy musí předávat adresu, na které je dostupná."
},
"de": {
"about_version": "LLeMbas für Android %1$s",
@@ -894,7 +896,9 @@
"signed_out": "%1$s hat dieses Telefon abgemeldet. Melden Sie sich erneut an, um fortzufahren: Ihre Chats und Ihre Einstellungen hier bleiben erhalten.",
"signed_out_again": "Erneut anmelden",
"signed_out_use": "%1$s verwenden",
"signed_out_remove": "Diese Instanz entfernen"
"signed_out_remove": "Diese Instanz entfernen",
"signin_app_too_old": "Diese Instanz braucht LLeMbas für Android %1$s oder neuer, und dies ist %2$s. Aktualisieren Sie die App.",
"signin_other_origin": "Diese Instanz nennt für die Anmeldung eine andere Adresse (%1$s) als die eingegebene. Ihr Proxy muss die Adresse weitergeben, unter der sie erreicht wird."
},
"es": {
"about_version": "LLeMbas para Android %1$s",
@@ -1342,7 +1346,9 @@
"signed_out": "%1$s cerró la sesión de este teléfono. Inicie sesión de nuevo para continuar: sus chats y lo que configuró aquí se conservan.",
"signed_out_again": "Iniciar sesión de nuevo",
"signed_out_use": "Usar %1$s",
"signed_out_remove": "Quitar esta instancia"
"signed_out_remove": "Quitar esta instancia",
"signin_app_too_old": "Esta instancia necesita LLeMbas para Android %1$s o posterior, y esta es la %2$s. Actualice la aplicación.",
"signin_other_origin": "Esta instancia indica para iniciar sesión otra dirección (%1$s) que la que escribió. Su proxy debe transmitir la dirección por la que se accede a ella."
},
"fr": {
"about_version": "LLeMbas pour Android %1$s",
@@ -1791,7 +1797,9 @@
"signed_out": "%1$s a déconnecté ce téléphone. Reconnectez-vous pour continuer : vos discussions et vos réglages ici sont conservés.",
"signed_out_again": "Se reconnecter",
"signed_out_use": "Utiliser %1$s",
"signed_out_remove": "Retirer cette instance"
"signed_out_remove": "Retirer cette instance",
"signin_app_too_old": "Cette instance nécessite LLeMbas pour Android %1$s ou plus récent, et ceci est la version %2$s. Mettez à jour l'application.",
"signin_other_origin": "Cette instance indique pour la connexion une autre adresse (%1$s) que celle que vous avez saisie. Son proxy doit transmettre l'adresse par laquelle elle est jointe."
},
"hu": {
"about_version": "LLeMbas Androidra %1$s",
@@ -2240,7 +2248,9 @@
"signed_out": "%1$s kijelentkeztette ezt a telefont. A folytatáshoz jelentkezzen be újra: a csevegései és az itteni beállításai megmaradnak.",
"signed_out_again": "Bejelentkezés újra",
"signed_out_use": "%1$s használata",
"signed_out_remove": "Példány eltávolítása"
"signed_out_remove": "Példány eltávolítása",
"signin_app_too_old": "Ehhez a példányhoz az Androidos LLeMbas %1$s vagy újabb verziója kell, ez pedig a %2$s. Frissítse az alkalmazást.",
"signin_other_origin": "Ez a példány más címet ad meg a bejelentkezéshez (%1$s), mint amit beírt. A proxyjának tovább kell adnia azt a címet, amelyen elérik."
},
"it": {
"about_version": "LLeMbas per Android %1$s",
@@ -2688,7 +2698,9 @@
"signed_out": "%1$s ha disconnesso questo telefono. Accedi di nuovo per continuare: le tue chat e le impostazioni fatte qui restano.",
"signed_out_again": "Accedi di nuovo",
"signed_out_use": "Usa %1$s",
"signed_out_remove": "Rimuovi questa istanza"
"signed_out_remove": "Rimuovi questa istanza",
"signin_app_too_old": "Questa istanza richiede LLeMbas per Android %1$s o successivo, e questa è la %2$s. Aggiorna l'app.",
"signin_other_origin": "Questa istanza indica per l'accesso un indirizzo diverso (%1$s) da quello che hai scritto. Il suo proxy deve inoltrare l'indirizzo con cui viene raggiunta."
},
"pl": {
"about_version": "LLeMbas na Androida %1$s",
@@ -3136,7 +3148,9 @@
"signed_out": "%1$s wylogowała ten telefon. Zaloguj się ponownie, aby kontynuować: Twoje czaty i tutejsze ustawienia zostają.",
"signed_out_again": "Zaloguj się ponownie",
"signed_out_use": "Użyj %1$s",
"signed_out_remove": "Usuń tę instancję"
"signed_out_remove": "Usuń tę instancję",
"signin_app_too_old": "Ta instancja wymaga LLeMbas dla Androida %1$s lub nowszego, a to jest %2$s. Zaktualizuj aplikację.",
"signin_other_origin": "Ta instancja podaje do logowania inny adres (%1$s) niż wpisany. Jej proxy musi przekazywać adres, pod którym jest dostępna."
},
"sk": {
"about_version": "LLeMbas pre Android %1$s",
@@ -3584,6 +3598,8 @@
"signed_out": "%1$s tento telefón odhlásila. Prihláste sa znova a pokračujte: vaše chaty aj tunajšie nastavenia zostávajú.",
"signed_out_again": "Prihlásiť sa znova",
"signed_out_use": "Použiť %1$s",
"signed_out_remove": "Odstrániť túto inštanciu"
"signed_out_remove": "Odstrániť túto inštanciu",
"signin_app_too_old": "Táto inštancia potrebuje LLeMbas pre Android %1$s alebo novší, a toto je %2$s. Aktualizujte aplikáciu.",
"signin_other_origin": "Táto inštancia uvádza na prihlásenie inú adresu (%1$s), než akú ste zadali. Jej proxy musí odovzdávať adresu, na ktorej je dostupná."
}
}