File tree Expand file tree Collapse file tree
apps/api/src/integration-platform/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,8 +89,15 @@ export class ServicesController {
8989 } else if ( detectedServices ) {
9090 enabled = detectedServices . includes ( s . id ) && ! disabledServices . has ( s . id ) ;
9191 } else {
92- // Default: use enabledByDefault from manifest, otherwise enabled
93- enabled = ( s . enabledByDefault ?? true ) && ! disabledServices . has ( s . id ) ;
92+ // No detection data yet:
93+ // - GCP should default to enabled (scan already runs across SCC categories by default),
94+ // so UI doesn't misleadingly show everything as OFF immediately after OAuth connect.
95+ // - Others keep manifest defaults.
96+ if ( providerSlug === 'gcp' ) {
97+ enabled = ! disabledServices . has ( s . id ) ;
98+ } else {
99+ enabled = ( s . enabledByDefault ?? true ) && ! disabledServices . has ( s . id ) ;
100+ }
94101 }
95102
96103 return {
You can’t perform that action at this time.
0 commit comments