Files
headquarter/openspec/changes/archive/2026-05-22-git-repo-working-clones/tasks.md
T
Fusion 063a839790 feat: implement repository clone mode with SSH key support
- Add clone_mode and branch fields to tool_instances
- Add ssh_key_id to git_repositories for per-repo SSH key assignment
- Implement host-side git cloning with branch selection (default: main)
- Mount SSH keys into containers for git operations in clone mode
- Add dirty state check on clone-mode instance deletion with confirmation
- Update SessionsPage with mount/clone selector, branch input, SSH key display
- Add SSH key selector to repository creation form
- Add dirty delete confirmation modal with changed files list
- Update API schemas and endpoints for new fields
- Sync delta specs to main specs (git-repo, tool-instances, repo-clone-mode)
- Archive completed OpenSpec change: repo-clone-mode-with-ssh
- Document git requirement for custom tool types

Quality gates: Frontend typecheck and build passed
OpenSpec: repo-clone-mode-with-ssh archived with all tasks complete
2026-05-22 22:56:35 +02:00

660 B

1. Backend - Repository Creation

  • 1.1 Switch clone-based repository creation from mirror clones to normal working clones
  • 1.2 Initialize blank repositories with a default branch name
  • 1.3 Preserve remote preflight and clear error handling

2. Backend - Git Sync Helpers

  • 2.1 Update pull behavior to use the current tracked branch when available
  • 2.2 Make branch helpers tolerate unborn HEAD in blank repos

3. Tests

  • 3.1 Add unit coverage for clone creation and blank repo initialization
  • 3.2 Add coverage for pull behavior on working clones and blank repos

4. Quality Gates

  • 4.1 Run targeted API tests