Timeout for switch lockout

This commit is contained in:
Ian Gulliver
2026-10-16 08:36:08 -07:00
parent 78cca2fcbe
commit 3274bf0498
4 changed files with 49 additions and 8 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ type Manager struct {
rateLimits map[api.AgentSessionVendor]map[string]any
leadAnswered map[string]bool
paneFocused map[string]bool
startedTodo map[string]bool
startedTodo map[string]time.Time
deliverMu sync.Mutex
leadMu sync.Mutex
@@ -106,7 +106,7 @@ func New(st *store.Store, worktreeRoot, leadRoot, codexHome string) *Manager {
rateLimits: map[api.AgentSessionVendor]map[string]any{},
leadAnswered: map[string]bool{},
paneFocused: map[string]bool{},
startedTodo: map[string]bool{},
startedTodo: map[string]time.Time{},
signals: make(chan api.Event, 1024),
snaps: map[string]*snapState{},
mergeHolders: map[string]string{},