+api rework

This commit is contained in:
2025-12-30 20:08:48 +03:00
parent 9ed3a5992d
commit 45c077b928
9 changed files with 44 additions and 15 deletions

View File

@@ -353,8 +353,8 @@ class TaskManager:
if task.status == status:
should_remove = True
else:
# Clear all non-active tasks
if task.status not in [TaskStatus.RUNNING]:
# Clear all non-active tasks (keep RUNNING, AWAITING_INPUT, AWAITING_MAPPING)
if task.status not in [TaskStatus.RUNNING, TaskStatus.AWAITING_INPUT, TaskStatus.AWAITING_MAPPING]:
should_remove = True
if should_remove: