fix(archive): an explicit dry run replaces the one still waiting on typing

Setting the Move template and asking for its dry run left the typing delay
running; when it fired it threw the finished plan away and disabled Apply until
a second identical dry run came back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-06 20:59:28 +00:00
1 parent 38e40bf96d
commit 0856ab8a7f
1 file changed
+5 -1
@@ -254,9 +254,13 @@ public sealed class RenameDialogViewModel : ArchiveDialogViewModel
base.Dispose();
}
/// <summary>The dry run of the current template (the engine's plan; nothing changes on disk); it clears the last failure.</summary>
/// <summary>
/// The dry run of the current template (the engine's plan; nothing changes on disk); it clears the last failure and
/// stands in for a dry run still waiting on typing, which would otherwise throw this plan away.
/// </summary>
public Task PlanAsync()
{
_delay.Stop();
ClearError();
return DryRunAsync();
}