fix: a reused destination retires the routes pointing at it, and draft_base stays out of diffs

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-09-16 08:41:26 +02:00
co-authored by Claude Opus 5
parent d17f8fc111
commit 63cc0181de
9 changed files with 107 additions and 6 deletions
@@ -2426,6 +2426,7 @@ async fn create_script_internal<'c>(
&w_id,
&[UserDraftItemKind::Script],
&ns.path,
p_path_opt.as_deref(),
)
.await?;
if p_hashes.is_some() && !p_hashes.unwrap().is_empty() {