AnyBot/docs
王性驊 668876a9d9 feat: 手機連線韌性與只傳差異(逾時重連、自動重送、keep-alive、gzip)
手機頁面
- 每個請求都有逾時;網路斷掉、回到前景、網路恢復時立刻重連,失敗用退避等待
- 標題列下方「連線中斷,正在重新連線…」,連上自己消失;背景請求的「連不上」不再另外跳提示
- 傳訊息帶 id,斷線時自己重送(最多約一分鐘);重送中寫「網路不穩,重新傳送中…」,不給手動重送按鈕
- 記住這台是不是走帳號伺服器,hello 一時失敗也能照樣開

大腦(remote.rs)
- /send 用 (Bot, id) 認重送,十分鐘內同一則只收一次
- /api/state 帶 ssig 只回有變的欄位、沒變的 Bot 只回 {id, same};chat 帶 chat_delta=1 只回從哪裡開始不一樣
  (都是選用參數,舊頁面照舊拿整份)
- 直接連線:連線保留(keep-alive)、文字回應 gzip、頁面 ETag/304

帳號伺服器(relay)
- 轉送手機的請求時,電腦的回應也壓縮傳輸(要重新部署 relay 才生效)
- 頁面 ETag/304

feature-map:phone.md 新增 phone-net(斷線又回來、只傳有變的);account.md 補壓縮。FEATURES.md 同步。

已驗證: cargo test 728 通過(含 featuremap::、layout_audit::);relay cargo test 23 通過(two_factor_codes_recovery_once_and_logout_everywhere 跑一次跨到 TOTP 時間窗偶發失敗,單跑 4/4、全套重跑 2/2 都過,跟這次無關);verify-anybot 跑完 phone.md 全部步驟和 account.md 直接連線步驟:關掉大腦時提示出現、斷線時傳的那句在大腦回來後自己送到且假模型只收到 1 次、提示自己消失;頁面 299,940→96,872 bytes(gzip)、If-None-Match 回 304、curl 重用同一條連線、ssig 差異回 [true,false,false,true]
未驗證: 帳號伺服器實機路徑(要部署 relay 和 Caddy,只有 relay 單元測試蓋到壓縮來回);真 iPhone 的背景切換和 Wi-Fi/行動網路切換(要實機手機);CLAUDE.md 的乾淨脈絡獨立審查還沒跑

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-19 18:52:03 +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 feat: 手機連線韌性與只傳差異(逾時重連、自動重送、keep-alive、gzip) 2026-11-19 18:52:03 +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