Commit Graph
37 Commits
Author SHA1 Message Date
HomerandClaude Fable 5.2 374574b9ce Wake word: the engine loads, and its state is one truth that is shown
CI / check (push) Canceled after 0s
The model was read from the APK with AssetManager.openFd, which throws for a
compressed asset; the assets were compressed, runCatching swallowed it, and
the engine never loaded on any phone.

- The model is copied out by stream, keyed by a version file the fetch
  script writes (a hash of the pinned model); onnx assets are stored.
- WakeState (Off, Starting, Listening, Paused, Failed) in one StateFlow that
  the service, its notification and Settings read. onStartCommand no longer
  posts the default phrase; the notification is written from the state only.
- WakeListener holds the loop apart from Android: an engine that does not
  load and a microphone that does not start or stops are Failed states with
  a reason, logged, retried with back-off; a new phrase cancels and joins the
  old loop before the engine is released.
- A keywords line is checked against tokens.txt before the engine sees it
  (the engine exits the process on an unknown piece).
- The service is not started without the microphone permission, and the app
  looks again each time it comes to the screen.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 09:44:49 +00:00
HomerandClaude Opus 5.5 f816919071 Phone actions: the confirm card and the capability (harness spec 3.6.0, server e463621)
CI / check (push) Canceled after 0s
- Contract and strings pinned at server dev e463621 (event_ask_phone.json); tokens unchanged.
- Every message declares client ["phone_actions"] (POST /chats and /chats/{id}/messages).
- CardItem.phone; a phone_action card (chat card sheet, and inline in the assistant's sheet):
  the model's summary, how it will be done, its facts, the map app to use when Settings leaves
  it open, Google Maps' limits said; Cancel answers declined, Do it runs ActionRunner and
  answers {result: {status, message}} -- done or failed with why. Locked: "unlock first".
- Executor on the spec's fields: alarm time HH:MM/days/label, timer, calendar_event
  (start/end local, notes), sms_draft (numbers only; names left to the person), email_draft
  with cc, dial, open_app by name, open_url, media command, torch on, settings_panel,
  automation_intent (Tasker's ACTION_TASK by name with values as local variables, else
  LLeMbas's own AUTOMATION broadcast), navigate (replace_route -> OsmAnd force), add_stop,
  search_nearby (near), stop_navigation. Tool-result reasons in English, for the model.
- Tests: PhoneActionsTest reads the fixture; shots 35-38 phone cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 16:51:32 +00:00
HomerandClaude Opus 5.5 9906554d09 Phone actions, groundwork: the executor and its settings, before the server's phone_action
CI / check (push) Canceled after 0s
- actions/PhoneActions: standard intents for alarm, timer, calendar insert, SMS and email
  drafts, dial (the dialler, never a call), open URL (http/https only), open app (package or
  launcher label), settings panels, automation broadcasts (never android.* / com.android.*);
  torch via CameraManager; media keys via AudioManager.
- actions/Navigation: Google Maps (google.navigation:, the dir URL with waypoints, geo:0,0?q=;
  no adding to a running route, no stop) and OsmAnd through its intent API only
  (osmand.api:// navigate, navigate_gpx with route points as GPX data, navigate_search,
  stop_navigation; no OsmAnd code, which is GPLv3). add_stop re-plans here -> stop -> destination.
- Optional OsmAnd get_info (Settings switch, after allowing LLeMbas inside OsmAnd): position and
  the running route's destination, through a see-through ResultActivity.
- Settings › Navigation app: whichever is installed (both: ask), Google Maps, OsmAnd, ask.
- Not wired yet: the confirm card and the capability wait for the server's spec 3.6.0 fixtures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 16:39:11 +00:00
HomerandClaude Opus 5.5 9ca27cee01 Notification summaries on request: NotificationListenerService, off by default
CI / check (push) Canceled after 0s
- LembasNotificationListener keeps nothing; NotificationReader.read takes the notifications up
  now (not ours, not ongoing, not group summaries; newest 40, 600 chars each, 12k in all) and
  returns nothing while the phone is locked.
- The assistant sends them with one question: its "Summarise my notifications" chip, or a
  question naming them (assist_notifications_phrases, per language).
- Settings › Assistant › Notification summaries: the app's switch (off) and, when on, Android's
  notification-access page with whether it is given; a privacy paragraph.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 16:29:14 +00:00
HomerandClaude Opus 5.5 dc642c62b9 Opt-in wake word: on-device keyword spotting in a microphone foreground service
CI / check (push) Canceled after 0s
- Engine: sherpa-onnx 2.0.1 keyword spotter (Apache-2.0) with the English
  zipformer-gigaspeech-3.3M KWS model (Apache-2.0, int8), fetched hash-pinned by
  scripts/fetch-wakeword.py into app/libs and src/full/assets (gitignored); CI and release run it.
  `full` flavour only (abiFilters arm64-v8a, armeabi-v7a, x86_64); `fdroid` has a stub engine
  and Settings says why. ProGuard keeps com.k2fsa.sherpa.onnx (JNI reads fields by name).
- WakeWordService (foregroundServiceType microphone): persistent notification with Stop; audio
  only to the engine in memory; pauses while the sheet is up (AssistPresence), in battery saver,
  and with the screen off unless Settings says otherwise. On the word: the sheet opens listening
  through LembasAssistService.showSession when LLeMbas is the assistant, else the activity,
  else a "tap to ask" notification.
- No microphone service at boot: WakeBootReceiver posts "tap to listen again"; MainActivity
  restarts a service the phone stopped.
- Settings › Assistant › Wake word: switch (off), four built-in English phrases (BPE-tokenized
  with the model's bpe.model), screen-on only, battery-optimisation page; privacy and cost text.
- The sheet's "no wake word" line now points at the setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 16:27:51 +00:00
HomerandClaude Opus 5.5 9976186599 Spoken conversation mode: listen again after each spoken answer until stopped
CI / check (push) Canceled after 0s
- A spoken question answered aloud opens a conversation (Settings › Assistant, on by default,
  needs voice replies); after the answer is heard to the end, the sheet listens again.
- Ends on a stop phrase (assist_stop_words, per language; isStopPhrase), End, typing, a stopped
  voice, a card waiting, or nothing said (the existing silence timeout).
- "In conversation" banner with End in the sheet's foot; shot 24-assistant-conversation.
- HeadsetRoute: a Bluetooth headset made the communication device (Android 12+) and its
  microphone preferred by the recorder, so the conversation can stay in the ear.
- Speaker.playToEnd tells a voice heard to the end from one stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 16:16:15 +00:00
HomerandClaude Opus 5.5 77e1539e8f Assistant entry points: share sheet (new or last chat), widget, shortcuts, headset button
CI / check (push) Canceled after 0s
- Share: a sheet over the sharing app shows what came in, takes an optional request, and sends
  to a new chat or the last assistant chat; files uploaded first; a new chat becomes the last.
- Home-screen widget (RemoteViews, nothing from the account): Ask, Speak, last chat.
- Launcher shortcuts published from code (the debug build's package differs): Ask, Speak, Last.
- ACTION_VOICE_COMMAND / VOICE_SEARCH_HANDS_FREE open the sheet listening; locked: unlock first.
- Quick Settings tile: STATE_INACTIVE (never greyed out), TOGGLEABLE_TILE false.
- fetch-tokens.py also writes values{,-night}/tokens.xml for what Compose cannot draw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 16:05:11 +00:00
HomerandClaude Opus 5.5 ec9049f4ae Schedules on a computer: "Waiting for the computer", and a watched command named as one
CI / check (push) Canceled after 0s
Seen in shot 10-schedule-on-computer: a run waiting for its computer said "Waiting for a
model" (cut off), and a watched command was labelled "Only when this page changes". The chip
now says "Waiting for the computer" when waiting_for is device (8 translations) and ends in an
ellipsis when long; a `command` watch uses the server's "Only when this command's output
changes".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 14:23:38 +00:00
HomerandClaude Opus 5.5 d0404f1968 Schedules on a computer: which one, its folder and mode, and "not linked now"
CI / check (push) Canceled after 0s
`runs_on` (server 57d06ee): the schedule page says Computer: name · folder · mode; each run
row names the computer, and a run waiting with error class device_away adds "not linked now"
(server's words). The fixtures carry no "does not accept scheduled work" state on /api/v2, so
that one is the run's own error text only. ScheduleContractTest reads schedule_on_device.json;
shot 10-schedule-on-computer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 14:15:17 +00:00
HomerandClaude Opus 5.5 a5c4fdc128 Contract at server dev e0c2332; the update check asks the instance first (GET /api/v2/apps)
CI / check (push) Canceled after 0s
Re-pinned at e0c2332 (after 2a2b24f /apps, 57d06ee schedules on a computer, e0c2332
force_tool on POST /chats): apps.json, apps_stable.json, schedule_on_device.json; `runs_on`
on schedules (parsed by the rest, not drawn yet); the schedules frame's version hash.

ReleaseCheck: the instance's recommendation first (it knows which release speaks its
/api/v2); a beta only with Include betas; a null android means no offer. A server without the
route, none signed in or none reachable falls back to GitHub's list as before. The About line
says so (8 translations). UpdateCheckTest reads both fixtures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 14:05:38 +00:00
HomerandClaude Opus 5.5 9b1bf688a1 Drawer search: the chats whose messages hold the words, under the title matches
CI / check (push) Canceled after 0s
GET /api/v2/search?in=chats (server f7f2ff2), 400 ms after typing pauses and from two
characters; the title filter stays local and instant. Hits under "In the messages" with the
snippet as plain text and the server's marks drawn (markedSnippet clamps ranges that do not
fit). A failed search leaves the title filter alone. ContractTest reads search.json;
ChatGroupsTest the marks; shot 05-drawer-search.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 14:04:17 +00:00
HomerandClaude Opus 5.5 d9654dd23c Generate images from the composer; the picture in its own safe composable
CI / check (push) Canceled after 0s
+ › Generate images (when /me services.images) marks the next message, shown as a chip under
the box; it is sent with force_tool image_generate (the server's only forceable tool) on
POST /chats/{id}/messages. The tool event's `image {id, width, height}` is drawn by
GeneratedPicture: fetched only by attachment id from GET /api/v2/attachments/{id} with the
token (no URL is ever followed), at most 24 MB, decoded to a 1600 px edge, its box sized by the
server's width/height before it loads; a tap shows it whole. Markwon stays image-free.

Chosen over /v1/images/generations (models scope, which sign-in already asks): the in-chat tool
keeps the picture in the chat as the web does. A NEW chat cannot force a tool yet (POST /chats
takes no force_tool), so the option shows in an existing chat only -- server follow-up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 13:54:34 +00:00
HomerandClaude Opus 5.5 87d391c352 Memory screen: list, remember, change and forget over /api/v2/memories
CI / check (push) Canceled after 0s
Drawer › Memory (server f7f2ff2): GET/POST/PATCH/DELETE /memories. Newest first, plain text
(a model may have written it; marked with the Model icon), the data group shown when there is
more than one and offered when remembering a new one. A refusal (the limit, an empty text)
is the server's sentence. Every word from the server's catalogue. ContractTest reads
memories.json and memory.json; shots 28-memory (normal, small phone at 1.5x, empty).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 13:51:37 +00:00
HomerandClaude Opus 5.5 737105add2 Pinned chats and folders in the drawer: pin, move, new, rename, fold, delete
CI / check (push) Canceled after 0s
The web sidebar's order: Pinned chats (wherever filed), the folders as a tree (folderTree:
position order, a folder whose parent is missing goes to the top), then today / earlier /
agent chats unfiled. PATCH /chats/{id} `pinned` and `folder_id` (server 96240be, f7f2ff2);
POST/PATCH/DELETE /folders. A tap folds a folder through PATCH `collapsed`, so the web folds
the same. Long press: Pin chat / Move to folder / Archive; on a folder Rename / Delete (its
chats stay). Strings from the server's catalogue. ChatGroupsTest, ContractTest (folders.json,
folder.json); the drawer shot now has a pinned chat, nested and collapsed folders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 13:49:03 +00:00
HomerandClaude Opus 5.5 cd88c3e712 Scheduled-result notifications: first lines, a lock-screen version, Open / Run again
CI / check (push) Canceled after 0s
From the push's `notification` (server fd0a386): the task's name and the result's first lines
in BigTextStyle for an unlocked phone, setPublicVersion with the task's name and Finished /
Failed for the lock screen, and the actions with the server's labels in the owner's language.
Run again calls POST /schedules/{id}/run and needs the phone unlocked
(setAuthenticationRequired); Pause stays as it was. An older server's payload (no
`notification`) keeps the app's fixed sentences. ScheduleContractTest reads
push_schedule.json and push_schedule_failed.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 13:45:12 +00:00
HomerandClaude Opus 5.5 ad5c6ca12b Contract at server dev 3e6f6da: notifications, monitor mode, pinning, parity routes, queued
CI / check (push) Canceled after 0s
Re-pinned contract/ and the strings at the server's dev 3e6f6da (after f7f2ff2 parity routes,
96240be pinning, 00c209a monitor mode, fd0a386 scheduled-result notifications, a8a3733
progress gaps).

