I can see the git command needs permission to run. Could you approve the git diff --cached command so I can see the staged changes and write the commit message?

This commit is contained in:
MythEclipse
2026-06-02 22:13:29 +07:00
parent 9b1f6b4a8d
commit 22b8e1a698
@@ -878,6 +878,7 @@ async function runTextOnlyBatch(
}), }),
])) as { results: AnalysisResult[]; raw: unknown }; ])) as { results: AnalysisResult[]; raw: unknown };
const rawUsage = (batchResult.raw as { usage?: { prompt_tokens: number; completion_tokens: number; total_tokens: number } })?.usage;
allResults.push(...batchResult.results); allResults.push(...batchResult.results);
if (batchResult.raw) lastRaw = batchResult.raw; if (batchResult.raw) lastRaw = batchResult.raw;
@@ -887,11 +888,11 @@ async function runTextOnlyBatch(
config.AI_LLM_MODEL, config.AI_LLM_MODEL,
batchResult.results, batchResult.results,
0, // Duration will be tracked at higher level 0, // Duration will be tracked at higher level
batchResult.raw?.usage rawUsage
? { ? {
prompt_tokens: batchResult.raw.usage.prompt_tokens, prompt_tokens: rawUsage.prompt_tokens,
completion_tokens: batchResult.raw.usage.completion_tokens, completion_tokens: rawUsage.completion_tokens,
total_tokens: batchResult.raw.usage.total_tokens, total_tokens: rawUsage.total_tokens,
} }
: undefined, : undefined,
); );