Lead status tool

This commit is contained in:
Ian Gulliver
2026-10-17 08:04:05 -07:00
parent 3b23691bd7
commit 1ba79e99df
5 changed files with 35 additions and 13 deletions
+3 -1
View File
@@ -37,6 +37,7 @@ type Manager struct {
worktreeRoot string
leadRoot string
codexHome string
status func(context.Context) (api.Status, error)
mu sync.Mutex
live map[string]*live
@@ -112,12 +113,13 @@ func (l *live) implementer() bool {
return l.owner == "" && l.reviewID == ""
}
func New(st *store.Store, worktreeRoot, leadRoot, codexHome string) *Manager {
func New(st *store.Store, worktreeRoot, leadRoot, codexHome string, status func(context.Context) (api.Status, error)) *Manager {
m := &Manager{
store: st,
worktreeRoot: worktreeRoot,
leadRoot: leadRoot,
codexHome: codexHome,
status: status,
live: map[string]*live{},
starting: map[string]*start{},
deliverLocks: map[string]*sessionLock{},