Repository navigation
fix(chat): preserve paginated private conversations during refresh - #1359
Conversation
detna-vibe-coding
left a comment
There was a problem hiding this comment.
草稿預審/CI 診斷(8036e8cea):Verify 44093270490 已有兩組具體失敗,暫不核准,不改 Draft 或代替作者重跑。
-
runtime partition 7 / job 134074322227:chat-sticker-send.test.ts 為 40 過、17 敗。此測試的 historyHarness 會擷取真正的 rereadAfterWrite;新版函式新增 convMoreInFlight.current,但 harness 沒有注入 convMoreInFlight。獨立以 Node VM 執行這段函式,在 convInFlight.current === null 時確實得到 ReferenceError: convMoreInFlight is not defined;補上 {current:null} 後同一段可執行。請補齊 fixture 後重跑完整 57 例,保留延遲 ACK/收回內容與請求次數斷言。這項局部重現不等於已證明全部 17 例只有此原因。
-
UI shard 1 / job 134074321961:direct-list-render.spec.ts:58 的 phone 與 compact 在 p33 移到第一列後,p32 的 toBeFocused 失敗;desktop 通過,該 shard 共 692 過、2 敗。請先核對 frozen clock 與 switchPane 的 requestAnimationFrame:測試 pauseAt 後按返回列表,接著自行 focus p32,直到 runFor(8100) 才推進時鐘;返回列表排定的 rAF 可能此時才聚焦列表標題。這是來源推論,尚未以 trace 證實,不能直接判定產品焦點恢復失效。建議先等待/推進 pane 切換的 rAF、確認列表焦點穩定後再設定 p32,仍保留重排後焦點及 scroll anchor 驗證。
本輪沒有合併或發布。
detna-vibe-coding
left a comment
There was a problem hiding this comment.
草稿增量複審 88619b8:前次兩組 CI 失敗已排除。8036e8cea → 88619b8 僅三個測試檔變更,補齊 VM fixture 的新 refs/輪詢常數,並在設定 p32 焦點前推進 pane 切換 rAF、確認列表標題已取得焦點;原重排後焦點、scroll anchor、40 筆清單、收回預覽和草稿保留斷言均保留。
核對 GitHub Verify 44104968971:21 個 jobs 全部 success,包含 8 runtime partitions、runtime-aggregate、4 UI shards、ui-e2e 和 verify。chat-sticker-send 為 57/57;UI shard 1 為 694/694,direct-list-render 的 desktop、phone、compact 三案全過。CodeQL 44104969076 success。
PR 仍為作者 Draft,本次只回覆修正驗證,未轉 ready、未正式批准、未合併或發布;未宣稱真機 iPhone 驗收。
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
detna-vibe-coding
left a comment
There was a problem hiding this comment.
正式複審 88619b8:作者已轉 ready,head 與前次增量驗證相同。核對完整變更及既有修正證據,已載入視窗刷新、分頁請求競態、帳號/session 世代隔離、部分失敗時收回預覽清理,以及 keyed row 焦點/捲動保持均有相應檢查;未發現新的阻擋問題。最新 Verify 44104968971 與 CodeQL 44104969076 均 success。沿用前次同一 head 的 21 job、貼圖 57/57 和 UI shard 1 694/694 驗證,不將真機 iPhone 或部署驗收視為已完成。核准來源變更,未執行合併或發布。
問題與修正
私訊展開第二頁後,背景更新只重抓 20 筆並取代整份清單,也可能讓正在進行的「載入更多」失效。現在更新已載入的範圍(40 筆仍只需一次請求),等待進行中的下一頁,重新驗證預覽及已收回訊息,並以可見的對話列還原焦點與捲動位置。更深的清單分批更新並拉開週期;既有 offset API 在排序同時變動時仍可能暫時出現缺口,下一輪可重新核對。不改 API、資料庫或發布設定。
驗證
6ffa0d5169dc0e4cc8c85dd94ddacea2ec0f0de2;本機驗證與送出檔案的 Git tree 相同。npm run build通過。check:pr:contracts:build、typecheck、module:check、check:runtime-text、git diff --check 通過;未設標準測試資料庫,未執行完整 DB 檢查。Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.