Skip to content

feat(cli): add move command for moving tasks between projects#298

Merged
bborn merged 1 commit intomainfrom
task/765-sometimes-i-misassing-a-task
Jan 31, 2026
Merged

feat(cli): add move command for moving tasks between projects#298
bborn merged 1 commit intomainfrom
task/765-sometimes-i-misassing-a-task

Conversation

@bborn
Copy link
Copy Markdown
Owner

@bborn bborn commented Jan 31, 2026

Summary

  • Adds task move <task-id> <target-project> CLI command to move tasks between projects
  • Properly cleans up old task's resources (Claude session, tmux window, worktree) before moving
  • Creates a new task in the target project with preserved content

The new task preserves:

  • Title, body, type, tags
  • Status (unless processing/blocked, which resets to backlog)
  • Executor, pinned flag

The new task resets:

  • Worktree path, branch name, port
  • Claude session ID, daemon session
  • Started/completed timestamps

Usage

task move 42 myapp           # Move task #42 to project "myapp"
task move 42 myapp --execute # Move and queue for execution
task move 42 myapp --force   # Skip confirmation prompt

Notes

The TUI already supports this feature when editing a task and changing its project field. This adds the same functionality to the CLI for convenience.

Test plan

  • Added unit tests for moveTask function
  • All existing tests pass
  • Manual testing: create a task in wrong project, move it to correct project

🤖 Generated with Claude Code

When a task is accidentally created in the wrong project, its worktree
and Claude sessions are tied to the wrong repository. This command
properly moves a task by:

1. Cleaning up the old task's resources (Claude session, tmux window, worktree)
2. Deleting the old task
3. Creating a new task in the target project with preserved content

The new task preserves: title, body, type, tags, status, executor, pinned
The new task resets: worktree, branch, port, session IDs, timestamps

Usage: task move <task-id> <target-project> [--execute] [--force]

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn merged commit fb3d779 into main Jan 31, 2026
3 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.

1 participant