Design: whose page a fence is, a report's conversation, ids from outside; Assistant: the wake outside its loop, the opener, the record
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2 files changed
+38
-14
No files matched your search
+23
-10
@@ -182,16 +182,29 @@ what Settings › Assistant › *Wake word* turns on (off by default).
|
||||
the sheet opens). An activity started from the background is blocked **without an exception**,
|
||||
so `startActivity` succeeding proves nothing. Settings says that only the digital assistant app
|
||||
opens by voice over other apps.
|
||||
- **What was tried is written down** (`wake/WakeLog.kt`): `wakeWay` picks the first way --
|
||||
the session (service connected, screen on), the sheet's activity started *through the
|
||||
assistant service* (connected, screen off: a session's window wakes nothing, the activity has
|
||||
`setTurnScreenOn`), the activity (app on screen), or the notification -- and a `WakeAttempt`
|
||||
keeps the outcome: `opened` (only once a sheet says it is up, `AssistLink.shown`, within
|
||||
2.5 s), `not_connected` (`LembasAssistService.current` was null), `refused` (the exception),
|
||||
`no_sheet`; with whether the role was held and when `onReady` / `onShutdown` last came. The
|
||||
last five are in `Prefs.wakeLog`, logged under `LLeMbasWake`, and shown as **Last wake**.
|
||||
Settings also says when LLeMbas holds the role but the service is not connected. A further
|
||||
way of answering (by voice, without a sheet) would be one more `WakeWay`.
|
||||
- **Answering the word runs beside the listening, never inside it.** `WakeListener` hands
|
||||
`heard` to the scope around the loop, and the service runs the wake on the app's own scope:
|
||||
the wake's first step pauses the listener (the sheet takes the microphone), which cancels the
|
||||
loop that heard the word -- a wake run in that loop was cancelled by its own first step.
|
||||
- **`WakeOpener`** (`wake/WakeLog.kt`, tested without Android) holds the order: wait up to 1 s for
|
||||
the connection when Android says the service is active; the session (connected, screen on) or
|
||||
the sheet's activity (connected, screen off: it has `setTurnScreenOn`); "opened" only once a
|
||||
sheet says it is up (`AssistLink.shown`; the activity from `onStart`/`onNewIntent`); a session
|
||||
that was not refused gets a second wait before anything else is shown, and when it does come
|
||||
late it closes a sheet the wake word opened in its place (never two); then the activity where
|
||||
Android will start it (service connected, or app on screen); else the notification.
|
||||
- **The record** (`WakeAttempt`, last five in `Prefs.wakeLog`, logcat `LLeMbasWake`, shown as
|
||||
**Last wake**): time, phrase, way, outcome (`opened` / `not_connected` / `refused` + the
|
||||
exception / `no_sheet`), fallback, ms until the sheet; role held, `isActiveService`,
|
||||
`FEATURE_VOICE_RECOGNIZERS`, screen on, locked, app visible; the service's `onCreate`,
|
||||
`onReady`, `onShutdown`, `onDestroy` times; whether the connection was waited for;
|
||||
`onPrepareToShowSession` / `onShowSessionFailed` (Android 14+); a later `onReady`.
|
||||
- **Role is not service.** Holding the assistant role does not make Android use the service: it
|
||||
resets `voice_interaction_service` at start-up when no accepted recogniser is set, and the
|
||||
long press then opens `ACTION_ASSIST` as a screen. Settings says so (`isActiveService` false
|
||||
with the role held) and sends the person to choose LLeMbas again.
|
||||
- **The pause counts sheets truly**: a session once per show (`onShow` may come twice, `onHide`
|
||||
once), the activity from `onStart` to `onStop`.
|
||||
- **The engine wants a pause after the phrase**: with `numTrailingBlanks = 1` it triggers once
|
||||
more than one blank frame follows (about 80 ms). Settings and the test row say so.
|
||||
- **Starts and stops**: nobody calls `stopService`. Stop (the switch, the notification's button)
|
||||
|
||||
+15
-4
@@ -135,10 +135,21 @@ From LLeMbas 2.0.0-beta.12 a schedule's run does not answer into a chat: it file
|
||||
`report`) is read either way (`idOf`).
|
||||
|
||||
**A page in an answer is not drawn** (`pages.md`; the owner's decision: no web view in the app).
|
||||
`splitFences` turns an `html-view` fence -- closed or still being written -- and the server's
|
||||
`[page: Title]` line into `Segment.Page`, and a `page` step is the same thing: `PageCard` says
|
||||
*This answer has a page: …* and where to open it. The source is never shown; Copy, Share and
|
||||
read-aloud take `pageProjection`. The chat's settings offer no HTML switch.
|
||||
Which fence is a page is the server's to say: a text step with pages carries `pages` and `text`
|
||||
(each page the one line `[page: Title]`), a report likewise; the app draws that text
|
||||
(`Step.shownMarkdown`, `Report.text`) and `splitFences` turns the line into `Segment.Page` ->
|
||||
`PageCard`. An `html-view` fence the server does not list is an ordinary code block. Only the
|
||||
open step of a streaming reply takes the fence for a page (`splitFences(pages = true)`), so a page
|
||||
being written is not source scrolling by. The chat's settings offer no HTML switch, and a chat
|
||||
the phone has written into is offered no pages by the server anyway.
|
||||
|
||||
**A report's conversation** is a chat of `kind` `report` with `report {id, title}` and
|
||||
`controls` (what may be done to it). Its first row is the server's (`role` `user`, `machine`):
|
||||
`drawn()` leaves it out there, and draws any other `machine` user row as a quiet note
|
||||
(`MachineNote`), never as the person's bubble.
|
||||
|
||||
**Ids from outside** (a push payload, an intent's extra) pass `safeId` before they become a
|
||||
route. A push of an unknown `kind` shows nothing.
|
||||
|
||||
## Signing in
|
||||
|
||||
|
||||
Reference in new issue
Block a user