Skip to content

Add compact and configurable todo widget modes - #459

Merged
ilovepixelart merged 3 commits into
ilovepixelart:mainfrom
HuliLulu46:feat/todo-widget-modes
Nov 16, 2026
Merged

ilovepixelart merged 3 commits into
ilovepixelart:mainfrom
HuliLulu46:feat/todo-widget-modes

Conversation

@HuliLulu46

Copy link
Copy Markdown
Contributor

Summary

The todo widget can occupy up to 13 terminal rows even when only the current task matters. Default to a single progress line and let users choose the display:

/todos-widget compact   ● Todos (1/3) · ◐ Writing tests
/todos-widget full      existing multi-line panel
/todos-widget off       no widget
/todos                  complete task list

Mode changes take effect immediately without changing task state. The selected mode survives tree navigation and compaction; reloads and new sessions default to compact. Empty lists remain hidden, and compact labels flatten newlines and truncate to terminal width.

Evidence

  • Before: the new behavior tests run with 17 failures because /todos-widget and compact rendering are missing.
    After: 113 todo tests pass; extensions/todo.ts has 100% statement, branch, function and line coverage.
  • Full suite: 3,788 tests pass, 5 skipped; overall coverage is 97.72% statements, 93.42% branches, 97.65% functions and 99% lines.
  • Project checks pass via pnpm: pnpm exec biome check ., pnpm run type:check, pnpm exec knip, pnpm exec vitest run --coverage.
  • Tests cover the change.

Merge Danger

Door: two-way

Display-only change; full restores the previous panel. No task-state migration.

Blast Radius: todo

Changes the default persistent todo widget and adds one command. Task operations, persistence and /todos remain available.

HuliLulu46 and others added 3 commits November 16, 2026 14:15
RED: todo-more suite runs with 60 passing and 17 failing tests, caused by the missing todos-widget command and default compact rendering.
Default to a single progress line; support off, compact and full through /todos-widget while preserving /todos and task state. GREEN: 113 todo tests pass with 100% coverage for todo.ts; type checking and changed-file Biome checks pass.
Claude Code shows the whole task list whenever a task is created or
updated, so the full panel stays the default and compact is opt-in
through /todos-widget. A blank activeForm now falls back to the task
text, as Claude Code's spinner label does. The divergence from Claude
Code's Ctrl+T toggle is documented.
@ilovepixelart
ilovepixelart merged commit a5ffed6 into ilovepixelart:main Nov 16, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants