fix(state): shallow copy of empty state

This commit is contained in:
2026-04-27 23:13:36 +01:00
parent d97f15233b
commit 2ef48609d9

View File

@@ -21,7 +21,7 @@ def get_state_file_path() -> Path:
def load_state() -> dict:
path = get_state_file_path()
if not path.exists():
return EMPTY_STATE.copy()
return {"files": [], "markers": []}
with path.open() as f:
return json.load(f)