[FEATURE] Reorder tasks in TaskList (insert before/after, move)
Problem
TaskCreate always appends to the end of the task list, and TaskUpdate doesn't expose a way to change a task's position. When I want a newly-created task to be sequenced before an existing one (e.g. "this should be done before task #N"), the only options are:
- Create the task and rely on the description to communicate ordering, or
- Delete and re-create downstream tasks in the desired order.
Neither is great. Description-based ordering is fragile (the assistant has to remember to honor it); recreating tasks loses history and IDs.
Proposal
Either:
- Add an optional
insertBefore/insertAfterparameter toTaskCreatetaking an existing task ID, or - Add a
positionfield (or equivalent) toTaskUpdateso tasks can be moved.
A move operation that takes (taskId, beforeId) would also work.
Why
The dependency fields (blocks/blockedBy) express logical ordering but not display ordering, and not every "do this before that" relationship is a hard dependency — sometimes it's just a priority preference.
🤖 Generated with Claude Code
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