Add a per-user lead agent and make the right pane task-focused

This commit is contained in:
Ian Gulliver
2026-10-15 09:40:30 -07:00
parent d212590cdc
commit bdd1ae48f0
68 changed files with 3332 additions and 1364 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ func (s *Store) SessionStarted(ctx context.Context, sessionID string) (bool, err
}
func (s *Store) CountRunning(ctx context.Context) (map[api.AgentSessionVendor]int, error) {
rows, err := s.db.QueryContext(ctx, `SELECT vendor, COUNT(*) FROM agent_sessions WHERE state = ? GROUP BY vendor`, string(api.AgentSessionStateRunning))
rows, err := s.db.QueryContext(ctx, `SELECT vendor, COUNT(*) FROM agent_sessions WHERE state = ? AND owner = '' GROUP BY vendor`, string(api.AgentSessionStateRunning))
if err != nil {
return nil, err
}