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.",