Keep pane focus and its report time in one record

This commit is contained in:
Ian Gulliver
2026-10-23 14:16:09 -07:00
parent 8106258b48
commit a379fcec7d
3 changed files with 14 additions and 13 deletions
+2 -4
View File
@@ -56,8 +56,7 @@ type Manager struct {
closing bool
rateLimits map[api.AgentSessionVendor]api.Usage
usageCommands map[api.AgentSessionVendor]string
paneFocus map[string]api.PaneFocus
paneReported map[string]time.Time
paneReports map[string]paneReport
paneMoved map[string]time.Time
moveHolds map[string]showHold
startHolds map[string]showHold
@@ -162,8 +161,7 @@ func New(st *store.Store, worktreeRoot, leadRoot, handsRoot, codexHome, antigrav
rateLimits: map[api.AgentSessionVendor]api.Usage{},
usageCommands: map[api.AgentSessionVendor]string{},
usageMu: map[api.AgentSessionVendor]*sync.Mutex{api.Claude: {}, api.Codex: {}, api.Antigravity: {}},
paneFocus: map[string]api.PaneFocus{},
paneReported: map[string]time.Time{},
paneReports: map[string]paneReport{},
paneMoved: map[string]time.Time{},
moveHolds: map[string]showHold{},
startHolds: map[string]showHold{},