Repository navigation
feat(dashboard): Open linked rows from the page around them - #2727
Merged
Merged
Conversation
Co-Authored-By: BYK <[email protected]> Co-Authored-By: BYK <[email protected]>
Co-Authored-By: BYK <[email protected]>
Co-Authored-By: BYK <[email protected]> Co-Authored-By: BYK <[email protected]>
The transcript scrolled to the bottom after the event log showed a linked row, so the row was out of view. A link at open now owns the first scroll position. The e2e tests check the row is in view and take screenshots. Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
11 screenshot changes — 7 changed · 4 added · 0 removed Review screenshots in Frameshift |
A link that the cached latest page held never set the link start, so a far-behind reader still paged to the read position and lost the row. Co-Authored-By: BYK <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 95d92c3. Configure here.
BYK
approved these changes
Nov 5, 2026
BYK
added a commit
that referenced
this pull request
Nov 5, 2026
…2732) Follow-up to #2727 (Bugbot [r4479326810](#2727 (comment))). Part of #2568. A link at open keeps the scroll position, so the transcript stays at the linked row. If the link failed (for example, an unknown Turn returns 404), `dropLink` cleared `startAtLink`, but bottom pinning had already started for that Conversation and did not start again. A cached transcript then stayed at the top, not at the "New" marker or the latest message. The start is now keyed on the Conversation and on whether it started at a link. A dropped link changes the key, so the normal start runs once. ### Tests - New e2e test: hover the row to cache the latest page, open `?turn=turn-missing`, and expect the latest event in view after the link is dropped. It failed before the fix (viewport ratio 0). - Full dashboard e2e: 95 passed. Types and lint pass. ### Screenshot After a failed Turn link, the event log opens at the latest event:  <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3A735c6e48f79c0c925da15893 --> -- [View Session in Sentry](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A735c6e48f79c0c925da15893/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Follow-up to #2635, part of #2568. Answers the linked-events review comment.
Before, a link to an event, Turn, or memory outside the loaded rows paged the transcript one page at a time until it found the row. Now the server gives the row position, and the client makes one request.
Design
seq. The list already reads those events, so this adds no query. A memory jump opens at that seq.GET /api/conversations/:id/eventsalso takesevent=<seq>andturn=<turnId>and returns the same page thataroundreturns for that row.eventadds no query. It uses the same seq page read and access checks asaround=<cursor>.turnadds one lookup on the(conversation_id, type, seq)index, over this Conversation'sturn_startedrows. An unknown Turn returns 404 and the dashboard drops the link.useHistoryAround(renamed fromuseUnreadHistory) opens at the page around it, the same way it opens at the read position. Jump to latest clears the link, and a link page that fails is dropped. The page-by-page search (nextHistorySearch/loadToward) is gone.No bulk mapping for event and Turn links. Each one points to one row, and an event link already has its seq in the URL. Only the Memories section shows targets from the whole Conversation, and it gets them in bulk.
Tests
event-list.test.tsgets "opens the page around a linked event or Turn" (event page, Turn page, unknown Turn 404). The memory REST test coversseqand seq order.conversations-read-position.spec.ts): event and Turn links outside the loaded rows each make one link request, and the row is in the event log viewport. A memory outside the loaded rows opens with oneeventrequest.tscforjunior,junior-memory, andjunior-dashboard, oxlint, andfile-length:checkpass.Screenshots
Event link (
?event=70) outside the loaded rows:Memory chosen in details, opened at its capture:
Next for #2568
Virtualize the event log, then the transcript.
@tanstack/react-virtualonly picks and measures rows; bottom pinning keeps control ofscrollTop.via @BYK.
--
View Session in Sentry