Skip to content

itdove/devaiflow#675: Add issue-aware cleanup for completed worktrees - #677

Merged
itdove merged 3 commits into
mainfrom
675
Nov 17, 2026
Merged

itdove merged 3 commits into
mainfrom
675

Conversation

@itdove

@itdove itdove commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Description

#675: Add issue-aware cleanup for completed worktrees

Changes in this branch:

Related issue (if applicable)

Closes #675 (issue)

Type of change

  • Bug fix
  • New feature
  • Security fix or detection change
  • Documentation or workflow change
  • Refactoring or maintenance

Security impact

  • This change has no security impact.
  • This change affects security behavior; describe the threat, protection, and user-visible behavior below.

No security behavior change was identified from the session context.

Testing

  • Tests added or updated where needed.
  • Related tests pass locally. (test results not captured in session context)
  • Manual verification completed, if applicable. (manual verification not captured in session context)

Evidence from session context:

  • Test files changed: tests/test_branch_import_sync.py, tests/test_complete_command.py, tests/test_export_manager.py, tests/test_git_issue_creation_guidance.py, tests/test_git_utils.py, tests/test_github_transitions.py, tests/test_gitlab_field_mapper_cleanup_status.py, tests/test_gitlab_transitions.py, tests/test_issue_tracker_status.py, tests/test_jira_client_extended.py
  • Test command results were not captured in the session metadata.

Commands run

No command evidence was captured in the session context.

Checklist

  • The change is limited to this PR's purpose.
  • Documentation is updated where needed.
  • CHANGELOG.md is updated for notable changes, or no update is needed.
  • Backward compatibility was considered for the public SDK and configuration. (not independently verified in session context)
  • New dependencies have compatible licenses, if applicable. (no new dependencies identified)
  • UX contract tests are included when user-visible security behavior changes. (not applicable to this change)

- Add `daf worktree clean` for safe cleanup retries
- Require confirmed closed issue status before removal
- Add GitLab transitions and shared status matching
- Report and separately confirm local worktree data deletion

🤖 Generated with [OpenCode](https://opencode.ai)

Co-Authored-By: OpenCode <noreply@opencode.ai>
itdove and others added 2 commits November 17, 2026 15:51
- Collapse whitespace before matching cleanup guidance
- Normalize worktree error output checks
- Preserve traceback and cleanup behavior assertions

🤖 Generated with [OpenCode](https://opencode.ai)

Co-Authored-By: OpenCode <noreply@opencode.ai>
@itdove
itdove marked this pull request as ready for review November 17, 2026 21:01
@itdove
itdove merged commit 9778802 into main Nov 17, 2026
11 checks passed
@itdove
itdove deleted the 675 branch November 17, 2026 21:01
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 issue-aware cleanup for completed worktrees

1 participant