fix(ai): never queue a logged entry for AI re-summarization

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Dave 2026-09-19 10:42:30 +02:00
parent a5b1c9ea2f
commit 08cf5d5ce7

View file

@ -39,6 +39,7 @@ async function pendingCommits(projectId: string): Promise<CommitRecord[]> {
filter: [
`project = "${projectId}"`,
"is_merge = false",
`source != "manual"`,
`(summary = "" || summary_version < ${PROMPT_VERSION})`,
`summary_attempts < ${MAX_ATTEMPTS}`,
].join(" && "),
@ -175,7 +176,7 @@ export async function summaryStatus(projectId: string): Promise<{
const count = async (filter: string) =>
(await pb.collection("commits").getList(1, 1, { filter, fields: "id" })).totalItems;
const base = `project = "${projectId}" && is_merge = false`;
const base = `project = "${projectId}" && is_merge = false && source != "manual"`;
return {
total: await count(base),