From b2ba402d0fb4204457ae1f09016cb21bd9b5a6e2 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Mon, 26 Jan 2026 14:45:08 -0500 Subject: [PATCH] feat(cliproxy): auto-sync on profile create --- src/commands/api-command.ts | 4 ++++ 1 file changed, 4 insertions(+) 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;