feat: Support delete cloud sync workspace locally or remotely#9603
feat: Support delete cloud sync workspace locally or remotely#9603
Conversation
✅ Circular References ReportGenerated at: 2026-03-17T02:24:31.878Z Summary
Click to view all circular references in PR (74)Click to view all circular references in base branch (74)Analysis✅ No Change: This PR does not introduce or remove any circular references. This report was generated automatically by comparing against the |
5836b8c to
eacf55a
Compare
f580dc6 to
d787dc6
Compare
f502c83 to
5458f38
Compare
There was a problem hiding this comment.
Pull request overview
Adds a user-facing choice when deleting a Cloud Sync workspace to either remove only the local copy or delete both local and remote (default), aligning deletion behavior with Cloud Sync use cases.
Changes:
- Adds a radio selection in the workspace delete modal for Cloud Sync projects (local-only vs permanent delete).
- Updates the workspace delete action to accept a
localOnlyform value and invoke the corresponding VCS behavior. - Extends smoke tests and the smoke Cloud Sync API server to simulate remote deletion.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| packages/insomnia/src/ui/components/dropdowns/workspace-card-dropdown.tsx | Adds local-only vs permanent delete UI for Cloud Sync workspace deletion. |
| packages/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.delete.tsx | Implements localOnly handling and routes deletion to local-only cleanup vs remote archive. |
| packages/insomnia-smoke-test/tests/smoke/cloud-sync.test.ts | Adds a smoke test covering both local-only deletion and permanent deletion flows. |
| packages/insomnia-smoke-test/server/cloud-sync-api.ts | Simulates archived projects by filtering them from the projects list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
packages/insomnia/src/ui/components/dropdowns/workspace-card-dropdown.tsx
Show resolved
Hide resolved
...ges/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.delete.tsx
Show resolved
Hide resolved
packages/insomnia/src/ui/components/dropdowns/workspace-card-dropdown.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
packages/insomnia/src/ui/components/dropdowns/workspace-card-dropdown.tsx
Outdated
Show resolved
Hide resolved
...ges/insomnia/src/routes/organization.$organizationId.project.$projectId.workspace.delete.tsx
Show resolved
Hide resolved
43bef1e to
0c1fe47
Compare
0c1fe47 to
67aeefb
Compare
Allow user to choose whether to delete local project or delete both local & remote project (default) when delete workspace in cloud sync projects.

INS-1981