Repository navigation
perf(chat): use TanStack Virtual for transcript windowing - #5089
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
Warden review summary — ClearNative findings: 2. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (111468 ms), confidentiality-review (141387 ms), desktop-den-sync-review (144607 ms), design-spec-review (179656 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (b47561cd42866e353d04534b4ead26b15a8a6312). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (21f0d7cc3b133f9ec056ec29de7b6f5293b63263). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
21f0d7c to
2f2cec7
Compare
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (2f2cec7e9961ff3b50c3b29c7c4051d6d2388bd8). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Summary
Use the repository's existing
@tanstack/react-virtual3.13.23 to calculate and measure the conversation's mounted window instead of maintaining a custom visible-range algorithm. There is no dependency upgrade or supply-chain policy exception in the final diff.useVirtualizerranges, stable message-group keys, measured row sizes, two-group overscan, and normal-flow placeholders.No OpenCode, attachment-storage, or image-fetching changes. Whole-group virtualization and deliberate interaction retention remain boundaries: one oversized group or many retained interactions can still contain substantial DOM.
Validation
At
2f2cec7e9961ff3b50c3b29c7c4051d6d2388bd8:pnpm --filter @openwork/app exec bun test --isolate tests/progressive-message-list.test.tsx tests/session-scroll.test.tsx: 102 passed, 0 failed, 643 assertions.pnpm --filter @openwork/app typecheck: passed in a clean installed tree at the exact head. An existing local installed tree had conflicting React 18/19 type hoisting; a clean full frozen base install passed, and switching that clean tree to the candidate also passed without package changes.Real Electron journey on Daytona
1 passed, 1 failed, 0 skipped. Runner, prepared sandbox, and post-run source matched the exact head. The temporary environment was deleted and its absence verified.
Screenshots
Real Electron captures at
2f2cec7e9, 1180×820, using synthetic stored messages. These demonstrate the rendered interface, not a pass for the remaining row-retention assertion.Latest messages after cold opening
Original reading boundary after loading an older page
UI/UX impact
None — existing visuals and controls preserved. Paging now consistently saves the intended restored reading anchor. DESIGN P5: existing message primitives and scroll/interaction behavior are retained. DESIGN P10: current-head real-size screenshots are attached above. Screenshots supplement, not replace, the runtime assertions.