AnyBot/mobile
王性驊 6c0c4d7ecd Watching and using the bots' computer from afar: pictures as the screen changes, input through a lasting shell
- One lasting docker exec takes the desktop as a JPEG inside the box and sends a picture only
  when it changed (quicker while it changes, slower while still). Viewers ask for the picture
  after the one they have and get it at once. It was one exec per picture (a 1 MB PNG decoded
  and encoded again on the brain) and a fixed 0.7 s / 1 s pause: about one picture a second.
  Measured on the Mac's box: first picture 45 ms, ~90 KB (was ~1.1 MB), 9–19 pictures a second
  while it changes; viewers take at most ~8 a second over the network.
- The loop in the box ends the one before it, ends itself when a write fails ("0" lines while
  still) and is ended when nobody watched for 10 s (ending docker exec on this side left it
  running in the box).
- The person's clicks and keys go through one lasting shell in the box (text as base64), not a
  docker exec each.
- Answers over the lasting connection keep their headers (the relay dropped them): a picture's
  number reaches the app. JPEG/PNG/PDF/zip bodies are no longer deflated again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:34:36 +08:00
..
icon-180.png One AnyBot icon everywhere; the phone page fills the screen and shows the app's bot faces 2026-11-05 19:20:29 +08:00
icon-192.png One AnyBot icon everywhere; the phone page fills the screen and shows the app's bot faces 2026-11-05 19:20:29 +08:00
icon-512.png One AnyBot icon everywhere; the phone page fills the screen and shows the app's bot faces 2026-11-05 19:20:29 +08:00
icon.svg One AnyBot icon everywhere; the phone page fills the screen and shows the app's bot faces 2026-11-05 19:20:29 +08:00
index.html Watching and using the bots' computer from afar: pictures as the screen changes, input through a lasting shell 2026-11-05 22:34:36 +08:00