Skip to content

feat(panel,host): the windows' inbox reads become pushed follows, and the held inbox reads are retired - #3306

Merged
luke-agent[bot] merged 1 commit into
mainfrom
luke/realtime-inbox-renderer
Oct 21, 2026
Merged

luke-agent[bot] merged 1 commit into
mainfrom
luke/realtime-inbox-renderer

Conversation

@charleslpan

@charleslpan charleslpan commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

The window's inbox reads become pushed follows, and the held inbox reads are retired. This is stacked on #3264.

What changes

  • Panel: the Inbox tab, the Inbox page, Home and Factory hold one codingAgents.inboxFollow stream per plan or agent they show (use-followed-inboxes.ts). Each holds the items as each change arrives.
    • There's no read loop or cursor any more.
    • "Mark all read" no longer re-reads, because each change carries the reader's own read markers.
  • Currency: a plan counts as current once its pushed items are as new as main's word of it. So a link to a brand-new item waits for it rather than saying "Not found".
  • Retired: the held reads codingAgents.inbox and codingAgents.agentInbox are removed, together with their act-port kinds and procedures, Gateway methods, host calls, and parameter schemas.

Tests

  • testing/followed-inboxes.ts stands in for the host's inbox streams.
  • Rewritten on it: use-inbox-items.test.ts, the inbox tests in desktop-inbox, desktop-home, desktop-factory, person-page, inbox-link-chips, inbox-side-panel, read-failure, desktop-tasks and composer-drafts, and use-inbox-read-marks.
  • Tests of behaviour that no longer exists were dropped, such as an older read being overtaken or held reads diverging.

To check by hand

  1. Open a plan's Inbox tab. Its items show. Answer one, and the card updates.
  2. Have an agent post an item. Within about a second, it shows in the Inbox tab, the Inbox page, Home and Factory, without reopening anything.
  3. Click a notification for a new item. The Inbox opens on it, with no "Not found".

@luke-agent
luke-agent Bot changed the base branch from main to luke/realtime-inbox-push October 17, 2026 01:56
@vercel

vercel Bot commented Oct 17, 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 9:31am UTC

Request Review

@luke-agent luke-agent Bot closed this Oct 17, 2026
@luke-agent luke-agent Bot reopened this Oct 17, 2026
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from a5d421a to f0582b7 Compare October 18, 2026 19:25
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from de635f7 to ff7d3ef Compare October 18, 2026 19:36
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from f0582b7 to dc02f9e Compare October 18, 2026 21:12
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from ff7d3ef to f4abac2 Compare October 18, 2026 21:12
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from dc02f9e to e22b0dc Compare October 19, 2026 18:52
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from f4abac2 to ce082be Compare October 19, 2026 18:52
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from e22b0dc to 1af722d Compare October 20, 2026 01:41
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from ce082be to 20fc00a Compare October 20, 2026 01:41
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from 1af722d to 4c1178a Compare October 20, 2026 01:53
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from 4ffecde to 13cc8bd Compare October 20, 2026 01:53
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from 13cc8bd to e851e4b Compare October 20, 2026 02:59
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from e851e4b to 888bc1e Compare October 20, 2026 03:03
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from 888bc1e to 58fa42d Compare October 20, 2026 03:24
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from 58fa42d to b30a7da Compare October 20, 2026 23:40
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from 9021006 to 284f6ea Compare October 20, 2026 23:40
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from fd792c2 to b3a9836 Compare October 21, 2026 00:08
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from 284f6ea to 39217bb Compare October 21, 2026 00:08
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from 39217bb to a640f58 Compare October 21, 2026 00:25
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from b3a9836 to 0fd35c0 Compare October 21, 2026 00:25
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from 0fd35c0 to 4bec30f Compare October 21, 2026 00:43
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from a640f58 to ab46d59 Compare October 21, 2026 00:43
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from 4bec30f to 5fb8e7a Compare October 21, 2026 01:04
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from ab46d59 to 8ef8a03 Compare October 21, 2026 01:04
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from 8ef8a03 to 24a8662 Compare October 21, 2026 01:22
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from 5fb8e7a to e42a737 Compare October 21, 2026 01:22
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from 24a8662 to 5d8c691 Compare October 21, 2026 08:53
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from e42a737 to 20d0381 Compare October 21, 2026 09:11
Base automatically changed from luke/realtime-inbox-push to main October 21, 2026 09:12
… the held inbox reads are retired

The Inbox tab, the Inbox page, Home and Factory follow each plan's or
agent's inbox they draw on the act port's `codingAgents.inboxFollow` stream
(`use-followed-inboxes.ts`), and hold its items as each change arrives: no
read loop, no cursor, no reread after marking every item read, since each
push carries the reader's markers. A plan counts as current once its push is
as new as main's word of it, so a link to a brand-new item waits rather than
saying it is gone.

The held reads `codingAgents.inbox` and `codingAgents.agentInbox` are
retired: the act port's kinds and procedures, the Gateway methods, the host's
calls, and their parameter schemas.

Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
@luke-agent
luke-agent Bot marked this pull request as ready for review October 21, 2026 09:27
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-renderer branch from 20d0381 to 0969d75 Compare October 21, 2026 09:27
@luke-agent
luke-agent Bot added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 7acf93f Oct 21, 2026
12 checks passed
@luke-agent
luke-agent Bot deleted the luke/realtime-inbox-renderer branch October 21, 2026 09:45

This branch was successfully deployed

1 active deployment
Preview — 0969d75b 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