fix(background-agent): rename getCompletedTasks to getNonRunningTasks for semantic accuracy

This commit is contained in:
YeonGyu-Kim 2026-02-09 11:45:20 +09:00
parent edc3317e37
commit 0e49214ee7
3 changed files with 4 additions and 4 deletions

View File

@ -1044,9 +1044,9 @@ export class BackgroundManager {
}
/**
* Get all completed tasks still in memory (for compaction hook)
* Get all non-running tasks still in memory (for compaction hook)
*/
getCompletedTasks(): BackgroundTask[] {
getNonRunningTasks(): BackgroundTask[] {
return Array.from(this.tasks.values()).filter(t => t.status !== "running")
}

View File

@ -48,7 +48,7 @@ export class TaskStateManager {
getRunningTasks(): BackgroundTask[] {
return Array.from(this.tasks.values()).filter(t => t.status === "running")
}
getCompletedTasks(): BackgroundTask[] {
getNonRunningTasks(): BackgroundTask[] {
return Array.from(this.tasks.values()).filter(t => t.status !== "running")
}

View File

@ -44,7 +44,7 @@ export function getRunningTasks(tasks: Iterable<BackgroundTask>): BackgroundTask
return Array.from(tasks).filter((t) => t.status === "running")
}
export function getCompletedTasks(tasks: Iterable<BackgroundTask>): BackgroundTask[] {
export function getNonRunningTasks(tasks: Iterable<BackgroundTask>): BackgroundTask[] {
return Array.from(tasks).filter((t) => t.status !== "running")
}