Repository navigation
perf(chat): keep long conversations in a bounded rendering window - #5082
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
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 (57177 ms), confidentiality-review (115971 ms), spec-provenance-review (194572 ms), desktop-den-sync-review (144482 ms), design-spec-review (164549 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 (11247b26e1ae3a4464ea8a9319d8a2b906d064f9). 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 (aa469e8baedcc3a36bb76696d98ea84bbb11b884). 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 (4d5051eb5aaf303c805626bc675e95555f29c480). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Summary
Long conversations previously mounted additional message groups until the entire transcript stayed in the DOM. Keep only a measured viewport window so scrolling through history does not retain every previously visited row.
Review fixes
Testing
Current head:
4d5051eb5. The fixes were pushed normally on the existing base; no rebase or history rewrite was performed afterdevadvanced in a separate file.Passed:
pnpm --filter @openwork/app exec bun test --isolate tests/progressive-message-list.test.tsx tests/session-scroll.test.tsx— exit 0; 81 passed, 0 failed, 0 skipped; 472 assertions. Run on the product change ataa469e8ba; the subsequent commit changes only the E2E assertions. Component coverage includes 1,600 groups, tall viewports with short rows, old-node removal, cached heights, width changes, prepends, reserved history, Find, streaming, optimistic/native identity, focus/selection/disclosure state, and Strict Mode cleanup.pnpm --filter @openwork/app typecheck— exit 0 on the product change; product source is unchanged by the final test-only commit.pnpm --dir evals typecheck— exit 0 after the final assertion changes; 473 eval source files checked.git diff --check— exit 0.Local preview and screenshot:
aa469e8ba, with fresh browser state and 150 synthetic messages stored through the real native engine. No provider request or paid infrastructure was needed.Other checks and gaps:
session-full-history-on-openruntime journey was not run. The screenshot is supplementary and does not establish Electron, cold page restoration, native scroll anchoring, or the full paging journey. No new paid infrastructure was authorized.pnpm --dir evals lint:layersrun exited 54, reporting 54 violations outside the changed files.node evals/scripts/spec-channel-ratchet.mjsandnode evals/scripts/spec-boundary-ratchet.mjsruns exited 1, reporting violations outside the changed files. No baselines were changed. These failures were not reproduced in a clean-base control and are not classified as pre-existing.UI/UX impact
None — existing visual design and controls are preserved. The fixes restore paging and navigation readiness without adding controls or interaction styling. DESIGN P5: reuse existing message primitives and scroll-anchor machinery. DESIGN P10: the real-size screenshot below shows the bounded conversation at its first message.
Captured at
aa469e8ba, 1280×900, local app-web with 150 stored synthetic messages. Product source is identical at4d5051eb5; that later commit strengthens tests only. This image illustrates the real UI, not full runtime-proof coverage.Limitations
Windowing operates on whole groups, not individual nodes inside a very large message. The latest/priority groups, active focus or selection, and deliberately changed disclosure states are retention exceptions; Find temporarily mounts all groups. Retained interaction exceptions can grow with explicit interactions, so this is not a hard constant cap on total DOM nodes. No merge, release, or deployment is included.