Skip to content

Add ability to delete workspace and create a new one - #33

Merged
Modsofthenation merged 3 commits into
mainfrom
cursor/workspace-delete-recreate-e5b1
Jul 26, 2026
Merged

Modsofthenation merged 3 commits into
mainfrom
cursor/workspace-delete-recreate-e5b1

Conversation

@Modsofthenation

@Modsofthenation Modsofthenation commented Jul 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds a password-gated delete workspace flow so you can wipe the local vault and create a fresh empty or demo workspace without manually deleting data/.

Also adds a sticky On this page section nav on Settings (right side on desktop; horizontal sticky chips on phone) that scroll-jumps to each section and highlights the active one.

Changes

  • API: POST /api/workspace/destroy with { password, confirm: "DELETE" } (public, like unlock). Wipes DB/vault/files/backups; blocks when legal hold is on.
  • UI: Settings → Danger zone, and Unlock → “Erase workspace & start over…”, then the existing create empty/demo flow.
  • UI: Sticky Settings section nav (PageSectionNav) with active-section highlighting and click-to-scroll.
  • Docs updated in README.md / AGENTS.md.

Test plan

  • Unlock demo workspace → Settings → Delete workspace (password + DELETE) → create empty workspace
  • Lock workspace → Erase from unlock screen → create demo again
  • Wrong password rejected; legal hold on blocks destroy until disabled
  • Settings sticky section nav jumps to Danger zone / Appearance and updates active item while scrolling
Open in Web Open in Cursor 

cursoragent and others added 3 commits July 26, 2026 03:32
Password-gated POST /api/workspace/destroy wipes the local vault so
users can create a new empty or demo workspace from Unlock or Settings.

Co-authored-by: Damon van der linde <zord.lack.net@gmail.com>
Right-side “On this page” nav stays visible, highlights the active
section, and smooth-scrolls on click (horizontal sticky chips on phone).

Co-authored-by: Damon van der linde <zord.lack.net@gmail.com>
Briefly lock the sticky nav active state after a jump so IntersectionObserver
does not overwrite the target mid-scroll.

Co-authored-by: Damon van der linde <zord.lack.net@gmail.com>
@Modsofthenation
Modsofthenation marked this pull request as ready for review July 26, 2026 04:05
@Modsofthenation
Modsofthenation merged commit 250bafe into main Jul 26, 2026
1 of 2 checks passed
@cursor
cursor Bot deleted the cursor/workspace-delete-recreate-e5b1 branch August 12, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants