Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions apps/cli/commands/site/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,13 @@ export async function runCommand(
isSqliteUpdated ? __( 'SQLite integration configured' ) : __( 'SQLite integration skipped' )
);

if ( process.env.ENABLE_AGENT_SUITE === 'true' ) {
try {
await installAiInstructionsToSite( sitePath, getAiInstructionsPath() );
} catch ( error ) {
logger.reportError(
new LoggerError( __( 'Failed to install AI instructions. Proceeding anyway…' ), error ),
false
);
}
try {
await installAiInstructionsToSite( sitePath, getAiInstructionsPath() );
} catch ( error ) {
logger.reportError(
new LoggerError( __( 'Failed to install AI instructions. Proceeding anyway…' ), error ),
false
);
}

logger.reportStart( LoggerAction.ASSIGN_PORT, __( 'Assigning port…' ) );
Expand Down
10 changes: 1 addition & 9 deletions apps/studio/src/ipc-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import os from 'os';
import nodePath from 'path';
import * as Sentry from '@sentry/electron/main';
import {
installAiInstructionsToSite,
installSkillToSite,
removeSkillFromSite,
updateManagedInstructionFiles,
Expand Down Expand Up @@ -58,7 +57,7 @@ import {
trustRootCA,
} from 'src/lib/certificate-manager';
import { simplifyErrorForDisplay } from 'src/lib/error-formatting';
import { buildFeatureFlags, getFeatureFlagFromEnv } from 'src/lib/feature-flags';
import { buildFeatureFlags } from 'src/lib/feature-flags';
import { getImageData } from 'src/lib/get-image-data';
import { exportBackup } from 'src/lib/import-export/export/export-manager';
import { ExportOptions } from 'src/lib/import-export/export/types';
Expand Down Expand Up @@ -412,13 +411,6 @@ export async function createSite(
void loadThemeDetails( event, server.details.id );
}

// Install AI instructions and skills into the new site
if ( getFeatureFlagFromEnv( 'enableAgentSuite' ) ) {
void installAiInstructionsToSite( path, getAiInstructionsPath() ).catch( ( error ) => {
console.error( '[ai-instructions] Failed to install AI instructions to new site:', error );
} );
}

return server.details;
} catch ( error ) {
// Skip WASM memory errors - they're user system issues, not bugs
Expand Down
Loading