[PR #2104] [MERGED] Fix group delete responsiveness #5440

Closed
opened 2026-10-22 04:16:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2104
Author: @cha1latte
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-2100-group-delete-feedback


📝 Commits (8)

  • 0a35c69 Fix group delete responsiveness
  • cd108f0 Update issue 2100 verification metadata
  • 73ca6b2 Align hostable group delete dispatch
  • 576553f Guard group delete drawer while pending
  • 255dc6d Clarify group delete pending drawer rows
  • 4236614 Lock drawer actions during group delete
  • 9413958 Merge remote-tracking branch 'upstream/refactor' into fix/issue-2100-group-delete-feedback
  • caab762 Complete issue 2100 proof ledger

📊 Changes

5 files changed (+266 additions, -64 deletions)

View changed files

📝 scratch/bugfix-verification.json (+170 -27)
📝 src-tauri/src/commands/storage/commands/chats.rs (+8 -2)
📝 src-tauri/src/http_dispatch.rs (+9 -1)
📝 src/app/shell/ChatSidebar.tsx (+30 -11)
📝 src/features/modes/shared/chat-ui/components/ChatFilesDrawer.tsx (+49 -23)

📄 Description



Linked issue

Closes #2100

Why this change

  • Large branched conversation-group deletes can take long enough that the Tauri app appears frozen or unresponsive.
  • The group delete command was doing the full storage cascade synchronously, and the UI surfaces that start the delete closed immediately instead of keeping a visible pending state.

What changed

  • Moved chat_group_delete onto Tauri's blocking task pool with spawn_blocking, matching the heavier storage-delete command pattern.
  • Moved the hostable HTTP chat_group_delete dispatch path onto the same blocking task pool so embedded and remote-capable invocations share the responsiveness contract.
  • Kept the sidebar branched-chat delete modal open while group deletion is pending, disabled repeat clicks, and showed Deleting group....
  • Kept the Manage Chat Files drawer open while group deletion is pending, disabled repeat clicks, and showed Deleting group....
  • Updated scratch/bugfix-verification.json with the issue-2100 proof record.

Refactor impact

Primary owner:

Rust storage command wrapper, with app-shell/shared chat UI consumers.

Impact areas reviewed:

  • src-tauri/src/commands/storage/commands/chats.rs
  • src-tauri/src/http_dispatch.rs
  • src/app/shell/ChatSidebar.tsx
  • src/features/modes/shared/chat-ui/components/ChatFilesDrawer.tsx
  • Existing group-delete cascade behavior through the targeted Rust regression test

Boundary notes:

  • Storage deletion semantics, schemas, and single-chat delete behavior are unchanged.
  • Engine code was not touched.
  • Feature code continues to call the existing focused chat API wrapper through useDeleteChatGroup.

Pressure points touched:

  • Tauri chat_group_delete command wrapper.
  • Hostable HTTP dispatch for chat_group_delete.
  • App shell chat sidebar branch-delete modal.
  • Shared mode UI Manage Chat Files drawer.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Codex proof:
    • pnpm typecheck passed.
    • cargo check --manifest-path src-tauri/Cargo.toml passed.
    • cargo test --manifest-path src-tauri/Cargo.toml delete_chat_group_reports_exact_deleted_chat_ids_including_scene_children passed.
    • node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json passed.
    • pnpm check passed.
    • Playwright loaded the local Vite shell and captured local visual proof at scratch/issue-2100-shell-proof.png.
  • Draft limitation: exact large-profile group deletion still needs Tauri app-shell verification because the plain Vite browser cannot execute the real Tauri storage command, and the local PNG could not be uploaded as a GitHub-renderable gist from this environment.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Bugfix for an existing delete workflow; no new feature discovery entry needed.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence (if applicable)

  • Local-only Playwright shell screenshot: scratch/issue-2100-shell-proof.png.
  • No hosted screenshot is embedded yet; gh gist create rejected the binary PNG upload in this environment. Keeping this PR draft until hosted evidence or human app-shell verification is added.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2104 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/4/2026 **Status:** ✅ Merged **Merged:** 6/4/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-2100-group-delete-feedback` --- ### 📝 Commits (8) - [`0a35c69`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0a35c69d8ba0abe5df442e08b0089915e560bc56) Fix group delete responsiveness - [`cd108f0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cd108f06fc6fec6b6b2ed664ec5934ff1d8306ed) Update issue 2100 verification metadata - [`73ca6b2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/73ca6b28113f0d83b1a2fbf54f4b6d9003429d07) Align hostable group delete dispatch - [`576553f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/576553f95b43b7c308c47e1149da07445f441231) Guard group delete drawer while pending - [`255dc6d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/255dc6dbb57e2aa3836bf1e42551ace6bef3903e) Clarify group delete pending drawer rows - [`4236614`](https://github.com/Pasta-Devs/Marinara-Engine/commit/423661490bed5e4ef5900d7fa9d18d5019bb0e27) Lock drawer actions during group delete - [`9413958`](https://github.com/Pasta-Devs/Marinara-Engine/commit/94139587dde4831ea4059b44ca64952d9e46b5fb) Merge remote-tracking branch 'upstream/refactor' into fix/issue-2100-group-delete-feedback - [`caab762`](https://github.com/Pasta-Devs/Marinara-Engine/commit/caab762f3cb76845f5c5b77b00233ff2873b4300) Complete issue 2100 proof ledger ### 📊 Changes **5 files changed** (+266 additions, -64 deletions) <details> <summary>View changed files</summary> 📝 `scratch/bugfix-verification.json` (+170 -27) 📝 `src-tauri/src/commands/storage/commands/chats.rs` (+8 -2) 📝 `src-tauri/src/http_dispatch.rs` (+9 -1) 📝 `src/app/shell/ChatSidebar.tsx` (+30 -11) 📝 `src/features/modes/shared/chat-ui/components/ChatFilesDrawer.tsx` (+49 -23) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #2100 ## Why this change - Large branched conversation-group deletes can take long enough that the Tauri app appears frozen or unresponsive. - The group delete command was doing the full storage cascade synchronously, and the UI surfaces that start the delete closed immediately instead of keeping a visible pending state. ## What changed - Moved `chat_group_delete` onto Tauri's blocking task pool with `spawn_blocking`, matching the heavier storage-delete command pattern. - Moved the hostable HTTP `chat_group_delete` dispatch path onto the same blocking task pool so embedded and remote-capable invocations share the responsiveness contract. - Kept the sidebar branched-chat delete modal open while group deletion is pending, disabled repeat clicks, and showed `Deleting group...`. - Kept the Manage Chat Files drawer open while group deletion is pending, disabled repeat clicks, and showed `Deleting group...`. - Updated `scratch/bugfix-verification.json` with the issue-2100 proof record. ## Refactor impact Primary owner: Rust storage command wrapper, with app-shell/shared chat UI consumers. Impact areas reviewed: - `src-tauri/src/commands/storage/commands/chats.rs` - `src-tauri/src/http_dispatch.rs` - `src/app/shell/ChatSidebar.tsx` - `src/features/modes/shared/chat-ui/components/ChatFilesDrawer.tsx` - Existing group-delete cascade behavior through the targeted Rust regression test Boundary notes: - Storage deletion semantics, schemas, and single-chat delete behavior are unchanged. - Engine code was not touched. - Feature code continues to call the existing focused chat API wrapper through `useDeleteChatGroup`. Pressure points touched: - Tauri `chat_group_delete` command wrapper. - Hostable HTTP dispatch for `chat_group_delete`. - App shell chat sidebar branch-delete modal. - Shared mode UI Manage Chat Files drawer. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> <!-- Do not submit *.test.ts or *.test.tsx files as PR proof; cite existing checks, command output, app/browser/Tauri verification, or manual notes instead. --> - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Codex proof: - `pnpm typecheck` passed. - `cargo check --manifest-path src-tauri/Cargo.toml` passed. - `cargo test --manifest-path src-tauri/Cargo.toml delete_chat_group_reports_exact_deleted_chat_ids_including_scene_children` passed. - `node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json` passed. - `pnpm check` passed. - Playwright loaded the local Vite shell and captured local visual proof at `scratch/issue-2100-shell-proof.png`. - Draft limitation: exact large-profile group deletion still needs Tauri app-shell verification because the plain Vite browser cannot execute the real Tauri storage command, and the local PNG could not be uploaded as a GitHub-renderable gist from this environment. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Bugfix for an existing delete workflow; no new feature discovery entry needed. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence (if applicable) - Local-only Playwright shell screenshot: `scratch/issue-2100-shell-proof.png`. - No hosted screenshot is embedded yet; `gh gist create` rejected the binary PNG upload in this environment. Keeping this PR draft until hosted evidence or human app-shell verification is added. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:16:19 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5440
No description provided.