diff --git a/src/commands/api-command.ts b/src/commands/api-command.ts index df38438e..69138ed1 100644 --- a/src/commands/api-command.ts +++ b/src/commands/api-command.ts @@ -39,6 +39,7 @@ import { getPresetIds, type ModelMapping, } from '../api/services'; +import { syncToLocalConfig } from '../cliproxy/sync/local-config-sync'; interface ApiCommandArgs { name?: string; @@ -276,6 +277,9 @@ async function handleCreate(args: string[]): Promise { process.exit(1); } + // Trigger sync to local CLIProxy config (best-effort, ignore result) + syncToLocalConfig(); + // Display success console.log(''); const hasCustomMapping = opusModel !== model || sonnetModel !== model || haikuModel !== model;