AnyBot/docs
王性驊 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
..
demo docs: README 重寫——跟上這一週的功能,圖從現在這版重拍 2026-11-18 08:10:55 +08:00
en version_0_1_1-alpha 2026-11-11 16:19:06 +08:00
feature-map perf: 手機頁面存在手機上、看過的聊天只拿差異、連線畫面改成頭像動畫 2026-11-20 08:05:23 +08:00
specs Rewrite decompilation comments as behaviour specs; move reverse-engineering docs out of the repo; drop third-party marks from UI strings (i18n tables synced) 2026-11-09 16:37:33 +08:00
architecture.md 傳送: a file or a few words from any device of the account to any other 2026-11-11 10:04:13 +08:00
install.md design: Bot 的電腦的桌面也換成思源黑體(第 14 版),拿掉粉圓 2026-11-16 22:18:32 +08:00
memory.md 記憶: each bot keeps its own, remembers like a person, and decides for itself 2026-11-11 09:35:59 +08:00
multi-device.md 隧道長連線也走迴圈位址:自己連自己不再绕 tailnet(體感最後一段) 2026-11-19 16:13:04 +08:00
plan-2026-11-computer-use.md Plan: smoother computer use and box logins that survive a rebuild 2026-11-06 22:06:49 +08:00
plan-2026-11-engineering.md refactor: 工具呼叫改成 TurnTool trait:28 個工具照原本的順序排成一張清單,不再是一長串 if 2026-11-17 13:43:57 +08:00
plan-2026-11-improvements.md 記憶: a page to see it, a few lines picked while typing, a local model 2026-11-11 07:46:50 +08:00
protocol.md 傳送: a file or a few words from any device of the account to any other 2026-11-11 10:04:13 +08:00
readme-style.md Readmes: the shape top-starred projects use, and no more overflow 2026-11-10 14:14:27 +08:00
release.md make, README and docs: build and install from source 2026-11-04 22:16:45 +08:00
skills.md version_0_1_1-alpha 2026-11-11 16:19:06 +08:00