Skip to content

feat(todos): add 'cancelled' status (V1 cancel capability) - #4

Merged
dirtysouthalpha merged 1 commit into
mainfrom
feat/todo-cancelled-status
Jul 26, 2026
Merged

dirtysouthalpha merged 1 commit into
mainfrom
feat/todo-cancelled-status

Conversation

@dirtysouthalpha

Copy link
Copy Markdown
Owner

Phase 2 of the vNext plan — advances the CLI's V1 orchestration core. The V1 DoD calls for todo cancel/pause/resume, but TodoStatus lacked 'cancelled'. Added it across the type, status mark, validation, tool schema, and render (surfaces '2/5 done, 1 cancelled'). protocol.ts now reuses TodoStatus so the wire type can't drift. 3 new tests; tsc clean; affected suites green. The 5 pre-existing Windows-env failures are unrelated.

Phase 2 of the vNext plan — advances the CLI's V1 orchestration core. The
ROADMAP-V2 V1 DoD calls for todo cancel/pause/resume, but TodoStatus only had
pending|in_progress|completed. Added a 'cancelled' status:

- TodoStatus, STATUS_MARK ([-]), VALID_STATUS, the parse-error message, and the
  todo_write tool schema enum all now include 'cancelled'.
- render() surfaces cancelled items separately so progress stays honest
  ("2/5 done, 1 cancelled") — cancelled is resolved but not "done".
- protocol.ts now imports TodoStatus instead of re-declaring the narrow union,
  so the wire type can't drift from the model again.

3 new tests (accept+render, no-suffix-when-none, unknown-status message). tsc
clean; todos/orchestration/serve-protocol suites green. The 5 unrelated
pre-existing Windows-env failures (bwrap/atomic-write/secrets) are untouched.
@dirtysouthalpha
dirtysouthalpha merged commit 40fe1d4 into main Jul 26, 2026
1 check passed
@dirtysouthalpha
dirtysouthalpha deleted the feat/todo-cancelled-status branch July 26, 2026 18:20
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.

1 participant