prompt
The active list still shows completed todos. Find the bug, fix it, and prove it with tests.
Run Review
todo-cli · main · all · 23 events
Codex CLI · gpt-5.6-sol · effort high
sed -n '1,220p' test/todos.test.js
38 lines read. Existing test expects completed todos to be hidden.
pnpm test
✕ listActiveTodos removes completed todos AssertionError: expected [ 3 todos ] to deeply equal [ 2 todos ] ✓ renderActiveTodos only shows open work # fail 1
sed -n '1,220p' src/todos.js
pnpm test
✓ listActiveTodos removes completed todos ✓ renderActiveTodos only shows open work # pass 2 # fail 0
pnpm test
✓ listActiveTodos removes completed todos ✓ renderActiveTodos only shows open work ✓ keeps original order for mixed lists # pass 3 # fail 0
git diff --stat
src/todos.js | 2 +- test/todos.test.js | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-)