Skip to content

fix(host): an agent archived off a plan the list still holds takes its unread dot with it - #4341

Merged
luke-agent[bot] merged 3 commits into
mainfrom
luke/agent-notices-forget-archived
Oct 21, 2026
Merged

luke-agent[bot] merged 3 commits into
mainfrom
luke/agent-notices-forget-archived

Conversation

@charleslpan

@charleslpan charleslpan commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

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

What was wrong

Since #3284, the agent ledger is fed from the followed task list. That list leaves archived agents out, but observeFollowed only forgot an agent when its whole plan left the list. So archiving an agent while its unread dot was showing left the dot behind. The 30 s watch that #3284 removed used to drop such agents.

Change

observeFollowed also forgets an agent on a plan the list still holds when the list no longer names that agent. Every push of the followed list carries both parts (plans and agents), so the snapshot is never partial.

It forgets a missing agent only if an earlier push named it. An agent known only from a Start answer is kept through two pushes in a row that leave it out, because with Realtime on a push of the plans can carry an agents part from before that Start. It's forgotten on the third, as one archived before the list ever named it (both from Devin's review).

Checks

  • New test in agent-notices.test.ts; the host's notices and client tests pass (58).
  • Typecheck and biome are clean.

Made with Luke


Devin Review

View guided diff Turn on auto-fix

…s unread dot with it

The ledger is fed from the followed task list (#3284), which leaves archived
agents out. It forgot an agent only when its whole plan left the list, so an
agent archived while its unread dot showed kept the dot. The ledger now also
forgets an agent of a held plan that the list no longer names.

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:19am UTC

Request Review

devin-ai-integration[bot]

This comment was marked as resolved.

…list names it

A push of the plans can carry an agents part from before a Start, so the
ledger forgets a missing agent only once the followed list had named it.

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

This comment was marked as resolved.

…ew pushes

One only a Start answered, then archived before the list named it, would
have kept its dot for good. It is now kept through two pushes that leave it
out, which covers a push carrying agents from before the Start, and let go
on the third.

Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
@luke-agent
luke-agent Bot enabled auto-merge October 21, 2026 06:15
@luke-agent
luke-agent Bot added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit a39af36 Oct 21, 2026
12 checks passed
@luke-agent
luke-agent Bot deleted the luke/agent-notices-forget-archived branch October 21, 2026 06:20

This branch was successfully deployed

1 active deployment
Preview — 9eae498b 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