Skip to content

fix(dashboard): Keep the sidebar when a newer server adds response fields - #3502

Merged
MathurAditya724 merged 2 commits into
mainfrom
fix/dashboard-feed-version-drift
Nov 16, 2026
Merged

MathurAditya724 merged 2 commits into
mainfrom
fix/dashboard-feed-version-drift

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

After a deploy, an open dashboard tab can suddenly lose every Conversation in the sidebar. In its place it shows a wall of unrecognized_keys errors for sidebarAnnotations[].title and url.

Here's why: #3449 added title, url, and imageUrl to sidebar annotations, and the dashboard parses responses with .strict() schemas. A tab still running the old bundle rejects the new fields. The next feed refresh fails, and the sidebar swaps its rows for the raw Zod message. Reloading fixes it, and the version drift banner already asks for that, but the sidebar is gone until then. #3449 called this out under "Old open tabs".

What this changes:

  • If a feed refresh fails, the sidebar keeps the rows it already loaded. It only shows the error when it has nothing loaded yet.
  • If a response fails its schema and the server reports a different Junior version than the bundle, the error says "The dashboard changed. Refresh to load the latest version." instead of the schema issues. This covers every dashboard read, not only the feed. When the versions match, the original error still comes through, so real schema bugs stay visible.

The schemas stay strict, as policies/runtime-boundary-schemas.md asks.

via @MathurAditya724.

--

View Session [Sentry]

…elds

Response schemas are strict, so a tab that still runs an older bundle
rejects fields a newer deploy added, such as the sidebar annotation title
and url from #3449. The sidebar then dropped every row and
showed the raw schema issues.

A failed feed refresh now keeps the loaded rows. A response that fails its
schema while the server reports a different Junior version throws the
version drift message instead of the schema issues.

Co-Authored-By: Aditya Mathur <[email protected]>
@vercel

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

Request Review

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Child Agents · Desktop
Conversation Child Agents · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation File Draft · Desktop
Conversation File Draft · Desktop
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Show 12 more changed screenshots
Conversation Memory List Jump · Desktop
Conversation Memory List Jump · Desktop
Changed
Conversation Memory List Jump · Mobile
Conversation Memory List Jump · Mobile
Changed
Conversation Object Links · Desktop
Conversation Object Links · Desktop
Changed
Conversation Object Links Light · Desktop
Conversation Object Links Light · Desktop
Changed
Conversation Question · Desktop
Conversation Question · Desktop
Changed
Conversation Question Light · Desktop
Conversation Question Light · Desktop
Changed
Conversation Question Stepper · Desktop
Conversation Question Stepper · Desktop
Changed
Conversation Share Details · Desktop
Conversation Share Details · Desktop
Changed
Conversation Task Line · Desktop
Conversation Task Line · Desktop
Changed
Memories · Mobile
Memories · Mobile
Changed
Settings · Desktop
Settings · Desktop
Changed
Settings Api Tokens · Desktop
Settings Api Tokens · Desktop
Changed

9 more changed screenshots in Frameshift.

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 16, 2026 10:44
@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 16, 2026
A failed next page always has loaded rows, so the feed error check only
needs feed.data.

Co-Authored-By: Aditya Mathur <[email protected]>

@sentry-junior sentry-junior Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I went over this again and found no bugs. I pushed two small cleanups in 10cbe9e:

  • The sidebar error check only needs feed.data. A failed next page always has rows loaded, so the extra isFetchNextPageError check did nothing.
  • The server version header is now read in one place (dashboardServerVersion), not in two.

Things I checked: every dashboard API read goes through readResponseJson, so the new message covers them all. A new search that fails still shows its error, because React Query only uses placeholder data while a query is pending. The conversation page already keeps its data on a failed refresh the same way.

@MathurAditya724
MathurAditya724 enabled auto-merge (squash) November 16, 2026 11:00
@MathurAditya724
MathurAditya724 merged commit b738883 into main Nov 16, 2026
43 checks passed
@MathurAditya724
MathurAditya724 deleted the fix/dashboard-feed-version-drift branch November 16, 2026 11:05

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 10cbe9e8 Deployed Nov 16, 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