Skip to content

fix(host): a followed automation that is deleted is told not found at once - #4342

Merged
luke-agent[bot] merged 2 commits into
mainfrom
luke/automation-follow-gone
Oct 21, 2026
Merged

luke-agent[bot] merged 2 commits into
mainfrom
luke/automation-follow-gone

Conversation

@charleslpan

@charleslpan charleslpan commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #3297, from Devin's review there, which came in after it merged.

What was wrong

When an automation's runs were being followed and the automation was deleted (or became unreadable), the next renewal or poll came back not-found. liveRows ended the follow as gone, but automation-follow.ts caught that, waited 5 s, and started again. So the page kept showing the old runs for 5 s before it was told not-found.

Change

followed now checks why liveRows ended. On LIVE_GONE it ends the follow at once:

  • If the last renewal or poll failed as not-found, the page is told not-found.
  • If the session signed out, the follow ends without telling the page anything.

This is the same handling #3276 gave the task list follow.

Checks

  • New composer test: a runs follow whose next poll comes back not-found tells the page at once and asks nothing more. It fails without the fix.
  • compose-automations.test.ts passes (7); typecheck, biome and the repo lint are clean.

Made with Luke


Devin Review

View guided diff Turn on auto-fix

… once

When a renewal or a poll of a followed automation's runs came back not found,
the follow ended in `liveRows` as gone, but the host follow restarted it five
seconds later and only then told the page. It now ends at once on gone: not
found is told to the page, and a signed-out session ends it unsaid.

Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
luke-web Ready Ready Preview Oct 21, 2026 6:28am UTC

Request Review

@luke-agent
luke-agent Bot enabled auto-merge October 21, 2026 06:17
devin-ai-integration[bot]

This comment was marked as resolved.

@luke-agent
luke-agent Bot disabled auto-merge October 21, 2026 06:22
…nswers after it

A poll and a renewal may run side by side while Realtime falls back, so a
later success could clear the not-found that ended the follow, and the page
was never told. The follow now keeps the first not-found or signed-out it
meets.

Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
@luke-agent
luke-agent Bot added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 515fd92 Oct 21, 2026
12 checks passed
@luke-agent
luke-agent Bot deleted the luke/automation-follow-gone branch October 21, 2026 06:28

This branch was successfully deployed

1 active deployment
Preview — 17e5ac85 Deployed Oct 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant