fix(coding-agent): discovered ollama models at runtime
This commit is contained in:
@@ -32,6 +32,7 @@ export async function runAgenticCommit(args: CommitCommandArgs): Promise<void> {
|
||||
|
||||
writeStdout("● Resolving model...");
|
||||
const modelRegistry = new ModelRegistry(authStorage);
|
||||
await modelRegistry.refresh();
|
||||
const stagedFilesPromise = (async () => {
|
||||
let stagedFiles = await git.getStagedFiles();
|
||||
if (stagedFiles.length === 0) {
|
||||
|
||||
@@ -43,6 +43,7 @@ async function runLegacyCommitCommand(args: CommitCommandArgs): Promise<void> {
|
||||
const commitSettings = settings.getGroup("commit");
|
||||
const authStorage = await discoverAuthStorage();
|
||||
const modelRegistry = new ModelRegistry(authStorage);
|
||||
await modelRegistry.refresh();
|
||||
|
||||
const { model: primaryModel, apiKey: primaryApiKey } = await resolvePrimaryModel(
|
||||
args.model,
|
||||
|
||||
Reference in New Issue
Block a user