Chats as a daily driver: agent chats, photos, copy, rename, offline and recovery
CI / check (push) Canceled after 0s

- New agent chat (Agents tab FAB, route new-agent): GET /devices for the devices linked now; a
  device chip, an optional folder (empty = the device's first root, the server's rule) and the
  mode (manual/edit/auto/plan) go into POST /chats as kind/device/directory/mode. No device
  linked: a sentence saying how. An open agent chat's mode is a chip too.
- Attach: Take a photo (TakePicture into a FileProvider cache file, deleted once uploaded; no
  CAMERA permission), Choose photos (PickMultipleVisualMedia), Choose files.
- Copy under every reply (its text steps) and user message; Rename chat in the menu.
- The new chat's effort is held until the first message and sent with it (EffortChip called
  PATCH, which needs a chat, so the choice was dropped).
- Follow the reply while it streams, decided when the person's own scroll comes to rest; the
  first scroll goes to the real last item (the "older" row shifted the index by one).
- ui/Errors.kt explain(): the server's sentence for a refusal, one "cannot be reached" sentence
  for UnknownHost/Connect/SocketTimeout/NoRouteToHost, used everywhere an error was shown raw.
- A failed send hands its text and attachments back to the composer. A replaced follow's
  CancellationException is no longer shown as an error. A refused stream re-reads the chat.
- The chat list reloads on resume (quietly if rows are shown) and offers Try again.
- Strings: 15 new; Rename chat, Copy message, Copied., Save, Try again, Device and Auto from the
  server's catalogue, the rest translated in strings_own.json. "Plan" was the price plan in
  de/fr/hu (Tarif/Forfait/Csomag) and "Manual" untranslated: own entries fix both.
- ClientTest: an agent chat's body, a plain chat's, and what counts as unreachable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-09 08:09:53 +00:00
1 parent f4891ba402
commit 41dd3c893c
26 files changed
+736 -87

No files matched your search