- Message.progress: a queued prompt draws the server's queued line ("2 ahead · 12s").
  loading_model and reading_prompt's tokens were already drawn (Progress.kt).
- Schedule.watch / ScheduleRun.watch: a watching schedule names its address on its page;
  `unchanged` runs are drawn quiet, as Unchanged.
- ScheduleRun.notification parsed (title, body, public, actions, labels) for the push work.
- The schedules frame's version hash moved (ScheduleContractTest).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 13:41:47 +00:00
HomerandClaude Opus 5.5 cb9ad78ee9 Archived chats: the list, and Restore chat
CI / check (push) Canceled after 0s
GET /api/v2/chats?archived=true a page at a time, from a drawer entry under
Scheduled; a tap opens the chat, Restore chat PATCHes archived=false and
refreshes the drawer. Shots 27-archived (+ small, large type) and -none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:14:25 +00:00
HomerandClaude Opus 5.5 0c77109a73 Update check: the public GitHub releases, daily on start and from Settings › About
CI / check (push) Canceled after 0s
ReleaseCheck reads api.github.com's list of this repository's releases over
plain HTTPS, compares with the installed version (a beta sorts below its
release; -debug is left off), and offers the newest one the person may have:
betas only to a beta install or with Include betas on. On start it runs at
most once a day while Look for new versions is on (default: on in a beta, off
in a release) and announces a version once, in a notification on its own low
channel that opens the release page. Check for an update works in both
builds; the full build's own installer stays for a found release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:11:42 +00:00
HomerandClaude Opus 5.5 fac9a3811a The chat's microphone follows Settings › Voice input, as the assistant does
CI / check (push) Canceled after 0s
usePhoneRecognizer() is the one rule for both: the phone's recogniser when it
was chosen and the phone has one (or the instance has no speech-to-text),
otherwise the instance's. With the phone's, the words go into the box as they
are said. The setting's explanation now names both users.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:08:26 +00:00
HomerandClaude Opus 5.5 a4116b11a8 Contract at server dev 5d7b79c: a new agent chat's Subagents setting
CI / check (push) Canceled after 0s
The server answers /models?kind=agent&device= (e888bc2, models_agent.json)
with `agent_subagents {offered, device_runs}`. A new agent chat reads it
for the device chosen (again when another is chosen) and shows the
Subagents setting exactly when it is offered; when the device's CLI does
not run subagents (`device_runs` false) the server's sentence says so
beside it. An older server says nothing and the setting stays hidden.

