From 6dd4d74ca08fc8b9805ec696b2da15de4c88b94a Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Sun, 2 Aug 2026 20:26:23 -0500 Subject: [PATCH] Update flm_workspace.py --- starpilot/system/the_galaxy/flm_workspace.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/starpilot/system/the_galaxy/flm_workspace.py b/starpilot/system/the_galaxy/flm_workspace.py index afbc3dcfa..19e0a6408 100644 --- a/starpilot/system/the_galaxy/flm_workspace.py +++ b/starpilot/system/the_galaxy/flm_workspace.py @@ -2895,7 +2895,11 @@ def clear_workspace() -> dict[str, Any]: params = Params(return_defaults=True) active_snapshot = _read_json(paths["snapshots"] / "active.json", {}) if params.get_bool("FLMTrialApplied") or (isinstance(active_snapshot, dict) and active_snapshot.get("params")): - raise RuntimeError("Revert or keep the active FLM trial before clearing the workspace.") + params.put_bool("FLMTrialApplied", False) + params.put("FLMActiveProfileId", "") + params.put("FLMActiveOverrides", json.dumps({}, separators=(",", ":"))) + _clear_persistent_trial_baseline(params) + Params(memory=True).put_bool("StarPilotTogglesUpdated", True) removed = [] for key in ("reports", "profiles", "feedback", "snapshots"):