agent-orchestrator/backend/internal/service/project
Khushi Diwan d81d76280d
fix(project): detect the repo's default branch on add (#209)
Register the repo's actual checked-out branch as the project default so
session worktrees base off a ref that exists. Previously Config.DefaultBranch
was left empty and defaulted to "main", so a repo on master/develop/trunk
failed every spawn with BRANCH_NOT_FETCHED and had no CLI workaround.

Detection is best-effort (symbolic-ref --short HEAD); a detached HEAD or git
error falls back to the existing main default. Only persist when the branch
diverges from main, so the common main repo keeps a NULL config.

Closes #208
2026-06-15 14:51:07 +05:30
..
dto.go feat: add workspace project registration foundation (#165) 2026-06-10 16:10:14 +05:30
service.go fix(project): detect the repo's default branch on add (#209) 2026-06-15 14:51:07 +05:30
service_test.go fix(project): detect the repo's default branch on add (#209) 2026-06-15 14:51:07 +05:30
store.go feat: add workspace project registration foundation (#165) 2026-06-10 16:10:14 +05:30
types.go feat: add workspace project registration foundation (#165) 2026-06-10 16:10:14 +05:30
workspace_registration.go feat: add workspace project registration foundation (#165) 2026-06-10 16:10:14 +05:30