fix(background-agent): defer task cleanup while siblings running

This commit is contained in:
YeonGyu-Kim
2026-03-17 15:17:34 +09:00
parent 82c7807a4f
commit 2c7ded2433
4 changed files with 50 additions and 19 deletions
+1 -2
View File
@@ -9,12 +9,11 @@ import {
DEFAULT_MESSAGE_STALENESS_TIMEOUT_MS,
DEFAULT_STALE_TIMEOUT_MS,
MIN_RUNTIME_BEFORE_STALE_MS,
TERMINAL_TASK_TTL_MS,
TASK_TTL_MS,
} from "./constants"
import { removeTaskToastTracking } from "./remove-task-toast-tracking"
const TERMINAL_TASK_TTL_MS = 30 * 60 * 1000
const TERMINAL_TASK_STATUSES = new Set<BackgroundTask["status"]>([
"completed",
"error",