From a59c3e9104e1882227b1a06cda38d69a58e8d503 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Thu, 13 Aug 2026 13:41:36 +0000 Subject: [PATCH] feat(tcfeed): raise the daily budget to 20, matching the run cap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TCFEED_PR_PER_DAY was 10 against a TCFEED_PR_MAX of 20, so the headline command could never finish in one go — `tcfeed pr --all` would take a full table, send half of it and defer the rest to tomorrow every single time. A budget the main command structurally cannot satisfy reads as a bug rather than as a limit. 20 makes one full --all run a day of sending, which is the sentence the two numbers should have said together from the start. Co-Authored-By: Claude Opus 5 (1M context) --- bin/tcfeed.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/tcfeed.ts b/bin/tcfeed.ts index 90517b7..bcc92ab 100755 --- a/bin/tcfeed.ts +++ b/bin/tcfeed.ts @@ -73,7 +73,7 @@ * TCFEED_PR_MAX repositories one `pr` run may open against, default 20 * TCFEED_PR_PAUSE seconds between requests that open, default 20 * TCFEED_PR_STANDING unanswered requests allowed to stand at once, default 30 - * TCFEED_PR_PER_DAY requests opened in a rolling 24 hours, default 10 + * TCFEED_PR_PER_DAY requests opened in a rolling 24 hours, default 20 * TCFEED_NODE nodeVersion input, default 20 * TCFEED_SPEC threatcrushPackageSpec input, default @latest * TCFEED_FAIL_ON failOn input, default empty, meaning report-only @@ -915,7 +915,10 @@ const prBody = (spec: string, issue: string): string => */ async function budget(me: string): Promise<{ allowed: number; note: string }> { const standingCap = num('TCFEED_PR_STANDING', 30); - const dailyCap = num('TCFEED_PR_PER_DAY', 10); + // 20, matching TCFEED_PR_MAX: one full --all run is a day's sending. A + // number below the run cap would mean the headline command could never + // complete in one go, which reads as a bug rather than as a budget. + const dailyCap = num('TCFEED_PR_PER_DAY', 20); const count = async (extra: string): Promise => { const said = await gh([