fix(dotcom): preserve user preferences when using deep links#7917
Merged
mimecuvalo merged 4 commits intomainfrom Feb 17, 2026
Merged
fix(dotcom): preserve user preferences when using deep links#7917mimecuvalo merged 4 commits intomainfrom
mimecuvalo merged 4 commits intomainfrom
Conversation
When a URL contains a deep link parameter (?d=...), the session state (including grid mode, tool lock, etc.) was being skipped entirely. This caused user preferences to be lost on page refresh when a deep link was present. Now we load session preferences separately from camera/page states, allowing deep links to control navigation while preserving user settings.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
5 tasks
1 task
github-merge-queue bot
pushed a commit
that referenced
this pull request
Feb 24, 2026
…8068) followup to #7917 it was fixed and then i accidentally commited a "cleanup" commit that undid the work 🤦 closes #4391 (comment) ### Change type - [ ] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [x] `other` <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Small change to editor mount logic affecting deep-link/session-state restoration; low risk but could impact initial navigation/camera state on load. > > **Overview** > Fixes deep-link initialization so opening a URL with `?d=` preserves user *preferences* while letting the deep link control navigation. > > `TlaEditor` now (1) loads only preference fields from `lastSessionState` when a deep link is present and navigates immediately, (2) otherwise loads the full session snapshot, and (3) still navigates to the deep link even when no saved session state exists. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 1e0ef18. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
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.
When a URL contains a deep link parameter (
?d=...), the session state (including grid mode, tool lock, etc.) was being skipped entirely. This caused user preferences to be lost on page refresh when a deep link was present.The previous logic was:
Now we load session preferences separately from camera/page states, allowing deep links to control navigation while preserving user settings like grid mode.
Closes #4391
Change type
bugfixTest plan
?d=parameter)Release notes
Note
Low Risk
Small, localized change to client-side session restore behavior; main risk is subtle regressions in which parts of session state are restored when deep links are present.
Overview
Fixes editor initialization so saved
lastSessionStateis no longer skipped when a?d=deep link is present.When deep linking, it now loads only preference-related session fields (excluding
pageStatesandcurrentPageId) before callingnavigateToDeepLink, preserving settings like grid/tool preferences without overriding deep-link navigation.Written by Cursor Bugbot for commit 582aa7f. This will update automatically on new commits. Configure here.