Timeout for switch lockout
This commit is contained in:
@@ -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{},
|
||||
|
||||
Reference in New Issue
Block a user