+16 -1
View File
@@ -30,7 +30,12 @@ STRINGS: dict[str, str] = {
"tab_chats": "Chats",
"tab_agents": "Agents",
"empty_chats": "No chats yet. Not all those who wander are lost — start one.",
"empty_agents": "No agent chats. Start one from the web interface on a linked device.",
"empty_agents": "No agent chats yet. Start one with New agent chat, on a device linked to this instance.",
"new_agent_chat": "New agent chat",
"agent_device": "Device",
"agent_no_device": "No device is linked right now. Start `lembas service` on a computer signed in to this instance, then come back.",
"agent_directory": "Folder on the device",
"agent_directory_hint": "Empty: the device's first folder",
"empty_chat": "What shall we talk about?",
"loading_line": "Baking lembas…",
"archive": "Archive",
@@ -48,6 +53,15 @@ STRINGS: dict[str, str] = {
"send": "Send",
"stop": "Stop",
"attach": "Attach a file",
"attach_take_photo": "Take a photo",
"attach_choose_photos": "Choose photos",
"attach_choose_files": "Choose files",
"copy_message": "Copy message",
"copied": "Copied.",
"rename_chat": "Rename chat",
"save": "Save",
"retry": "Try again",
"offline": "The instance cannot be reached. Check the phone's connection, and that it can reach the instance's address.",
"dictate": "Dictate",
"remove": "Remove",
"more": "More",
@@ -58,6 +72,7 @@ STRINGS: dict[str, str] = {
"mode_plan": "Plan",
"mode_edit": "Edit",
"mode_manual": "Manual",
"mode_auto": "Auto",
# Cards
"card_approval": "Allow this?",
"card_allow_once": "Allow once",
+82 -15
View File
@@ -2,6 +2,9 @@
"cs": {
"about_version": "LLeMbas pro Android %1$s",
"add_instance": "Přidat instanci",
"agent_directory": "Složka na zařízení",
"agent_directory_hint": "Prázdné: první složka zařízení",
"agent_no_device": "Právě není propojené žádné zařízení. Spusťte `lembas service` na počítači přihlášeném k této instanci a vraťte se.",
"archive": "Archivovat",
"assist_hint": "Zeptejte se na cokoli",
"assist_include_screen": "Zahrnout obrazovku",
@@ -14,6 +17,9 @@
"assistant_samsung": "Na telefonech Samsung: Nastavení › Pokročilé funkce › Boční tlačítko › Stisknutí a podržení › Digitální asistent.",
"assistant_temporary": "Konverzace s asistentem jsou dočasné",
"attach": "Přiložit soubor",
"attach_choose_files": "Vybrat soubory",
"attach_choose_photos": "Vybrat fotky",
"attach_take_photo": "Vyfotit",
"card_allow_once": "Povolit jednou",
"card_answer": "Vaše odpověď",
"card_approval": "Povolit to?",
@@ -21,13 +27,15 @@
"channel_asks": "Otázky a schválení",
"device_name": "LLeMbas pro Android",
"effort_off": "Úsilí: vypnuto",
"empty_agents": "Žádné konverzace s agentem. Spusťte jednu z webového rozhraní na propojeném zařízení.",
"empty_agents": "Zatím žádné konverzace s agentem. Spusťte jednu tlačítkem Nová konverzace s agentem na zařízení propojeném s touto instancí.",
"empty_chat": "O čem si promluvíme?",
"empty_chats": "Zatím žádné konverzace. Ne všichni, kdo bloudí, jsou ztraceni — založte jednu.",
"listening": "Naslouchám…",
"loading_line": "Pečou se lembasy…",
"mode_manual": "Manual",
"mode_manual": "Ručně",
"more": "Více",
"new_agent_chat": "Nová konverzace s agentem",
"offline": "Instance není dostupná. Zkontrolujte připojení telefonu a to, zda se dostane na adresu instance.",
"older": "Starší zprávy",
"output_cut": "Výstup je zde zkrácen. Celý ho najdete na webové stránce.",
"plan_approve": "Schválit plán",
@@ -73,6 +81,9 @@
"de": {
"about_version": "LLeMbas für Android %1$s",
"add_instance": "Instanz hinzufügen",
"agent_directory": "Ordner auf dem Gerät",
"agent_directory_hint": "Leer: der erste Ordner des Geräts",
"agent_no_device": "Gerade ist kein Gerät verknüpft. Starten Sie `lembas service` auf einem Computer, der bei dieser Instanz angemeldet ist, und kommen Sie dann zurück.",
"archive": "Archivieren",
"assist_hint": "Fragen Sie irgendetwas",
"assist_include_screen": "Bildschirm einbeziehen",
@@ -85,6 +96,9 @@
"assistant_samsung": "Auf Samsung-Telefonen: Einstellungen › Erweiterte Funktionen › Seitentaste › Gedrückt halten › Digitaler Assistent.",
"assistant_temporary": "Assistenten-Chats sind temporär",
"attach": "Datei anhängen",
"attach_choose_files": "Dateien auswählen",
"attach_choose_photos": "Fotos auswählen",
"attach_take_photo": "Foto aufnehmen",
"card_allow_once": "Einmal erlauben",
"card_answer": "Ihre Antwort",
"card_approval": "Das erlauben?",
@@ -92,13 +106,16 @@
"channel_asks": "Fragen und Bestätigungen",
"device_name": "LLeMbas für Android",
"effort_off": "Aufwand: aus",
"empty_agents": "Keine Agent-Chats. Starten Sie einen über die Weboberfläche auf einem verknüpften Gerät.",
"empty_agents": "Noch keine Agent-Chats. Starten Sie einen mit „Neuer Agent-Chat“ auf einem Gerät, das mit dieser Instanz verknüpft ist.",
"empty_chat": "Worüber sprechen wir?",
"empty_chats": "Noch keine Chats. Nicht jeder, der wandert, ist verloren — fangen Sie einen an.",
"listening": "Hört zu…",
"loading_line": "Lembas wird gebacken…",
"mode_manual": "Manual",
"mode_manual": "Manuell",
"mode_plan": "Plan",
"more": "Mehr",
"new_agent_chat": "Neuer Agent-Chat",
"offline": "Die Instanz ist nicht erreichbar. Prüfen Sie die Verbindung des Telefons und ob es die Adresse der Instanz erreicht.",
"older": "Frühere Nachrichten",
"output_cut": "Die Ausgabe ist hier verkürzt. Vollständig finden Sie sie auf der Webseite.",
"plan_approve": "Plan bestätigen",
@@ -144,6 +161,9 @@
"es": {
"about_version": "LLeMbas para Android %1$s",
"add_instance": "Añadir una instancia",
"agent_directory": "Carpeta en el dispositivo",
"agent_directory_hint": "Vacío: la primera carpeta del dispositivo",
"agent_no_device": "Ahora no hay ningún dispositivo vinculado. Inicie `lembas service` en un ordenador con sesión iniciada en esta instancia y vuelva.",
"archive": "Archivar",
"assist_hint": "Pregunte lo que quiera",
"assist_include_screen": "Incluir pantalla",
@@ -156,6 +176,9 @@
"assistant_samsung": "En los teléfonos Samsung: Ajustes › Funciones avanzadas › Botón lateral › Mantener pulsado › Asistente digital.",
"assistant_temporary": "Los chats del asistente son temporales",
"attach": "Adjuntar un archivo",
"attach_choose_files": "Elegir archivos",
"attach_choose_photos": "Elegir fotos",
"attach_take_photo": "Hacer una foto",
"card_allow_once": "Permitir una vez",
"card_answer": "Su respuesta",
"card_approval": "¿Permitir esto?",
@@ -163,13 +186,15 @@
"channel_asks": "Preguntas y aprobaciones",
"device_name": "LLeMbas para Android",
"effort_off": "Esfuerzo: desactivado",
"empty_agents": "No hay chats de agente. Inicie uno desde la interfaz web en un dispositivo vinculado.",
"empty_agents": "Aún no hay chats de agente. Inicie uno con Nuevo chat de agente, en un dispositivo vinculado a esta instancia.",
"empty_chat": "¿De qué hablamos?",
"empty_chats": "Aún no hay chats. No todos los que vagan están perdidos — empiece uno.",
"listening": "Escuchando…",
"loading_line": "Horneando lembas…",
"mode_manual": "Manual",
"more": "Más",
"new_agent_chat": "Nuevo chat de agente",
"offline": "No se puede acceder a la instancia. Compruebe la conexión del teléfono y que llegue a la dirección de la instancia.",
"older": "Mensajes anteriores",
"output_cut": "La salida está acortada aquí. La tiene completa en la página web.",
"plan_approve": "Aprobar el plan",
@@ -215,6 +240,9 @@
"fr": {
"about_version": "LLeMbas pour Android %1$s",
"add_instance": "Ajouter une instance",
"agent_directory": "Dossier sur l'appareil",
"agent_directory_hint": "Vide : le premier dossier de l'appareil",
"agent_no_device": "Aucun appareil n'est associé pour l'instant. Lancez `lembas service` sur un ordinateur connecté à cette instance, puis revenez.",
"archive": "Archiver",
"assist_hint": "Demandez n'importe quoi",
"assist_include_screen": "Inclure l'écran",
@@ -227,6 +255,9 @@
"assistant_samsung": "Sur les téléphones Samsung : Paramètres › Fonctions avancées › Bouton latéral › Maintenir enfoncé › Assistant numérique.",
"assistant_temporary": "Les conversations de l'assistant sont temporaires",
"attach": "Joindre un fichier",
"attach_choose_files": "Choisir des fichiers",
"attach_choose_photos": "Choisir des photos",
"attach_take_photo": "Prendre une photo",
"card_allow_once": "Autoriser une fois",
"card_answer": "Votre réponse",
"card_approval": "Autoriser ceci ?",
@@ -234,13 +265,16 @@
"channel_asks": "Questions et approbations",
"device_name": "LLeMbas pour Android",
"effort_off": "Effort : désactivé",
"empty_agents": "Aucune conversation d'agent. Démarrez-en une depuis l'interface web sur un appareil associé.",
"empty_agents": "Pas encore de conversation d'agent. Démarrez-en une avec Nouvelle conversation d'agent, sur un appareil associé à cette instance.",
"empty_chat": "De quoi allons-nous parler ?",
"empty_chats": "Pas encore de conversation. Tous ceux qui errent ne sont pas perdus — commencez-en une.",
"listening": "Écoute…",
"loading_line": "Cuisson des lembas…",
"mode_manual": "Manual",
"mode_manual": "Manuel",
"mode_plan": "Plan",
"more": "Plus",
"new_agent_chat": "Nouvelle conversation d'agent",
"offline": "L'instance est injoignable. Vérifiez la connexion du téléphone et qu'il atteint bien l'adresse de l'instance.",
"older": "Messages précédents",
"output_cut": "La sortie est raccourcie ici. Vous la trouverez en entier sur la page web.",
"plan_approve": "Approuver le plan",
@@ -286,6 +320,9 @@
"hu": {
"about_version": "LLeMbas Androidra %1$s",
"add_instance": "Példány hozzáadása",
"agent_directory": "Mappa az eszközön",
"agent_directory_hint": "Üres: az eszköz első mappája",
"agent_no_device": "Jelenleg nincs összekapcsolt eszköz. Indítsa el a `lembas service` parancsot egy ebbe a példányba bejelentkezett számítógépen, majd térjen vissza.",
"archive": "Archiválás",
"assist_hint": "Kérdezzen bármit",
"assist_include_screen": "Képernyő hozzáadása",
@@ -298,6 +335,9 @@
"assistant_samsung": "Samsung telefonokon: Beállítások › Speciális funkciók › Oldalgomb › Nyomva tartás › Digitális asszisztens.",
"assistant_temporary": "Az asszisztenses csevegések ideiglenesek",
"attach": "Fájl csatolása",
"attach_choose_files": "Fájlok kiválasztása",
"attach_choose_photos": "Fényképek kiválasztása",
"attach_take_photo": "Fénykép készítése",
"card_allow_once": "Engedélyezés egyszer",
"card_answer": "Az Ön válasza",
"card_approval": "Engedélyezzük ezt?",
@@ -305,13 +345,16 @@
"channel_asks": "Kérdések és jóváhagyások",
"device_name": "LLeMbas Androidra",
"effort_off": "Erőfeszítés: kikapcsolva",
"empty_agents": "Nincs ügynök-csevegés. Indítson el egyet a webes felületen egy összekapcsolt eszközön.",
"empty_agents": "Még nincs ügynök-csevegés. Indítson egyet az Új ügynök-csevegés gombbal, egy ehhez a példányhoz kapcsolt eszközön.",
"empty_chat": "Miről beszéljünk?",
"empty_chats": "Még nincs csevegés. Nem mindenki van elveszve, aki bolyong — kezdjen el egyet.",
"listening": "Hallgatja…",
"loading_line": "Lembas sül…",
"mode_manual": "Manual",
"mode_manual": "Kézi",
"mode_plan": "Terv",
"more": "Továbbiak",
"new_agent_chat": "Új ügynök-csevegés",
"offline": "A példány nem érhető el. Ellenőrizze a telefon kapcsolatát, és hogy eléri-e a példány címét.",
"older": "Korábbi üzenetek",
"output_cut": "A kimenet itt lerövidítve jelenik meg. A teljes szöveg a weblapon található.",
"plan_approve": "Terv jóváhagyása",
@@ -357,6 +400,9 @@
"it": {
"about_version": "LLeMbas per Android %1$s",
"add_instance": "Aggiungi un'istanza",
"agent_directory": "Cartella sul dispositivo",
"agent_directory_hint": "Vuoto: la prima cartella del dispositivo",
"agent_no_device": "Nessun dispositivo è collegato ora. Avvia `lembas service` su un computer connesso a questa istanza, poi torna qui.",
"archive": "Archivia",
"assist_hint": "Chiedi qualsiasi cosa",
"assist_include_screen": "Includi lo schermo",
@@ -369,6 +415,9 @@
"assistant_samsung": "Sui telefoni Samsung: Impostazioni › Funzioni avanzate › Tasto laterale › Pressione prolungata › Assistente digitale.",
"assistant_temporary": "Le chat dell'assistente sono temporanee",
"attach": "Allega un file",
"attach_choose_files": "Scegli file",
"attach_choose_photos": "Scegli foto",
"attach_take_photo": "Scatta una foto",
"card_allow_once": "Consenti una volta",
"card_answer": "La tua risposta",
"card_approval": "Consentire questo?",
@@ -376,13 +425,15 @@
"channel_asks": "Domande e approvazioni",
"device_name": "LLeMbas per Android",
"effort_off": "Impegno: disattivato",
"empty_agents": "Nessuna chat agente. Avviane una dall'interfaccia web su un dispositivo collegato.",
"empty_agents": "Ancora nessuna chat agente. Avviane una con Nuova chat agente, su un dispositivo collegato a questa istanza.",
"empty_chat": "Di cosa parliamo?",
"empty_chats": "Ancora nessuna chat. Non tutti quelli che vagano sono perduti — iniziane una.",
"listening": "In ascolto…",
"loading_line": "I lembas stanno cuocendo…",
"mode_manual": "Manual",
"mode_manual": "Manuale",
"more": "Altro",
"new_agent_chat": "Nuova chat agente",
"offline": "L'istanza non è raggiungibile. Controlla la connessione del telefono e che raggiunga l'indirizzo dell'istanza.",
"older": "Messaggi precedenti",
"output_cut": "L'output qui è abbreviato. Lo trovi per intero sulla pagina web.",
"plan_approve": "Approva il piano",
@@ -428,6 +479,9 @@
"pl": {
"about_version": "LLeMbas na Androida %1$s",
"add_instance": "Dodaj instancję",
"agent_directory": "Folder na urządzeniu",
"agent_directory_hint": "Puste: pierwszy folder urządzenia",
"agent_no_device": "Żadne urządzenie nie jest teraz połączone. Uruchom `lembas service` na komputerze zalogowanym do tej instancji i wróć.",
"archive": "Archiwizuj",
"assist_hint": "Zapytaj o cokolwiek",
"assist_include_screen": "Dołącz ekran",
@@ -440,6 +494,9 @@
"assistant_samsung": "W telefonach Samsung: Ustawienia › Funkcje zaawansowane › Przycisk boczny › Naciśnięcie i przytrzymanie › Asystent cyfrowy.",
"assistant_temporary": "Czaty asystenta są tymczasowe",
"attach": "Załącz plik",
"attach_choose_files": "Wybierz pliki",
"attach_choose_photos": "Wybierz zdjęcia",
"attach_take_photo": "Zrób zdjęcie",
"card_allow_once": "Zezwól raz",
"card_answer": "Twoja odpowiedź",
"card_approval": "Zezwolić na to?",
@@ -447,13 +504,15 @@
"channel_asks": "Pytania i zatwierdzenia",
"device_name": "LLeMbas na Androida",
"effort_off": "Wysiłek: wyłączony",
"empty_agents": "Brak czatów agenta. Zacznij jeden z interfejsu webowego na połączonym urządzeniu.",
"empty_agents": "Brak czatów agenta. Zacznij jeden przyciskiem Nowy czat agenta, na urządzeniu połączonym z tą instancją.",
"empty_chat": "O czym porozmawiamy?",
"empty_chats": "Nie ma jeszcze czatów. Nie każdy, kto błądzi, jest zgubiony — zacznij jeden.",
"listening": "Słucham…",
"loading_line": "Lembasy się pieczą…",
"mode_manual": "Manual",
"mode_manual": "Ręcznie",
"more": "Więcej",
"new_agent_chat": "Nowy czat agenta",
"offline": "Instancja jest nieosiągalna. Sprawdź połączenie telefonu i czy dociera on do adresu instancji.",
"older": "Wcześniejsze wiadomości",
"output_cut": "Wynik jest tu skrócony. Cały znajduje się na stronie internetowej.",
"plan_approve": "Zatwierdź plan",
@@ -499,6 +558,9 @@
"sk": {
"about_version": "LLeMbas pre Android %1$s",
"add_instance": "Pridať inštanciu",
"agent_directory": "Zložka v zariadení",
"agent_directory_hint": "Prázdne: prvá zložka zariadenia",
"agent_no_device": "Práve nie je prepojené žiadne zariadenie. Spustite `lembas service` na počítači prihlásenom do tejto inštancie a vráťte sa.",
"archive": "Archivovať",
"assist_hint": "Spýtajte sa na čokoľvek",
"assist_include_screen": "Zahrnúť obrazovku",
@@ -511,6 +573,9 @@
"assistant_samsung": "Na telefónoch Samsung: Nastavenia › Rozšírené funkcie › Tlačidlo na boku › Stlačenie a podržanie › Digitálny asistent.",
"assistant_temporary": "Konverzácie s asistentom sú dočasné",
"attach": "Priložiť súbor",
"attach_choose_files": "Vybrať súbory",
"attach_choose_photos": "Vybrať fotky",
"attach_take_photo": "Odfotiť",
"card_allow_once": "Povoliť raz",
"card_answer": "Vaša odpoveď",
"card_approval": "Povoliť to?",
@@ -518,13 +583,15 @@
"channel_asks": "Otázky a schválenia",
"device_name": "LLeMbas pre Android",
"effort_off": "Úsilie: vypnuté",
"empty_agents": "Žiadne konverzácie s agentom. Spustite jednu z webového rozhrania na prepojenom zariadení.",
"empty_agents": "Zatiaľ žiadne konverzácie s agentom. Spustite jednu tlačidlom Nová konverzácia s agentom na zariadení prepojenom s touto inštanciou.",
"empty_chat": "O čom sa pozhovárame?",
"empty_chats": "Zatiaľ žiadne konverzácie. Nie všetci, čo blúdia, sú stratení — začnite jednu.",
"listening": "Počúvam…",
"loading_line": "Pečú sa lembasy…",
"mode_manual": "Manual",
"mode_manual": "Ručne",
"more": "Viac",
"new_agent_chat": "Nová konverzácia s agentom",
"offline": "Inštancia nie je dostupná. Skontrolujte pripojenie telefónu a či sa dostane na adresu inštancie.",
"older": "Staršie správy",
"output_cut": "Výstup je tu skrátený. Celý nájdete na webovej stránke.",
"plan_approve": "Schváliť plán",