You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ask before restoring into production; the gate never fires #789
The restore starts immediately. No "Run on production?" dialog appears, although the dialog's own comment says a restore is "the most destructive thing this app runs" and was meant to be gated (#588).
Cause
src/components/backup/RestoreDialog.tsx:119-128 calls confirmDestructive({ sql: [], ... }). src/stores/productionGuardStore.ts:119-120 returns true without asking when none of the statements is destructive, and an empty array has none, so the prompt is never shown.
Fix
Pass alwaysAsk: true from the restore (the import path already uses alwaysAsk for a truncated scan at src/components/import/ImportDialog.tsx:225). Add a test that a restore on a production connection calls the guard's ask.
Activity
fix(restore): ask before restoring into production
release: 1.4.0 (#871)