Skip to content

feat(host): a task's and an agent's write is confirmed once its transaction arrives on the followed task list - #4263

Closed
charleslpan wants to merge 1 commit into
luke/neon-realtime-plan-list-hostfrom
luke/neon-realtime-task-list-txid-wait
Closed

charleslpan wants to merge 1 commit into
luke/neon-realtime-plan-list-hostfrom
luke/neon-realtime-task-list-txid-wait

Conversation

@charleslpan

@charleslpan charleslpan commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Stack 2 · Task list and automations, piece 5 of 10. Stacked on #3276 (luke/neon-realtime-plan-list-host). Below that: #4259 → #3269 → #3265 → luke/live-tx-wait (P).

The desktop now confirms a write only once the live task list shows it, as Neon's mutations guide says. The task-list follow hands its TxWait (P5's onTxWait in live-follow.ts, not a copy) to compose-tasks.

Before answering the window, these writes wait for their txid on the followed list, for at most 10 s:

  • Task writes: start, rename, standing, pin, archive, move, set repository, delete.
  • Agent writes: start, rename, archive, pin. compose-host hands compose-coding-agents the same wait (listed).

A write that changed nothing, or one made while the list isn't subscribed yet, waits for nothing.

Test: a rename is answered only once its transaction arrives on the list, and a rename that changed nothing is answered at once. Removing the wait makes this test fail.

Made with Luke

View guided diff Turn on auto-fix

…action arrives on the followed task list

The task list's follow hands its wait for a transaction (live-follow's
TxWait, awaitTxId as Neon's mutations guide says) to the tasks composer.
Each task write and each agent's start, rename, archive, and pin that
answered a txid waits for it on the list before the window is answered, for
at most ten seconds; one that changed nothing, or a list not yet
subscribed, waits for nothing.

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

vercel Bot commented Oct 20, 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 20, 2026 10:29pm UTC

Request Review

@luke-agent

luke-agent Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Closing for now: the developer moved every area onto the central live layer with Neon Realtime off (LUKE_REALTIME, #4267; held polls, #4272), and this change only does something with Realtime on. The branch is kept, so the PR can be reopened and rebased when LUKE_REALTIME goes back on.

@luke-agent luke-agent Bot closed this Oct 20, 2026
luke-agent Bot added a commit that referenced this pull request Oct 21, 2026
…action arrives on the followed task list

The task list's follow hands its wait for a transaction (live-follow's
TxWait, awaitTxId as Neon's mutations guide says) to the tasks composer.
Each task write, and an agent's start, rename, archive, and pin, that
answered a txid waits for it on the list with confirmWrite before the
window is answered; one that changed nothing, or a list not followed over
Realtime, waits for nothing. Ported from #4263.

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

This branch was successfully deployed

1 active deployment
Preview — 7865e3a1 Deployed Oct 20, 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