Skip to content

fix(dashboard): Land Message links on the reply row and its start - #3749

Merged
lcian merged 2 commits into
mainfrom
fix/message-link-jump-row
Nov 19, 2026
Merged

lcian merged 2 commits into
mainfrom
fix/message-link-jump-row

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

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.

via @lcian.

--

View Session [Sentry]

A reply that ends a Turn with Tasks carries the seq of its last Task, so
the exact-seq lookup found no row and the link did not scroll. Match the
first row that reaches the Message's seq instead, the same row the
transcript keeps mounted for it.

Going to a row centered it, so a reply taller than the viewport opened
in its middle. Show such a row from its start.

Co-Authored-By: Lorenzo Cian <[email protected]>
@vercel

vercel Bot commented Nov 19, 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 19, 2026 9:16am UTC

Request Review

@lcian
lcian marked this pull request as ready for review November 19, 2026 09:04
@sentry-junior
sentry-junior Bot requested a review from lcian November 19, 2026 09:05
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

12 screenshot changes — 12 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Automation Skill Editor · Desktop
Automation Skill Editor · Desktop
Changed
Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Attachment Zoom · Mobile
Conversation Attachment Zoom · Mobile
Changed
Conversation Pending Attachment · Desktop
Conversation Pending Attachment · Desktop
Changed
Show 6 more changed screenshots
Conversation Pending Attachment · Mobile
Conversation Pending Attachment · Mobile
Changed
Conversation Question · Desktop
Conversation Question · Desktop
Changed
Conversation Question Light · Desktop
Conversation Question Light · Desktop
Changed
Conversation Question Picks And Text · Desktop
Conversation Question Picks And Text · Desktop
Changed
Conversation Question Stepper · Desktop
Conversation Question Stepper · Desktop
Changed
System Cache Warming Refill · Desktop
System Cache Warming Refill · Desktop
Changed

@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.

Stale Bugbot comment from a previous run.

Top-align only rows taller than the viewport. A row that fits stays
centered, so a row close to the viewport height is not clipped.
@lcian

lcian commented Nov 19, 2026

Copy link
Copy Markdown
Member

bugbot run

@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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 0d9d724. Configure here.

@blacksmith-sh

blacksmith-sh Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Found 3 test failures on Blacksmith runners:

Failures

Test View Logs
[inbox] › packages/junior-dashboard/e2e/inbox/
composer-questions.spec.ts:301:3 › new UI › a question that docks while the reader read
s back does not move the transcript @new
View Logs
[inbox] › packages/junior-dashboard/e2e/inbox/
inbox-navigation.spec.ts:157:3 › new UI › the list loads older Conversations as it scro
lls @new
View Logs
new UI/the list loads older Conversations as it scrolls @new View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@sentry-junior

sentry-junior Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

The dashboard e2e (inbox) failures that Blacksmith reported are flaky tests, not failures caused by this change:

  • inbox-navigation.spec.ts "the list loads older Conversations as it scrolls" checks the Conversations list's scroll position after Back. It never opens a transcript, so it does not run the code this PR changes. The rerun passed.
  • composer-questions.spec.ts "a question that docks while the reader reads back does not move the transcript" failed once and passed on retry in the same run.

All required checks pass on 0d9d724.

@lcian
lcian enabled auto-merge (squash) November 19, 2026 09:43
@lcian
lcian merged commit cdfad30 into main Nov 19, 2026
69 of 71 checks passed
@lcian
lcian deleted the fix/message-link-jump-row branch November 19, 2026 09:43

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 0d9d724d Deployed Nov 19, 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