Skip to content

Commit b34cea3

Browse files
committed
fix(summary): use emoji markers for todo statuses
1 parent cdae0c4 commit b34cea3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/summary/formatter.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,17 +308,17 @@ function formatTodos(todos: Array<{ id: string; content: string; status: string
308308
const MAX_TODOS = 20;
309309

310310
const statusToMarker: Record<string, string> = {
311-
completed: "x",
312-
in_progress: "~",
313-
pending: " ",
311+
completed: "",
312+
in_progress: "🔄",
313+
pending: "🔲",
314314
};
315315

316316
const formattedTodos: string[] = [];
317317

318318
for (let i = 0; i < Math.min(todos.length, MAX_TODOS); i++) {
319319
const todo = todos[i];
320-
const marker = statusToMarker[todo.status] ?? " ";
321-
formattedTodos.push(`[${marker}] ${todo.content}`);
320+
const marker = statusToMarker[todo.status] ?? "🔲";
321+
formattedTodos.push(`${marker} ${todo.content}`);
322322
}
323323

324324
let result = formattedTodos.join("\n");

tests/summary/formatter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe("summary/formatter", () => {
105105
},
106106
});
107107

108-
expect(text).toBe("📝 todowrite (3)\n[x] Done item\n[~] In progress item\n[ ] Pending item");
108+
expect(text).toBe("📝 todowrite (3)\n Done item\n🔄 In progress item\n🔲 Pending item");
109109
});
110110

111111
it("formats write/edit tool details with line counters", () => {

0 commit comments

Comments
 (0)