Repository navigation
Fix sticky workspace identity leaking into Cmd+N - #9031
Conversation
📝 WalkthroughWalkthroughWorkspace creation replaces boolean directory-customization flags with explicit modes. Fresh workspaces track directories without applying stored identity, while restoration paths can disable or restore customization behavior. Recovery tests cover title, color, persistence, and snapshot restoration semantics. ChangesWorkspace customization creation flow
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
Summary
Verification
Fixes #9027
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Prevent sticky directory identity (title/color) from leaking into new workspaces (e.g., Cmd+N). New workspaces can inherit the CWD but start with a clean title and color; only restore/recovery reads and applies saved customizations. Fixes #9027.
Bug Fixes
Refactors
shouldApplyWorkspaceDirectoryCustomizationwithWorkspaceDirectoryCustomizationCreationMode(.disabled|.trackDirectory) and moved it to its own file.applyWorkspaceDirectoryCustomizationtotrackWorkspaceDirectoryCustomization.WorkspaceGroupHostingto use the new mode; default is.trackDirectory, with.disabledused for remote tmux and config-driven launches.Written for commit 1d3d90e. Summary will update on new commits.
Summary by CodeRabbit