Skip to content

feat: add workspace project lifecycle teardown#2243

Open
neversettle17-101 wants to merge 1 commit into
ao/agent-orchestrator-19/workspace-projects-backendfrom
ao/agent-orchestrator-19/multi-worktree-lifecycle
Open

feat: add workspace project lifecycle teardown#2243
neversettle17-101 wants to merge 1 commit into
ao/agent-orchestrator-19/workspace-projects-backendfrom
ao/agent-orchestrator-19/multi-worktree-lifecycle

Conversation

@neversettle17-101

Copy link
Copy Markdown
Collaborator

Summary

  • extend the workspace project adapter port with per-repo destroy, force-destroy, restore, preserve, and apply operations
  • route kill, cleanup, shutdown, reconcile, and restore-all through session_worktrees for workspace projects
  • preserve dirty workspace-project repos before force-removal, mark successful interactive removals non-restorable, and mark failed removals retry_remove
  • move stray restore paths aside before recreating workspace-project worktrees

Scope

This is the next backend milestone after workspace-aware spawn in #2224: multi-worktree kill/cleanup/shutdown/restore using session_worktrees rows. It does not include frontend work, workspace-aware SCM observation, root land/discard APIs, or full workspace status aggregation.

Tests

  • cd backend && go test ./internal/session_manager
  • cd backend && go test ./internal/adapters/workspace/gitworktree
  • cd backend && go test ./internal/storage/sqlite/store -run 'TestSessionWorktreesRoundTrip|TestUpsertSessionWorktreeEmptyStateDefaultsToActive'\n\nPart of Complete backend support for workspace projects #2222.

@neversettle17-101 neversettle17-101 force-pushed the ao/agent-orchestrator-19/multi-worktree-lifecycle branch from ee6b937 to 4852308 Compare June 27, 2026 18:15
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