fix(app): an import keeps its result and resume when its card leaves and returns
Re-listing the devices no longer re-plans the card of a running, failed or finished import, so a removed card can resume its job after re-insertion and the verification result stays after ejecting. The source list and profile edits are locked while an import runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
3 files changed
+16
-16
No files matched your search
@@ -94,9 +94,8 @@ public sealed class ImportFlowTests(TestContext context)
|
||||
Assert.True(outcome.IsComplete);
|
||||
Assert.True(outcome.Verified);
|
||||
Assert.NotEmpty(reports);
|
||||
foreach (var s in plan.Sessions)
|
||||
foreach (var item in s.Items)
|
||||
Assert.FileExists(Path.Combine(target, s.Folder, item.FileName));
|
||||
foreach (var (folder, name) in plan.Sessions.SelectMany(s => s.Items.Select(i => (s.Folder, i.FileName))))
|
||||
Assert.FileExists(Path.Combine(target, folder, name));
|
||||
|
||||
var again = await LocalImport.RunAsync(await destination.PlanAsync(card, new ImportChoices().ToOptions(), null, null, context.Cancellation),
|
||||
new FolderImportSink(target), verify: true, null, context.Cancellation);
|
||||
|
||||
Reference in new issue
Block a user