Summary
The per-app/envvars .conf delete is a single click with no confirm, positioned right next to Save. Also, if the user closes the sheet (editorState=null) before the delete resolves, onSuccess returns early (if (!editorState) return;) so neither list is invalidated.
Location
electron/renderer/src/app/scopebuddy/page.tsx:233-249, 786-795
Failure scenarios
- User clicks Delete meaning Save -> file gone instantly.
- User clicks Delete then closes the sheet -> the per-app list still shows the deleted entry; clicking Edit opens a ghost file.
Fix
Add a confirm dialog; invalidate the lists regardless of editorState in onSuccess.
Summary
The per-app/envvars
.confdelete is a single click with no confirm, positioned right next to Save. Also, if the user closes the sheet (editorState=null) before the delete resolves,onSuccessreturns early (if (!editorState) return;) so neither list is invalidated.Location
electron/renderer/src/app/scopebuddy/page.tsx:233-249, 786-795Failure scenarios
Fix
Add a confirm dialog; invalidate the lists regardless of
editorStateinonSuccess.