AnyBot/mobile
王性驊 fe361c5b76 perf: 手機頁面存在手機上、看過的聊天只拿差異、連線畫面改成頭像動畫
正式站這條線只有約 25–50 KB/s,每次打開都重抓頁面和圖示、換聊天就整份重拿。

- Service Worker(mobile/sw.js,帳號伺服器和直接連線都送、一律註冊)把頁面、圖示、
  manifest 存在手機上,打開時直接用;背景帶版本標記問一次換版沒。換了:還在連線畫面就
  重新載入(通知帶來的聊天和回答照樣用上);已經進去的話,App 退到背景、手上沒東西
  (沒打字、附件、送到一半的請求、錄音、選單、選照片)才換,回到同一個聊天。重新整理一定
  先問伺服器。只碰那幾個固定的檔,API、發布的網站、下載、看畫面(novnc.js)都不經過它。
- 看過的聊天記在頁面裡(最多 12 個,每台電腦各自記,還沒送到的那句不記,登出清掉);
  回到它先顯示上次的,再用 api/bots/<id>?chat_sig=…&chat_delta=1 只拿有變的(大腦這條
  路徑現在支援,舊頁面不帶參數照舊整份)。
- 登入過的手機打開時,api/hello、relay/me、第一份狀態同時出發(還是拿到狀態才進去);
  網路切換時那個先出發的請求會被叫停重問。
- 連線畫面不再是兩行字:打開 App 時的頭像留在正中間呼吸、外圈漾開;讀螢幕軟體唸
  「正在連線」,減少動態時不動。
- FEATURES.md、docs/feature-map/phone.md 同步,phone.md 多兩條 verify-anybot 步驟。

已驗證: cargo test(主程式 756,含聊天差異與 sw.js 的新斷言;帳號伺服器 24);
verify-anybot 手機區:還沒連上就在外面、清單和選單、聊天、頁面存在手機上、回到看過的
聊天(兩個 Bot 切換)、只傳有變的、斷線又回來;另用 DevTools 實測:擋住狀態時發現新版
會在連線畫面重新載入且保留 #bot=1、進去後有字不換/清空後退到背景換上同一個聊天、
選檔案時不換、連線畫面淺色深色截圖無文字、減少動態時不動;兩輪獨立審查,P1 與 P2 都已修。
未驗證: 真的 iPhone/Android(主畫面 App 的退到背景、Safari 的 Cache Storage)——要實機;
正式站的實際秒數——部署後再量。帳號伺服器的兩步驗證測試偶爾在 30 秒邊界失敗(原本就有,
單跑四次都過)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uirha5JgTkqJjkgMtrEXrn
2026-11-20 08:05:23 +08:00
..
badge-96.png feat: 電腦版不再破版、通知用 AnyBot 的貓、手機網頁像 App;從帳號看畫面不再斷線 2026-11-16 00:06:12 +08:00
icon-180.png 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
icon-192.png 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
icon-512.png 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
icon-maskable-192.png feat: 電腦版不再破版、通知用 AnyBot 的貓、手機網頁像 App;從帳號看畫面不再斷線 2026-11-16 00:06:12 +08:00
icon-maskable-512.png feat: 電腦版不再破版、通知用 AnyBot 的貓、手機網頁像 App;從帳號看畫面不再斷線 2026-11-16 00:06:12 +08:00
icon.svg 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
index.html perf: 手機頁面存在手機上、看過的聊天只拿差異、連線畫面改成頭像動畫 2026-11-20 08:05:23 +08:00
manifest.webmanifest 合併: 手機網頁的改良(web-pwa-polish):新訊息進場、iOS 鍵盤、觸感、主畫面捷徑、通知上直接允許/拒絕 2026-11-17 13:54:10 +08:00
novnc.js People watch and help on the bots' computer through VNC (noVNC), carried by the account server 2026-11-05 23:05:44 +08:00
screen.html design: 手機網頁顏色跟著電腦版、改成 Claude 手機 App 的感覺,實點修好 12 個問題 2026-11-16 23:16:38 +08:00
sw.js perf: 手機頁面存在手機上、看過的聊天只拿差異、連線畫面改成頭像動畫 2026-11-20 08:05:23 +08:00