fix(web): patch assistant-ui tap scheduler for bulk history prepends

Loading an older page prepends hundreds of messages in one flush. tap's
scheduler aborts after 50 dirty resources and drops the overflow, so the
thread never applied the merged page: the scroll-restore gate never
passed and the top sentinel kept re-triggering (loads everything at
once). Raise MAX_FLUSH_LIMIT 50->2000 via bun patchedDependencies.

Adds a Playwright regression spec driving the real message-window store
and HappyThread against a fake paginated API: one page per top
approach, scroll restored, no idle reloads.
This commit is contained in:
weishu
2026-07-28 19:39:32 +08:00
parent fcb56989d9
commit a469d66bc4
7 changed files with 316 additions and 0 deletions
+3
View File
@@ -37,5 +37,8 @@
"playwright": "1.60.0",
"react-devtools-core": "^7.0.1",
"vite-plugin-pwa": "^1.2.0"
},
"patchedDependencies": {
"@assistant-ui/tap@0.3.5": "patches/@assistant-ui%2Ftap@0.3.5.patch"
}
}