Skip to content

feat(host): a window follows a plan's or an agent's inbox as a stream of pushed changes - #3264

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

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

Conversation

@charleslpan

@charleslpan charleslpan commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

A window follows a plan's or an agent's inbox as a stream of pushed changes, on the act port. This is the same shape as codingAgents.transcript (#4175). It is stacked on #3232.

What changes

  • Act port: codingAgents.inboxFollow, an eventIterator procedure. The host follows the inbox when the first stream of it opens and lets it go when the last one closes. Each change is the inbox whole, or why there is none.
  • Web tabs: they serve the same procedure with no web-specific code.
  • Gateway: codingAgents.inboxFollow / codingAgents.inboxUnfollow follow the inbox on the same liveRows read its reads share, and tell each change as inbox.changed. A follow behind a closed gate is told unanswered. One the account doesn't reach is told not found.
  • Not here: nothing in the renderer uses this yet. The next PR moves the window onto it.

Tests

  • agent-inbox-procedures.test.ts: streams are counted per inbox, changes for other inboxes aren't heard, the host lets the inbox go with the last stream, and the voice window is refused.
  • compose-coding-agents.test.ts:
    • each change is told, and a delivery that changed nothing is not
    • unfollowing stops the telling
    • not found, unanswered, a closed gate, and sign-out

@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 8:57am UTC

Request Review

@luke-agent
luke-agent Bot changed the base branch from main to luke/neon-realtime-scope-inbox October 17, 2026 01:04
@luke-agent
luke-agent Bot force-pushed the luke/realtime-inbox-push branch from 87317b7 to a5d421a Compare October 17, 2026 01:13
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-scope-inbox branch from 0a6e6cd to 35d1920 Compare October 18, 2026 19:21
@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/neon-realtime-scope-inbox branch from 35d1920 to ff729c0 Compare October 18, 2026 21:12
@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/neon-realtime-scope-inbox branch from ff729c0 to 7c1c859 Compare October 19, 2026 18:52
@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/neon-realtime-scope-inbox branch 2 times, most recently from a7cb527 to 39ca561 Compare October 20, 2026 01:29
@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/neon-realtime-scope-inbox branch from 39ca561 to 40e1669 Compare October 20, 2026 01:43
@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/neon-realtime-scope-inbox branch from 40e1669 to bc7d40b Compare October 20, 2026 15:09
@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 changed the title feat(host,desktop): a plan's or an agent's inbox is followed for the panels that draw it, and pushed to them feat(host): a window follows a plan's or an agent's inbox as a stream of pushed changes Oct 20, 2026
@luke-agent
luke-agent Bot marked this pull request as ready for review October 20, 2026 23:57

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

Comment thread packages/host/src/scope-inbox-follow.ts Resolved
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-scope-inbox branch from 6c444fa to 0add6f0 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/neon-realtime-scope-inbox branch from 0add6f0 to 1259bad Compare October 21, 2026 00:25
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-scope-inbox branch from 1259bad to 8ab1e2d 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-push branch from ab46d59 to 8ef8a03 Compare October 21, 2026 01:04
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-scope-inbox branch from 8ab1e2d to f68e223 Compare October 21, 2026 01:04
@luke-agent
luke-agent Bot force-pushed the luke/neon-realtime-scope-inbox branch from f68e223 to 782179c Compare October 21, 2026 01:22
@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/neon-realtime-scope-inbox branch from 782179c to 81e378e Compare October 21, 2026 01:25
Base automatically changed from luke/neon-realtime-scope-inbox to main October 21, 2026 01:38
… of pushed changes

The act port gains `codingAgents.inboxFollow`, an event-iterator
procedure. It follows one plan's inbox, or one agent's, while the window
keeps the stream open, and lets it go once the last stream of it closes;
each change is the inbox whole, or why there is none.

On the gateway, `codingAgents.inboxFollow`/`Unfollow` follow the inbox on
its live read, the one its reads share, and tell each change
as `inbox.changed`. Behind a closed gate a follow is told unanswered; one the
account does not reach, not found.

Co-authored-by: luke-agent[bot] <339870089+luke-agent[bot]@users.noreply.github.com>
@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 added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit e16aee5 Oct 21, 2026
13 checks passed
@luke-agent
luke-agent Bot deleted the luke/realtime-inbox-push branch October 21, 2026 09:12

This branch was successfully deployed

1 active deployment
Preview — 5d8c6919 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