Strings at the same ref: every translatable string is translated in all
eight languages -- "Open slots" from the server's catalogue, the row's
"% context" from strings_own.json (the server words it as a sentence),
and `progress_line` (text · elapsed, symbols only) is no longer counted
as translatable.

ContractTest (models_agent.json), ChatStateTest, shot 07-tune-new-agent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 10:37:43 +00:00
HomerandClaude Opus 5.5 415dc653c3 Contract at server dev 2fd3c03: the tree frame, and a subagent asking
CI / check (push) Canceled after 0s
The server's /api/v2 now carries the 3.4.0 subagents (2fd3c03):
- the stream's `tree` frame {tree} (event_tree.json): LiveReply keeps it,
  ChatState keeps the last one after the reply ends (cleared when another
  chat opens), and the activity sheet draws it as the reduced list. The
  provisional `Activity.tree` is gone -- the tree never came that way.
- an ask item's `subagent {id, name, position}` (event_ask.json card4): the
  approval names it with the page's sentence ("Subagent parser (s1),
  reviews the parser, asks:"), translated from the server's catalogue.
- an agent chat's `subagents.offered` is true where the instance allows
  them (chat_agent.json): the Subagents setting shows for an existing agent
  chat by the chat's own word.

ContractTest: the tree frame, the subagent's card; the agent chat offered.
Screenshot 24-approval-subagent; 26-subagents from the tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 10:01:22 +00:00
HomerandClaude Opus 5.5 dff3aa67c0 Subagents (spec 3.4.0): the reduced list, coded to subagents.md §12
CI / check (push) Canceled after 0s
Android's share of the tree (§12): a row per agent -- name (id) and
position, the state word (loop.json team.read.states), the progress text
without the clock, context % (floor(used x 100 / window), as team_read
writes it) -- the main agent first, sub-managers' subagents indented under
them, the ended ones after, dimmed, and the open slots. A subagent's row
opens its conversation read-only through the agent route as a member, by
name; the main agent's is the chat.

