mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2053] [MERGED] Require confirm for admin clear all #5414
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5414
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2053
Author: @cha1latte
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-2029-admin-clear-confirm📝 Commits (1)
53e4973Require confirm for admin clear all📊 Changes
5 files changed (+232 additions, -5 deletions)
View changed files
📝
src-tauri/src/commands/storage/admin.rs(+65 -1)📝
src-tauri/src/commands/storage/commands/agents.rs(+5 -2)📝
src-tauri/src/http_dispatch.rs(+70 -1)📝
src-tauri/src/http_server.rs(+91 -0)📝
src/shared/api/admin-api.ts(+1 -1)📄 Description
Linked issue
Closes #2029
Why this change
invalid_inputbefore storage/media deletion.What changed
confirm: trueinsideadmin_clear_allbefore clearing storage/runtime media.admin_clear_all_commandand remote/api/invokedispatch.{ confirm: true }.Refactor impact
Primary owner:
Rust storage / remote runtime
Impact areas reviewed:
src-tauriadmin storage command helper/api/invokedispatchBoundary notes:
src-tauristorage/admin command code.Pressure points touched:
src-tauri/src/lib.rscommand registration was reviewed; no registration change needed because the command name stayed the same.state.storage.clear_all().Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
cargo test --manifest-path src-tauri/Cargo.toml admin_clear_all -- --nocapturepassed: 8 tests.cargo test --manifest-path src-tauri/Cargo.toml admin_expunge -- --nocapturepassed: 1 test.pnpm typecheckpassed.pnpm checkpassed.git diff --checkpassed.node C:/Users/celia/.codex/tools/marinara-proof-gate.mjs scratch/bugfix-verification.jsoncould not run because that local tool path does not exist in this environment.Feature Discoverability
Check exactly one:
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.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A: backend destructive-command guard and remote dispatch coverage only; no visible UI changed.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.