feat(opencode): Add output channel logging and minimal variant

This commit is contained in:
2026-04-07 11:30:45 +02:00
parent fd4fd87ea8
commit 55df24e0fd
2 changed files with 13 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
import { exec, spawn, ExecException } from "child_process";
import * as vscode from "vscode";
import { getGitDiff, getRepositoryRoot } from "./gitService";
import { output } from "./extension";
export interface GenerateOptions {
model?: string;
@@ -53,8 +54,17 @@ ${diff}
Generate a concise Conventional Commit message for these changes:`;
const log = `[${Date.now()}]\r\n${prompt}`;
output.appendLine(log);
return new Promise((resolve, reject) => {
const args: string[] = ["run", "--format", "default"];
const args: string[] = [
"run",
"--format",
"default",
"--variant",
"minimal",
];
if (model) {
args.push("--model", model);