From 65fbb3e1aaaf8e6047eb4f331eb07c95cb0bb627 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 5 Oct 2026 20:31:39 +1100 Subject: [PATCH] fix(daemon): webhook forge intake does not poll for issues --- internal/daemon/daemon.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/daemon/daemon.go b/internal/daemon/daemon.go index 6044b6ae8..bed99587c 100644 --- a/internal/daemon/daemon.go +++ b/internal/daemon/daemon.go @@ -462,6 +462,12 @@ func (d *Daemon) maintainAndDrain(ctx context.Context) { // identity poll loops pass the identity's own forge and configForIdentity, // so each identity polls with its own bot user, label, and trigger. func (d *Daemon) pollIssuesWithConfig(ctx context.Context, fg forge.Forge, cfg config.Config, repo config.Repo) []forge.Issue { + // Webhook intake hears about issues as they change; polling as well would + // spend forge API quota to find the same work. The receiver runs from the + // root forge settings, so their mode decides for every identity. + if d.Cfg.Get().Forge.Intake == config.ForgeIntakeWebhook { + return nil + } switch cfg.Dispatch.Trigger { case "label": // Empty-label rule shared with workintake.MatchesDispatch: a label