feat(cliproxy): auto-sync on profile create

This commit is contained in:
kaitranntt
2026-01-28 11:57:22 -05:00
parent 28b0e89b34
commit b2ba402d0f
+4
View File
@@ -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<void> {
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;