Skip to content

Close tabs and files of archived or deleted sessions - #20

Merged
Warexpor merged 1 commit into
mainfrom
cursor/close-archived-deleted-session-tabs-eab6
Sep 4, 2026
Merged

Close tabs and files of archived or deleted sessions#20
Warexpor merged 1 commit into
mainfrom
cursor/close-archived-deleted-session-tabs-eab6

Conversation

@Warexpor

@Warexpor Warexpor commented Sep 4, 2026

Copy link
Copy Markdown
Owner

What changed

Archiving a session now closes its workspace tab. Deleting a session closes that tab (and its open files) instead of promoting leftover editors into a session tab. Shared splits that still have another conversation keep their files.

Port of upstream hardbeat920/monocode#70, adapted to this fork’s App.tsx / workspaceTabGroups (this repo did not have sessionWorkspaceLifecycle.ts).

Why

Archive left the tab in place. Delete of a session that shared a tab with files promoted those files oddly.

UI

No chrome redesign. Same archive/delete menus; tab/file cleanup only.

Checklist

  • npm run check:web — vitest 1208 passed (including sessionWorkspaceLifecycle.test.ts) and tsc --noEmit
  • npm run check:rust — not run to completion here (Cargo 1.83 rejected edition2024 crates; this PR does not touch Rust)
  • This PR is small and focused
  • I did not mix unrelated changes

Web preview (vite preview at :4173) loads the bundle but does not mount the app without Tauri (__TAURI_INTERNALS__ missing during loadBootWorkspace). Archive/delete persist via invoke, and unsaved/PTY confirms use the native dialog plugin — those paths need a Tauri desktop session.

Did not claim native Windows/Tauri/live session QA.

Open in Web Open in Cursor 

Archiving left the conversation tab open. Deleting a session whose tab
also had files promoted those files instead of closing the tab.

Route archive and delete through a small workspace helper that drops the
session tab when it was the last chat, strips session-scoped changes,
and keeps shared splits with other conversations.

Co-authored-by: Warexpor <warexpor@gmail.com>
@Warexpor
Warexpor marked this pull request as ready for review September 4, 2026 21:16
@Warexpor
Warexpor merged commit 5eb13c0 into main Sep 4, 2026
4 checks passed
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