Repository navigation
test(evals): reconcile the cold-reload history-tail claim with the intended transcript load - #4792
Conversation
…on dismiss Base UI keeps a dialog popup mounted (and partially opaque) until its exit animation or transition finishes, so the restart prompt and the command palette stayed visible for 100-200 ms after Keep working / Escape. Hide the popup with display:none as soon as it is closed; Base UI then unmounts it on the next frame.
…snapping back to the tail
…nto e2e/history-browse-pageup
…nto e2e/find-reading-anchor
…e2e/find-reading-anchor
…Find opens or closes The find bar's clearance toggled padding-top on the scroll container. A padding change on the scroller is a scroll-anchoring suppression trigger, so the transcript shifted 48px under the reader with no scroll event and the persisted reading anchor stayed 48px stale. Render the clearance inside the content column instead; the browser anchors it and the controller re-saves the anchor.
…e/history-tail-after-reload-claim
…ong-history journey `de965e2b1` (#4695) deliberately fetches the session snapshot without a `limit`, so a cold open renders every message instead of the newest 140. The step written by #4614 still expected the bounded 97-row tail after `user.reload()` and failed once #4780 let the lane reach it. Re-express the claim as `toEqual(world.history)`, keep the reading-anchor restore and the tool-link checks, and keep the engine's `?limit=140` page as the negative witness: it still lacks the oldest turn that the reopened surface must show.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Warden review summary — ClearNative findings: 0. 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 (4431 ms), confidentiality-review (2888 ms), spec-provenance-review (29281 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 (d73d91cdf7b132a1f314ee3962ea740806c5621a). 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 |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (f6c8e773fdce0d78e8058ce22603556c990f1824). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Resync against
|
|
Dev control for the test 2 red — |
Pick up #4888 so ci-tests.yml's packaged Fast module step finds its test file. Signed-off-by: Guillaume Loret <[email protected]>
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (25b21f5ae796594f53acc56d85f9b1e99032408c). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Root cause
Triage cluster 7/K follow-on (
reports/e2e-red-2026-09-09/triage.md, "Dismiss-then-notSeeraces" → #4724 → #4742 → #4780 → this). Once #4780 letstreamed-markdown-answertest 3 (v1 keeps long tool-rich history…) pass its Find-anchor and conversation-switch steps, the lane reached the last step,cold reload keeps the bounded history tail ordered…, for the first time and failed onexpect(await orderedHistory()).toEqual(retainedHistory): the reloaded surface shows all 150Settled historyrows while the spec expected the 97-row tail of the engine's?limit=140page.The claim is stale, not a regression. It was written by
4d0e30ab6(#4614, Sep 8) when the session snapshot was fetched withlimit: 140.de965e2b1(#4695, Sep 9, "load the whole transcript when opening a session") deliberately dropped that limit — the PR description states OpenCode pageslimitas the newest n messages with no "load older" path, so any longer conversation opened mid-way; cursor-based "load older" + virtualization are named as a follow-up, not part of the fix. Confirmed in code:session-surface.tsx:1283now callscomposeNativeSessionSnapshot*with{ signal }only (comment "Nolimit…"); the remaininglimit: 140calls live inglobal-queue-drainer.tsand are status-only probes that never render messages. #4695's own journeysession-full-history-on-openasserts the same 150-of-150 behaviour on a cold open.What changed
evals/specs/streamed-markdown-answer.e2e.test.ts, one step (spec only, no product change):cold reload restores the whole ordered transcript, the reading position and old and new tool links.expect(await orderedHistory()).toEqual(world.history)replaces the bounded-tail expectation; theretainedHistoryderivation (and its< world.history.lengthcheck, which after fix(app): load the whole transcript when opening a session #4695 only described the raw API) is gone.?limit=140page stays as the negative witness: it is still 140 long and still lacksworld.history[0], while the reopened surface must show that row — this is exactly the product decision fix(app): load the whole transcript when opening a session #4695 made, stated in a comment.expectReadingPosition()afteruser.reload()(anchor restore ≤ 2 px, neighbour session's saved scroll untouched), the single-occurrence checks for the prompt/closing sentinel, the palette target checks for old and new tools, andnotSee(/Something went wrong/).Stacked on
origin/e2e/find-reading-anchor(#4780, which already carries #4724 and #4742) via a merge commitbe8612285on top oforigin/dev; their files are untouched here. Once #4780 lands this PR reduces tod73d91cdf.Proof (Daytona, sha
d73d91cdf7b132a1f314ee3962ea740806c5621a,OPENWORK_EVAL_REFpinned — sandbox logHEAD is now at d73d91cd test(evals): expect the whole transcript…)pnpm evals:e2e streamed-markdown-answer --daytonaPlacement line:
{"command":"evals:e2e","lane":"e2e","daytona":true,"placement":"daytona","engine":"legacy","surface":"legacy","case":null,"vision":"defer","files":["streamed-markdown-answer"],"passed":2,"failed":2,"skipped":0,"skips":[],"consented":["OPENWORK_EVAL_E2E_TESTS"],"verdict":"failed"}→ passed 2 / failed 2 / skipped 0.
sending clears the composer…—Timed out after 500ms seeing composerwith the draft still present after send; triage Cluster 1/B, owned by fix(app): keep a brand-new session sendable while its first snapshot loads #4757, unchanged here.a streaming answer renders as markdown…—Target remained visible: "Preparing the formatted response."; Cluster 1/B (fix(app): keep a brand-new session sendable while its first snapshot loads #4757), unchanged here.v1 keeps long tool-rich history…— 419 s, all 8 steps green (test-run.json, run2026-09-10T14-16-07-566Z,gitSha d73d91cd…,outcome: passed):the live cache retains history older than the native 140-message snapshot(17.2 s)sending from older history reveals the exact latest user row above the composer without Jump to latest(1.5 s)new tool output becomes accessible without losing old targets while text grows(48.8 s)passive streamed output does not jump away from the history being read(56.3 s)settled history and the advancing answer never disappear or duplicate(0.5 s)choose a reading message inside the retained history tail(0.9 s)switching conversations preserves the reading position, full cached history and scoped targets(28.3 s)cold reload restores the whole ordered transcript, the reading position and old and new tool links(14.6 s) — the re-expressed step; anchor restored afteruser.reload(), 150/150 rows, both tool targets present.CONT-01 restores the exact cumulative prefix…(82.7 s).Verdict for this PR's claim: Passed (observable passing assertion for the cold-reload step including the anchor restore). File-level verdict for
streamed-markdown-answerremains Incomplete because of tests 1–2 (#4757). All 7 sandboxes from this run (…-28574) were deleted by the testkit (verified withdaytona sandbox list).The "Starting OpenWork — reload to try again" stall #4780 saw right after
user.reload()did not reproduce in this run (step 8 completed in 14.6 s), so there is no screenshot to attach.Also:
git diff --check origin/dev...HEADclean.pnpm --dir evals typecheckexits 2 with 389 errors, all inpackages/email/apps/app(--jsx, TS2835 extension rules) and none inevals/specs; a cleanorigin/devcontrol worktree produced the identical 389 errors — pre-existing, not touched.Noticed, not touched
notSeeof "Preparing the formatted response") — fix(app): keep a brand-new session sendable while its first snapshot loads #4757's scope.the live cache retains history older than the native 140-message snapshotstill reads as if the cache were what saves the older rows; after fix(app): load the whole transcript when opening a session #4695 the renderer simply fetches everything. Its assertions are still true, so I left the wording alone.pnpm --dir evals typecheckhas been red ondevfor reasons outsideevals/(see above); worth a separate owner if it is meant to gate anything.jumpToLatestsmoothJumpwindow; redundantprobe.eventuallywaits in the palette specs) still stand.