fix: disable resume when stage is DONE, add mark_completed for skipped transfer

This commit is contained in:
2026-05-22 20:48:53 +04:00
parent 8ccac570ce
commit 45f56bc146

View File

@@ -109,8 +109,9 @@ def main():
banner()
while True:
st = state.load_state()
# Это resume — если есть mode, stage != INIT, или было прерывание
has_resume = bool(st.get("mode") and st.get("stage") != "INIT")
# Resume показываем только если есть незавершённая работа (stage != INIT, != DONE)
stage = st.get("stage", "INIT")
has_resume = bool(st.get("mode") and stage not in ("INIT", "DONE"))
menu(has_resume=has_resume)
try:
choice = prompt("Ваш выбор", default="0").strip()