The server has the tree (services/team.py tree_info, 98f053a) but no
/api/v2 shape for it yet: the app reads it as `tree` in the activity
(`Activity.tree`, null until the server sends it, and then the Tasks
section leaves the team members to the list). To be re-pinned and wired
to the real field when the server's fixture lands.

TreeTest (the §12 example), screenshot 26-subagents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 09:32:11 +00:00
HomerandClaude Opus 5.5 23e3c5431a Progress (harness spec 3.4.0): one line for what a reply is doing
CI / check (push) Canceled after 0s
The `status` frame carries `progress` {phase, since, ...} beside its
text from spec 3.4.0 (progress.md). The app draws it as
`{{text}} · {{elapsed}}` -- the shared texts as string resources, the
elapsed time ticking each second, `retrying`'s `in` counted down, the
text alone for stopped and failed -- under the reply and in the
assistant's sheet, and falls back to the free `status` text for a server
that does not send it, a phase it does not know, or a required field
missing. Under inspection the clock stands still (65 s), so screenshots
are stable and nothing animates forever.

Coded to the spec while the server's frame is being added. ProgressTest
runs the spec's own conformance cases (conformance/progress.json, copied
from LLeMbas CLI 3.4.0 until the server vendors it) against the English
in res/values; fetch-contract.py pins the server's copy as
contract/harness_progress.json once it is there. gen-strings.py takes
the server's translations of the `{{field}}` texts (its catalogues key
them by the spec's English), numbering the fields and doubling a lone %.
Screenshots: 04-writing with a rate, 04-waiting-for-model at 360 dp and
1.5x type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 09:05:41 +00:00
HomerandClaude Opus 5.5 490568a980 Contract at server dev 4b28b36: a device approval corrects its detail
CI / check (push) Canceled after 0s
The server's contract moved (2198eda, 94e5243): a device's approval has
the heading "Run a command" in `title` and the command in `detail`, which
is what an `editable` item corrects; it offers no free text and names the
asking subagent in `job`. The agent chat carries its real subagent facts,
and the chats list (`chats_listed.json`, new) says `subagents: null` --
read the chat.

