fix: discard the open pane's autosaved edits with Discard all

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Diego Imbert
2026-09-30 14:08:38 +02:00
co-authored by Claude Opus 5.5
parent aca183f214
commit 9f4e508369
@@ -611,6 +611,9 @@
pe.drafts = new Map()
pe.triggerDrafts = new Map()
pe.activeDraftPath = undefined
// The open pane's buffer is autosaved as a draft of the deployed script it
// edits, so it has to go with the drafts.
pe.clearLiveOverlays()
saveErrors = new Map()
const target = pendingNavigationUrl
leaveModalOpen = false