Skip to content

fix(dashboard): Stop event links past the last event from reading forever - #3988

Merged
BYK merged 1 commit into
mainfrom
fix/outline-past-end-link
Nov 21, 2026
Merged

BYK merged 1 commit into
mainfrom
fix/outline-past-end-link

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Follows up #3974.

Bug. An event start can name a seq that no reporting event has. One case is a stale #event-<seq> link past the last event. The read around that seq stores the events nearest to it, but no held run contains the seq itself. So the transcript treats its row as lost and reads the same page again, forever. The transcript stays pending.

Fix. After its reads, the around query now shows the nearest held event: the last event before the seq, or the first event after it if there is none before. If the read holds no events at all, the start fails, and the transcript goes back to where it was, as it does for any link that fails to load. The second read, which continues a read that stopped short at another read's cursor, is skipped when it would repeat the first read.

The query reports the seq it shows, and the Conversation page uses that seq for the #event-<seq> link. So a link past the last event lands on the last row and marks it. This follows the rule from #3974: an event after the last row lands on the last row before it.

The long transcript mock answers a read around a seq past the end with the last events, the same as the server.

#event-5000 in a Conversation whose last event is 1999, landed and marked
#event-5000 lands on the last row

via @BYK.

--

View Session [Sentry]

…ever

A start seq that no reporting event has, such as a stale #event-<seq> past
the last event, left no run holding the row. The around query then read the
same page again and again. It now shows the nearest held event, and a link
to it lands on that row. A second read that would repeat the first is
skipped. The long transcript mock reads around a seq past the end like the
server does.
@vercel

vercel Bot commented Nov 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 21, 2026 11:39pm UTC

Request Review

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 21, 2026 23:47
@sentry-junior
sentry-junior Bot requested a review from BYK November 21, 2026 23:47
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 21, 2026
@BYK
BYK merged commit a5ef957 into main Nov 21, 2026
56 checks passed
@BYK
BYK deleted the fix/outline-past-end-link branch November 21, 2026 23:51

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 42cba2a0 Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant