Skip to content

Conversation

@newhook
Copy link
Owner

@newhook newhook commented Jan 11, 2026

Summary

  • Fix co complete for task-based beads: When a bead is part of a task (in task_beads), completion now works correctly even if the bead doesn't exist in the standalone beads table
  • Push and set upstream on co work create: Automatically runs git push --set-upstream after creating work branches to prevent later "no upstream branch" errors
  • Allow multiple task IDs in co task delete: Can now delete multiple tasks in one command (e.g., co task delete task-1 task-2)
  • Fix task ID parsing in co run: Task IDs containing dots (like w-xxx.pr) are now correctly validated against the database instead of being misinterpreted as work IDs

Test plan

  • Verify co complete <bead-id> works for beads that are part of tasks
  • Verify co work create pushes the branch to origin automatically
  • Verify co task delete accepts multiple task IDs
  • Verify co run <task-id> correctly identifies task IDs with dots

Closes: ac-19j, ac-0lx, ac-i2z

🤖 Generated with Claude Code

newhook and others added 4 commits January 11, 2026 15:44
The run command was incorrectly treating task IDs like 'w-xxx.pr' as
work IDs in some cases, leading to confusing 'work not found' errors.

Now the command validates task IDs (those containing a dot) against
the database first, ensuring they are correctly recognized and
providing clear 'task not found' error messages when appropriate.

Closes: ac-i2z

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Changed Args from cobra.ExactArgs(1) to cobra.MinimumNArgs(1) and
updated runTaskDelete to iterate over all provided task IDs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add git push --set-upstream origin <branch> after creating the worktree
and feature branch in 'co work create'. This prevents users from getting
'no upstream branch' errors when they try to push later.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
When a bead is part of a task (in task_beads), the completion now
works correctly even if the bead doesn't exist in the standalone
beads table. Previously it would fail with "bead not found".

Changes:
- For task-based beads: Complete in task_beads, silently ignore
  beads table errors (backwards compat only)
- For standalone beads: Provide clearer error message with hint
  to use task ID instead

Closes: ac-19j

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@newhook newhook merged commit c7d044e into main Jan 11, 2026
newhook added a commit that referenced this pull request Jan 12, 2026
#39)

* Fix run command task ID parsing to validate against database

The run command was incorrectly treating task IDs like 'w-xxx.pr' as
work IDs in some cases, leading to confusing 'work not found' errors.

Now the command validates task IDs (those containing a dot) against
the database first, ensuring they are correctly recognized and
providing clear 'task not found' error messages when appropriate.

Closes: ac-i2z

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Allow co task delete to accept multiple task IDs

Changed Args from cobra.ExactArgs(1) to cobra.MinimumNArgs(1) and
updated runTaskDelete to iterate over all provided task IDs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Implement ac-0lx: Push and set upstream when creating work branches

Add git push --set-upstream origin <branch> after creating the worktree
and feature branch in 'co work create'. This prevents users from getting
'no upstream branch' errors when they try to push later.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix co complete to handle closed beads and task IDs properly

When a bead is part of a task (in task_beads), the completion now
works correctly even if the bead doesn't exist in the standalone
beads table. Previously it would fail with "bead not found".

Changes:
- For task-based beads: Complete in task_beads, silently ignore
  beads table errors (backwards compat only)
- For standalone beads: Provide clearer error message with hint
  to use task ID instead

Closes: ac-19j

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
@newhook newhook deleted the bug_fixes branch January 16, 2026 01:43
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