Skip to content

Conversation

@mhenrichsen
Copy link

Summary

  • Adds a new "Auto-cleanup on PR merge" setting (Off / Archive / Delete) under Settings > General > Tasks
  • New PrMergeWatcherService polls active tasks every 60s, checking PR status via gh pr view
  • When a merged PR is detected, the task is automatically archived or deleted based on the setting, with a toast notification in the UI

Test plan

  • Enable setting to "Archive", verify a task with a merged PR gets auto-archived within 60s
  • Enable setting to "Delete", verify a task with a merged PR gets auto-deleted
  • Set to "Off", verify no auto-cleanup occurs
  • Verify toast notification appears when a task is auto-cleaned
  • Verify archived tasks sidebar refreshes correctly after auto-archive
  • Verify npm run type-check and npm run lint pass

Closes #766

🤖 Generated with Claude Code

Add a new setting under Tasks that periodically checks active tasks' PR
status via `gh pr view` and automatically archives or deletes tasks when
their linked PR is merged. The setting supports three modes: Off (default),
Archive, and Delete.

- New PrMergeWatcherService polls every 60s for merged PRs
- Setting persisted in AppSettings with validation
- Renderer listens for task:auto-cleaned IPC events to refresh UI
- Toast notification shown when a task is auto-cleaned

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 5, 2026

@mhenrichsen is attempting to deploy a commit to the General Action Team on Vercel.

A member of the Team first needs to authorize it.

@arnestrickmann
Copy link
Contributor

@mhenrichsen thank you for opening the PR!

@rabanspiegel this seems relevant for the teardown implementation you own right now.

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.

Add setting to auto archive/delete tasks when PR is merged

2 participants