From 8ea764728d7f3fab4963120ac221f2bc7d310c93 Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Mon, 22 Jun 2026 10:34:35 +0200 Subject: [PATCH] fix(editors): use savedPath (deployed) as the pen-popover rename baseline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The topbar pen-popover path editor (EditorHeader, shared by flow/script/app/ raw-app) used `snapshotPath ?? path` as the Path widget's `initialPath`. `snapshotPath` is the path captured when the popover opens (the *renamed* value for a reopened rename draft) and exists only to freeze the breadcrumb while the popover is open — it's the wrong rename baseline. Reverting a renamed draft to its original path in the popover then tripped "path already used" (typed != stale baseline → existence check on the deployed path → match). Use `savedPath` (the deployed/original path every caller already passes) as the baseline instead; `snapshotPath` still drives the breadcrumb display only. New items keep their reset-seeding behavior (savedPath is '' for them). Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/src/lib/components/EditorHeader.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/EditorHeader.svelte b/frontend/src/lib/components/EditorHeader.svelte index 87a0c6e1da..bca0cc65aa 100644 --- a/frontend/src/lib/components/EditorHeader.svelte +++ b/frontend/src/lib/components/EditorHeader.svelte @@ -201,7 +201,7 @@