The approval card draws the asker, the heading, "It says:" for the
model's purpose, the command in the box and the server's reason, with the
page's own sentences (from the server's catalogue). `approvalTexts` sends
a box only when its text differs from `detail`; an untouched or cleared
box sends nothing. ContractTest covers both fixtures; a screenshot of the
contract's approval and question cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 08:53:55 +00:00
HomerandClaude Opus 5.5 21e5de2d73 Assistant: a bottom sheet over the app, microphone first
CI / check (push) Canceled after 0s
Long-press power opened a full-screen window. The assistant is now a sheet
over the current app (see-through window, own dim): half height, drag the
handle up to full, down / Back / a tap outside to close (settle() decides,
unit-tested). Both ways in -- the voice-interaction session and AssistActivity
-- draw the same AssistSheetFrame + AssistSheetContent, the latter from state
alone for the screenshot tests.

- Microphone first: it opens listening (Settings switch), words shown as they
  come. LLeMbas voice input re-transcribes the recording so far every 1.2 s
  and a pause after speech sends it (RMS level + unchanged words; nothing said
  is discarded, never transcribed); the phone's recogniser gives partials
  itself (PhoneRecognizer: on-device, else another app's -- never the default,
  which is LLeMbas's own while it is the assistant; no Google library).
- Model and connection chip: picture, name, instance, online dot; a tap picks
  another model, kept in Prefs.assistantModel.
- Use screen: the AssistStructure text and/or screenshot, sent only with the
  next question after a tap; quick actions Summarise / Translate / Explain.
- Continue the last assistant chat; follow-ups stay in the same chat until
  New chat. Voice reply through the server's TTS (toggle; Read aloud).
- Open in app continues the same chat. A card waiting for an answer says to
  open it in the app.
- Help line: no wake word for a third-party assistant on stock Android.
- Settings: Voice input (LLeMbas = the instance's speech-to-text via the
  server; Phone = the phone's recogniser) with what each does with the
  recording, and "Start listening when the assistant opens".
- The session makes a fresh controller as it hides, so the next invocation's
  screen lands in the controller that shows it.

Screenshots 18-23 (the sheet over a chat), 08-settings at full length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 08:19:21 +00:00
HomerandClaude Opus 5.5 6ae5736ffd New chat: Chat or Agent chat, and how to link a computer
CI / check (push) Canceled after 0s
Agent chats were only reachable from the drawer, and with no linked computer a
new agent chat said one line. A new chat's page now starts with two cards on a
shared track, Chat and Agent chat, one line each, switching between the "new"
and "new-agent" routes. With no computer linked, Agent chat stays and shows the
web page's three steps (install the CLI, lembas login <this instance>, allow
remote work and start the service), each command in a code block with Copy,
and Check again (ChatActions.recheckDevices).

Screenshots: 01-new-chat (with the choice, small phone at 1.5x type too),
02-new-agent-chat-unlinked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 08:08:40 +00:00
HomerandClaude Opus 5.5 37cf778c44 Language: the account's by default, Settings › Language, per-app locale
CI / check (push) Canceled after 0s
The app followed the phone's locale, so a Slovak phone showed Slovak while the
instance and the account were English. Now the default is the account's
language from /api/v2/me (read once per instance in use, kept in Prefs), and
Settings › Language offers Same as my account / Phone language / each language
the app has, named in itself.

Android 13+: LocaleManager.setApplicationLocales, and android:localeConfig
(res/xml/locales_config.xml, written by gen-strings.py from LANGS) so the
system's per-app language lists the same set; a choice made there is adopted
as the person's. Older phones: the chosen tag in a small synchronous file,
applied in attachBaseContext of every activity and to the assistant's window.
No AppCompat: the framework API covers it.

LanguageTest holds the offered list, the values-* folders and the locale
config equal. Screenshot 17-language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 08:06:47 +00:00
HomerandClaude Opus 5.5 d3d78d2540 Subagents: one range slider, Min and Max, counting the chat's own agent
CI / check (push) Canceled after 0s
- The two Fewest/Most sliders become one Material 3 RangeSlider from 1 to the server's cap,
  whole agents with no tick per value, the values above it ("Min 1 · Max 4"), thumbs described
  Min and Max for TalkBack, theme colours only.
- The hint says what the numbers count: 1 is the agent alone, no subagents; Max 4 is the agent
  and up to 3 subagents. The options button says "Subagents: Min 1 · Max 4".
- Strings regenerated at server 90a47ba, all eight languages (pl also picks up the Podagenci
  wording strings_own.json already had).
- Shots: 07-tune at 411x2000, 07-tune-one-at-a-time at 1.5x type, 07-tune-alone (Min 1 · Max 1)
  at 360x2000 and 1.5x type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:05:35 +00:00
HomerandClaude Opus 5.5 0117c3e238 Subagents offered, named-only and capped by the server's word
CI / check (push) Canceled after 0s
- ModelInfo.subagents, ModelList.subagents_cap, Chat.subagents {offered, named_only, cap},
  Activity.subagents_offered, ContextUse.auto_compact/until_compact/compactable: all
  optional, so an older server still parses and the app falls back to its old guess.
- The Subagents setting: shown by offered, the one-request note when named_only, sliders
  from 1 to the cap (ticks up to 8), none at a cap of 1.
- Compact disabled when the server says there is nothing to compact yet.
- The context's number columns widen with the type (they touched at 1.5x).
- SubagentsTest; shots 07-tune-one-at-a-time and a tall 411x2000 for the activity sheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 17:04:44 +00:00
HomerandClaude Opus 5.5 0be487bf96 The activity sheet as the reference lays it out; Subagents by name
CI / check (push) Canceled after 0s
- ActivityContent(activity, …, actions): the sheet drawn from its facts, for the shots.
  Context with "N until auto-compact" and Compact; Background tasks as cards (running
  with elapsed and a stop square, nested "N under it", Finished folded); Room; Plan.
- A bottom sheet from a top-bar button on every chat, a new one included.
- The strip above the composer: running · queued · waiting · finished, while anything runs.
- Compact through POST /api/v2/chats/{id}/compact (provisional until the server's route).
- "Subagents" wherever a person reads it; 13 new strings in 8 languages.
- Shots 14-16 (activity, unfolded, new chat); ActivityTest for auto-compact and titles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 16:53:46 +00:00
HomerandClaude Opus 5.5 0982af8cfb Scheduled on the server's real routes: runs in full, the models, the push
CI / check (push) Canceled after 0s
api/Schedules.kt and ApiClient now follow /api/v2 exactly (src/lembas/api/v2/schedules.py):
the schedule's enabled/description/request/rule, a run's model object, error class and
text, waiting and retry, preview; compile returns ok/reason and the rule in words; a run
in full (GET runs/{run}, Markdown through Markwon); the scheduling models (GET/PUT) with
a tick per model; /events keeps the list current while it is on screen.

Notifications are built from the payload notify.py sends (ids, status, private, actions,
ask): VISIBILITY_PRIVATE with a public version, Open always, Pause when the server offers
it, a tap opens the run (switching to the instance it came from).

ScheduleContractTest reads all eight fixtures and the push payload; shots for the run and
the models screen, fakes shaped like the fixtures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:34:18 +00:00
HomerandClaude Opus 5.5 0e8897b7da A chat app's shape: new chat first, chats in a drawer, Scheduled
CI / check (push) Canceled after 0s
The app opens on a new chat (greeting, suggestions, composer) instead of a
list. The model is the top bar's title (picture, name, caret) and opens a
bottom-sheet picker with pictures, what each model can do and its levels.
Chats live in a navigation drawer: search, New chat, New agent chat, Files,
Scheduled, then Today / Earlier / Agent chats, Settings with the account at
the foot.

The transcript: the person's words in a bubble on the right, the model's
full width without one; thinking and each round of tools fold into chips that
open; fenced code becomes its own block with the language and Copy; attached
pictures are thumbnails; a breathing dot while a reply is written; Copy and
Regenerate under a reply, and a long-press menu (Copy, Select text, Edit,
Regenerate). The composer is one rounded field: attach (+), an Options
button that opens the tune sheet (Thinking switch or effort levels, team
size, Plan first or the agent's mode, and a new agent chat's device and
folder: only what the model offers), the microphone, and Send that becomes
Stop. Settings are Material 3 grouped lists.

Scheduled (phone first): the list (next run, last status, pause switch), a
schedule's page (rule, Run now, Pause, next runs, history with model and
Open), and create/edit in words with a preview before saving. Notification
channels Scheduled results and Scheduled failures, private on the lock
screen with a public version, actions Open and Pause. The /api/v2 routes are
provisional (api/Schedules.kt) until the server's contract lands.

Screens take their state as data (ChatContent, DrawerContent, SettingsContent,
Scheduled*Content), so the screenshot tests draw every one with fake data.
60 strings, in all eight languages. Unit tests for the fence splitter, the
drawer's grouping, the chat state the controls read, and schedule times.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 12:55:09 +00:00
HomerandClaude Opus 5.5 665ac44e5c Chats: the activity panel, the model's level control, team size, model pictures
CI / check (push) Canceled after 0s
The activity panel full screen (Context, Outputs, Background tasks with the
team's room, Plan), kept current from the events route, with a summary line
above the composer that opens it; an agent's conversation read-only and a
stop with confirmation. The effort control follows the model (none, a
Thinking switch, the picker); Agents fewest/most where a team is offered;
model pictures in the picker and the chat's title. gen-strings takes the
server's translation of a sentence with named placeholders (SERVER_ENGLISH);
all eight languages complete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:47:17 +00:00
HomerandClaude Opus 5.5 41dd3c893c 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>
2026-11-09 08:09:53 +00:00
HomerandClaude Opus 5.5 9abff4f170 Files: the person's tree, read-only, opened in the file viewer
CI / check (push) Canceled after 0s
A Files screen (the folder button beside Settings) lists GET /api/v2/files: folders and mounts
open as the next listing, back goes up one directory before it leaves, and a refusal keeps the
directory already shown with the server's sentence above it. A file opens in the existing viewer
through GET /api/v2/files/content, under the viewer's rules: Markdown through Markwon, code and
text as numbered lines, HTML as its source. A withheld file (not text, over 1 MB) says why in
the server's words and offers the web UI's /files/view.

The viewer is now one private Viewer with two doors: FileViewer(chatId, show) for a show card,
TreeFileViewer(path) for the tree. A 415 from the show route is the server's "not a text file".

Four strings, all already in the server's catalogues, so translated in all eight languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:48:10 +00:00
HomerandClaude Opus 5.5 fd1af60dbb Android 1.0 for server 2.0: the file viewer, and older servers refused
CI / check (push) Canceled after 0s
The show card. A tool call may now carry `show` (event["show"], harness spec 3.0.0): a file's
name, path, kind, line and which copy -- node and version in the chat's tree, or the copy a linked
device sent (shown_id). The transcript draws it as a card with Open; the viewer is a full-screen,
read-only dialog that fetches the text and opens at the named line. Markdown goes through the same
Markwon setup as a reply (rule 4); code, text and Markdown over 200 000 characters are numbered
lines in a lazy list, the number column measured from the file's longest number. HTML is never
rendered: no WebView exists in the app, so it is shown as source, and "Open in the browser" opens
the web UI's viewer, which renders it in its sealed frame. Copy takes the whole file.

The text comes from GET /api/v2/chats/{chat}/show?node=&version= (or ?shown=), plain text, at most
1 MB. That route is the app's half of a contract the server does not have yet: /api/v2 neither
publishes `show` on a tool call nor serves the file to a token. Until it does, the card does not
appear, and a viewer that meets a missing route says so and offers the browser.

Older servers are refused: the discovery document's device-link protocol must be 3 (LLeMbas 2.0),
at sign-in and, for an instance signed in to before, when the chat list opens. The protocol and
not the version string, because the server's dev still says 1.7.x before its first beta.

Also: gen-strings.py takes a server ref like the other two generators, so the strings come from
the same commit as the contract and the tokens rather than from a shared working tree; the
Reports notification channel goes (2.0 has no reports) and is deleted on first start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 04:31:07 +00:00
HomerandClaude Opus 5.5 4f09bc41bb LLeMbas for Android 0.1.0 (alpha, unreleased): the first commit
CI / check (push) Canceled after 0s
A native client for a LLeMbas instance on the server's /api/v2, and the
phone's digital assistant.

- Sign in by device code; the token sealed in the Android Keystore; several
  instances.
- Chats and agent chats: the list, a chat with its reply streaming as JSON
  server-sent events (reconnecting, whole blocks), thinking, tool calls,
  steered messages, the plan, jobs, stop, edit, regenerate, continue, the
  model, effort and Plan mode, attachments and dictation.
- Cards in a sheet, answered as the page's form says it; first answer wins.
- Notifications through UnifiedPush, no Google services; an approval can be
  answered from its notification.
- The digital assistant: a VoiceInteractionService with its session (a sheet
  over the current app, "Include screen" off by default), a recognition
  service through the instance's speech-to-text, the lock-screen path that
  asks to unlock before sending, a Quick Settings tile and an Ask shortcut.
- Share to LLeMbas; Moria and Shire from the server's tokens; nine
  languages; a self-updater in the `full` flavour, none in `fdroid`.

Generated and pinned from the server, each checked in CI: the theme
(tokens.lock.json), the contract (contract/lock.json, server 2124ba9), the
strings and the icons. Built and tested only on GitHub Actions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 13:44:30 +00:00