Remember Agentic UI preview path per site when switching sites - #4281
Merged
sejas merged 4 commits intoJul 23, 2026
Merged
Conversation
…l-path-when-switching
Collaborator
📊 Performance Test ResultsComparing 9f7f5e8 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
bcotrim
reviewed
Jul 23, 2026
bcotrim
left a comment
Contributor
There was a problem hiding this comment.
This is a very nice improvement, thanks!
I found an issue: if you navigate away from a site while it is starting it can change the preview of another site
Screen.Recording.2026-07-23.at.13.56.44.mov
nightnei
approved these changes
Jul 23, 2026
nightnei
left a comment
Contributor
There was a problem hiding this comment.
Great improvement, works perfectly 👍
bcotrim
approved these changes
Jul 23, 2026
bcotrim
left a comment
Contributor
There was a problem hiding this comment.
I can no longer replicate the issue I flagged.
There was an error with some of my local worktrees that also probably caught this test.
Approved 👍
sejas
enabled auto-merge (squash)
July 23, 2026 22:45
sejas
deleted the
stu-1971-in-app-browser-preview-may-keep-url-path-when-switching
branch
July 23, 2026 22:47
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.
Related issues
The in-app browser preview kept the current URL path when switching sites: viewing
/abouton one site and then opening a different site loaded that site's/aboutinstead of its home page — confusing, and a 404 when the path doesn't exist on the new site.How AI was used in this PR
AI assisted with the implementation and tests; the change was reviewed and verified manually.
Proposed Changes
/about, site B on/blog, and returning to A shows/aboutagain). The old site's path never leaks onto the new site.Testing Instructions
npm startenable the Agentic UI/about.Before
preview-path-before.mp4
After
preview-path-after.mp4
Pre-merge Checklist