Skip to content

Failed scheduled automation turn is retried twice (provider-retry resumes the thread and the automation starts a fresh one) #7708

Closed

Description

@thegostep

What happens. When a scheduled (recurring) agent automation's first turn fails (in our case a 503 from the provider while the Mac was waking from a lid-closed DarkWake), two retries start at the next opportunity: the provider-retry plugin resumes the same thread with "Please continue." and the automations plugin starts a fresh thread for the same run. Both then run the full prompt. We saw three threads for one 09:00 brief on 2026-11-09 (09:58, 10:02, 10:06), the same for a Monday digest and a weekly run, and three retro threads on 2026-11-06.

What the docs say. The provider-retry SKILL.md states: "Automations declines retries of turns that scheduled runs of recurring automations started, because those run again on their own schedule." bb provider-retry explain <thread> on the failed thread shows "Scheduled for ...: Provider unavailable", so the consent decline is not taking effect for automation-started turns.

Expected. One retry path for a failed scheduled turn, or none plus the automation's own retry.

Workaround we use. A claim file at step 0 of every scheduled prompt (claim.py --run <agent>:<run>) so the duplicate stands down with one line, and a launcher script that starts the run only when the machine is awake and online.

bb 0.48 on macOS, Claude Code provider.

Activity

  1. added theissue type on Nov 17, 2026
  2. added
    plugins
    automations
    provider-retry
    partial-repro
    on Nov 17, 2026
  3. bb-slop-cop commented on Nov 17, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium.
    • Labels: plugins, automations, provider-retry, partial-repro.
    • Report: Reproduction and root-cause report.
    • Verdict: PARTIALLY REPRODUCED · root-cause confidence: medium.
    • Root cause: Before the spawn response returns, the automation's missing thread association allows provider-retry consent and misses failure settlement. Controlled sweep-service recovery then submits a fresh automation run.
    • Verification: The regression test fails identically in two clean trusted-main checkouts: one provider-retry submission and two spawn submissions after recovery. All 200 existing relevant tests pass. The real macOS/Claude wake sequence and three completed prompts remain unverified.
    • No PR: A production-safe startup ownership repair is not established from this partial reproduction.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    automationspartial-repropluginsprovider-retry

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions