Add a per-user lead agent and make the right pane task-focused
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user