feat: add 'blocked' status to tasks and todos (#22735)

This commit is contained in:
anj-s
2026-03-17 16:24:26 -07:00
committed by GitHub
parent e1eefffcf1
commit b8719bcd47
13 changed files with 64 additions and 9 deletions
+6 -2
View File
@@ -48,10 +48,11 @@ export async function buildTodosReturnDisplay(
}
}
const statusOrder = {
const statusOrder: Record<TaskStatus, number> = {
[TaskStatus.IN_PROGRESS]: 0,
[TaskStatus.OPEN]: 1,
[TaskStatus.CLOSED]: 2,
[TaskStatus.BLOCKED]: 2,
[TaskStatus.CLOSED]: 3,
};
const sortTasks = (a: TrackerTask, b: TrackerTask) => {
@@ -80,6 +81,8 @@ export async function buildTodosReturnDisplay(
status = 'in_progress';
} else if (task.status === TaskStatus.CLOSED) {
status = 'completed';
} else if (task.status === TaskStatus.BLOCKED) {
status = 'blocked';
}
const indent = ' '.repeat(depth);
@@ -585,6 +588,7 @@ class TrackerVisualizeInvocation extends BaseToolInvocation<
const statusEmojis: Record<TaskStatus, string> = {
open: '⭕',
in_progress: '🚧',
blocked: '⛔',
closed: '✅',
};