@@ -16,7 +16,6 @@ const CloudAgents: React.FC = () => {
1616 const getCloudAgents = ( ) => {
1717 // Only fetch agents if user is authenticated
1818 if ( ! cloudIsAuthenticated ) {
19- console . log ( "[CloudAgents] User not authenticated, skipping fetch" )
2019 setAgents ( [ ] )
2120 setLoading ( false )
2221 setError ( false )
@@ -25,23 +24,15 @@ const CloudAgents: React.FC = () => {
2524
2625 setLoading ( true )
2726 setError ( false )
28-
29- console . log ( "[CloudAgents] Requesting cloud agents from extension" )
30-
31- // Request cloud agents from the extension
3227 vscode . postMessage ( { type : "getCloudAgents" } )
3328 }
3429
3530 // Set up message listener for the response
3631 const handleMessage = ( event : MessageEvent ) => {
3732 const message = event . data
3833 if ( message . type === "cloudAgents" ) {
39- console . log ( "[CloudAgents] Received cloud agents response:" , message )
40-
4134 if ( message . error ) {
42- console . log ( "[CloudAgents] Error fetching cloud agents:" , message . error )
4335 setError ( true )
44- // Don't use mock data on error - just show empty state
4536 setAgents ( [ ] )
4637 } else {
4738 setAgents ( message . agents || [ ] )
@@ -60,7 +51,6 @@ const CloudAgents: React.FC = () => {
6051 }
6152 } , [ cloudIsAuthenticated , cloudUserInfo ?. organizationId ] ) // agents is excluded intentionally as it's set by the response
6253
63- // If not authenticated or there's an error, show nothing as requested
6454 if ( ! cloudIsAuthenticated || error ) {
6555 return null
6656 }
0 commit comments