Repository navigation
Tags
Tags
feat(cdp): send each email as the first action of its dequeue (#144419) * feat(cdp): send each email as the first action of its dequeue An email queue run sent a later email step inline in the same dequeue as the actions before it. A crash during that send replayed the whole dequeue, so earlier sends went out again. The workflow executor now tells each action whether it starts the dequeue. On the email queue, a send that does not start it waits for the next dequeue, so the job row saves every earlier action first. A two-email workflow takes one more dequeue for the second email, and a one-email workflow takes none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cdp): end the dequeue on a deferred send without a due time The deferred send now sets no due time, like the routing to the email queue, and the async loop stops on the routing-only mark. The hog function step already schedules a missing due time for now. This drops the deferral's luxon use, which master no longer imports in this file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(cdp): name the first-action flag and drop its comments Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(cdp): check that each email sends on its own claim of the job Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(cdp): prove a worker that dies on the second email resends only that one Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cdp): defer a later email step before it renders or claims a cap slot The email step handler now ends the dequeue before it renders inputs or checks the frequency cap, so the job row keeps only the step pointer and a cancel before the next claim leaves no cap slot used. The async executor goes back to the base. The serial tests pair each SES message with the claim that sent it, and the recovery test checks both distinct emails arrive once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cdp): keep the send-time deferral for function steps that send email A plain function step can send email too, and the step-type check in the handler does not see it. The async executor's deferral at the send comes back as the fallback for those steps, while an email step still defers before it renders or claims a cap slot. The serial claim test also checks the job's total claims, and the crash test sweeps with the janitor until the stalled job is free. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cdp): defer every email step before it renders, by step type or template A function step on the email template defers before it renders, as an email step does, so no later step saves rendered email state. The send-time fallback in the async executor goes back to the base. The serial claim test records each SES request's subject with the claim that sent it, and the crash test releases the stalled send in finally. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(cdp): require a live claim at each send in the email claim test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cdp): defer any step whose template calls sendEmail, read from its bytecode Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cdp): defer a step whose template names sendEmail anywhere in its bytecode Unverified: untestable — hogflows unit and serial suites ran on the worktree box Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(cdp): add the compiled bytecode fixtures for the custom email templates Unverified: generated — fixtures the compiler wrote on the worktree box Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cdp): defer an email step only when an email was sent earlier in the dequeue A delay wake or a step that sends nothing no longer defers the next email, so each email spends one dequeue and one SES pacing token. Unverified: untestable — hogflows unit and serial suites ran on the worktree box Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(cdp): defer only a step whose template reads the global sendEmail A string or a local function named sendEmail no longer defers a step after a sent email; a direct call or a read into a variable still does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
chore(mobile): release inbox and chat updates over the air (#145649)
feat(growth): add buttons, html and product hogs to broadcast cards (#… …145793) * feat(growth): add buttons, html and product hogs to broadcast cards The hand-authored broadcast in the nav-panel-broadcast flag drops its emoji and gains up to two link buttons, an optional sanitized html body, and the advertised product's hog, in both the sidebar card and the Today banner. Clicks on a button capture `nav panel broadcast cta clicked`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(growth): reject backslash links and lazy-load broadcast html Button links now go through the shared URL helpers, so `/\host` fails like `//host`. The sidebar loads the html sanitizer only when a broadcast has an html body, which keeps DOMPurify off the shell. Clicks share the broadcast event helper. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(growth): count modified clicks on broadcast buttons and drop rel Cmd, Ctrl and middle clicks on a broadcast button now capture the click event, because the link stops a modified click before its onClick. The html body no longer keeps an author's rel attribute, so a link cannot opt back into an opener. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(growth): lazy-load the broadcast html body on the Today banner too Both broadcast cards render the html body through one lazy wrapper, so DOMPurify stays out of the Today scene until a broadcast carries html. Also drops comments that restated the code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
fix(signals): let a claim release succeed after dismissal ended it (#… …145280) Dismissing a report releases its claim, so the release an agent sends afterwards with its claim_id got a 409 for a claim that no longer exists. Treat that release as done when nobody else holds the report. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
PreviousNext