Skip to content

Auto-close bead on PR merge detection#53

Merged
AvivK5498 merged 2 commits into
mainfrom
bd-beads-kanban-ui-62n
Jan 27, 2026
Merged

Auto-close bead on PR merge detection#53
AvivK5498 merged 2 commits into
mainfrom
bd-beads-kanban-ui-62n

Conversation

@AvivK5498

Copy link
Copy Markdown
Owner

Closes beads-kanban-ui-62n

When usePRStatus polling detects a PR with state='merged', automatically trigger the cleanup flow (delete worktree + delete branch + bd close) instead of requiring the user to manually click 'Clean Up'. The Rust backend delete_worktree endpoint already handles the full chain (worktree removal, branch deletion, bead close). The frontend just needs to auto-trigger it when merged state is detected. Files: src/components/bead-detail.tsx (merge detection + auto-cleanup trigger).

AvivK5498 and others added 2 commits January 27, 2026 18:10
When usePRStatus polling detects a merged PR and the worktree still
exists, automatically trigger cleanup (delete worktree + branch + close
bead) instead of requiring a manual "Clean Up" click. Uses a useRef
guard to prevent duplicate triggers. Shows a toast notification for
auto-triggered cleanups. Manual button remains as fallback.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add tooltip explaining why button is disabled when bead status is not
"inreview". Uses Radix Tooltip with span wrapper for disabled button
hover events. Only shows tooltip content when status prevents action.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@AvivK5498 AvivK5498 merged commit dc40a3e into main Jan 27, 2026
2 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