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:
parent
a5b1c9ea2f
commit
08cf5d5ce7
1 changed files with 2 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue