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:
Claude committed 2026-10-02 22:30:13 +00:00
1 parent cb41fb69ee
commit d4f7396ac2
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);