Skip to content

feat(dashboard): Link to one message in a conversation - #3616

Merged
lcian merged 2 commits into
mainfrom
feat/dashboard-message-links
Nov 18, 2026
Merged

lcian merged 2 commits into
mainfrom
feat/dashboard-message-links

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Adds a "Copy link to message" button next to "Copy message" on Junior's replies. The link is /conversations/<id>?message=<messageId>. Opening it scrolls the transcript to that reply and highlights it for a moment, even when the reply is outside the loaded page.

Copy link to message Opening the link
The Copy link to message button under a reply The linked reply, highlighted after the page opens

Copying a message link, then opening it: the page jumps to the reply and highlights it

  • The events API gets a message link target, like event and turn. It returns the page around the Message's event, or 404. A missing message drops the param and opens the conversation as usual.
  • The link always includes the conversation id. A fork copies events with their message ids, so each copy of a message has its own link in its own conversation.
  • showRow gets an instant option. A smooth scroll at page open stopped part-way when rows mounted and resized during the scroll, so the linked row ended up out of view.

Slack footers still link to the whole conversation. Pointing them at the reply comes in a follow-up.

via @lcian.

--

View Session [Sentry]

@vercel

vercel Bot commented Nov 17, 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 18, 2026 11:18am UTC

Request Review

@blacksmith-sh

This comment has been minimized.

@lcian
lcian marked this pull request as ready for review November 18, 2026 12:13
@sentry-junior
sentry-junior Bot requested a review from lcian November 18, 2026 12:13
@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 18, 2026
@lcian
lcian merged commit 6ba6950 into main Nov 18, 2026
48 checks passed
@lcian
lcian deleted the feat/dashboard-message-links branch November 18, 2026 12:15

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a58eec6. Configure here.

return;
}
const row = content.querySelector(`[data-transcript-seq="${seq}"]`);
if (!row) return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Message jump misses footer reply rows

Medium Severity

useMessageLinkJump finds the linked reply with an exact data-transcript-seq match on the message event seq. Assistant replies that end a turn with captured memories or tasks store a later seq on that row, so the query finds nothing. The around-page still loads, but the reply is not scrolled into view or highlighted — the main behavior of Copy link to message, and the only messages that get that button.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a58eec6. Configure here.

lcian added a commit that referenced this pull request Nov 19, 2026
)

Message links from #3616 sometimes did not land on the
linked reply. There were two causes:

- **A reply followed by Tasks did not scroll.** A transcript row carries
the seq of its last event. When a reply ends a Turn with Tasks, the
Tasks show under it, and the row takes the last Task's seq.
`useMessageLinkJump` looked for `[data-transcript-seq="<message seq>"]`,
found nothing, and did not move. The reader stayed at the top of the
loaded page. Now it picks the first row whose seq is at or after the
Message's seq. That is the same rule (`rowIndexForSeq`) that keeps the
row mounted.
- **A long reply opened in its middle.** `showRow` centers the row. A
row taller than the viewport then had its start above the top of the
screen. Now such a row shows from its start, 48px below the top of the
viewport. This also applies when the transcript goes to a Review item's
question.

<!-- junior-request-attribution:start -->
via @lcian.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AD0B8GLVN8LT%3A1795076723.225779 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/slack%3AD0B8GLVN8LT%3A1795076723.225779)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0B8GLVN8LT%3A1795076723.225779/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Lorenzo Cian <[email protected]>

This branch was successfully deployed

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

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant