From 6bb3b04e60e662757c0485781fd5e4ccdc7b2729 Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Wed, 14 Oct 2026 22:07:44 -0400 Subject: [PATCH] App: a --control run keeps its autosaves out of the user's recovery folder Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo --- apps/fieldcraft/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/fieldcraft/src/main.rs b/apps/fieldcraft/src/main.rs index c07bc7e..9d1d8af 100644 --- a/apps/fieldcraft/src/main.rs +++ b/apps/fieldcraft/src/main.rs @@ -150,6 +150,11 @@ fn main() -> eframe::Result { std::process::exit(2); } }; + if args.control.is_some() { + // A run driven by automation keeps its autosaves (and recent files and preferences, which + // live beside them) in a temporary folder, never the user's. + fieldcraft_io::recovery::use_automation_dir(); + } let options = eframe::NativeOptions { viewport: egui::ViewportBuilder::default() .with_title("FieldCraft")