Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cli/commands/assistants/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Command } from 'commander';
import chalk from 'chalk';
import type { Assistant, AssistantBase } from 'codemie-sdk';
import { logger } from '@/utils/logger.js';
import { ConfigLoader } from '@/utils/config.js';
import { ConfigLoader, loadRegisteredAssistants } from '@/utils/config.js';
import { StorageScope } from '@/env/types.js';
import type { CodemieAssistant } from '@/env/types.js';
import { MESSAGES, ACTIONS } from '@/cli/commands/assistants/constants.js';
Expand Down Expand Up @@ -66,7 +66,7 @@ async function setupAssistants(options: SetupCommandOptions, hostAgent?: TargetA

const config = await ConfigLoader.load(workingDir, { name: profileName });
const client = await getAuthenticatedClient(config);
const registeredAssistants = config.codemieAssistants || [];
const registeredAssistants = await loadRegisteredAssistants();
config.codemieAssistants = registeredAssistants;

const { selectedIds, action } = await promptAssistantSelection(config, options, client);
Expand Down
Loading