Files
openbot/docs/ARCHITECTURE.md
NorbertandClaude Opus 5.5 dfccf7179e Show agent and voice call Live Updates on Android (#20706)
* Show agent and voice call Live Updates on Android

Android phones now get the same live activities as the iPhone: the agent
activity (working, message, question, approval, takeover, failed and the
unread agents list, with buttons and links) and the voice call activity
(avatar, timer, mute, unmute and end). On Android 16 and later they show
as promoted Live Updates with a status bar chip. On older versions they
show as ongoing notifications.

While the app is in the background or closed, the host sends updates
through the account service to FCM, sealed with the same keys as the
iPhone pushes. A new optional Team API capability,
live-activity-push-android-v1 (protocol 10), gates the registration
routes. A host serves it only when it can relay Android updates.

While the Android app is in the background and the host has its push
registration, the app does not change a shown Live Update. The host owns
it, as on the iPhone. Before this, the app could end it with old unread
data, and the host update then had nothing to change.

The native module changes, so this needs a new store build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix Android Live Update review findings

- The phone no longer compares host push times with its own clock. A
  local update keeps the time of the last host push, so a phone clock
  that is ahead does not drop host updates.
- When the host ends the Live Update, the app no longer counts it as a
  user swipe, so a shown failure is not marked as dismissed.
- Settings shows Live updates on Android only when the binary has the
  native module, so an older store build with this bundle does not show
  a switch that does nothing.
- A stale Live Update is no longer ongoing, so the user can swipe it away.
- Mute and End on the voice call notification end it when the app is not
  running, so the buttons always have an effect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep a late host push from replacing a newer Android Live Update

The phone now saves the offset between the host clock and its own clock
from each host push that it accepts. A local update stores the estimated
host time, so a push that Android held back in Doze cannot replace a
newer local view. A phone clock that is ahead of the host clock still
does not drop host pushes, because the comparison uses host time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Start a new Live Update clock when the active host changes

The saved host clock offset and the last update time now belong to the
active host: each one records a hash of the host's seal key. After the
user changes the active host, the phone does not compare the new host's
push times with the old host's clock, so a host whose clock is behind
is not dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Translate the Android Live Update texts into Thai

Main added Thai after this branch added its Live Update keys, so the
translation check failed. This also translates the two media approval
keys that main added without Thai, because the check fails on them too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep the Android notifications switch text in its own privacy section

The new Android Live Updates section came in front of the last paragraph
of the Android notifications section. That paragraph is now back at the
end of its own section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:03:49 +01:00

4.6 KiB

OpenBot architecture

OpenBot is a Bun workspace with desktop, browser, and mobile applications, two Cloudflare Workers, a self-hosted Signal service, and shared packages.

The architecture notes are in one file for each topic: