AI NewsInfrastructureAnnouncement
Neon lets an agent stream resume after a browser refresh
Neon stores an agent's output in Postgres and object storage. A browser can reconnect after a refresh and read from the exact offset where it stopped.

Why it mattersAn agent that works for five minutes used to lose every token on a refresh. A stored stream with its own URL lets any client reconnect and read from where it left off.
Neon published a post that describes Durable Streams. It is a new way to carry an agent's output between the server and the browser. Sam Willis at Neon wrote the post. The problem he opens on is one most agent builders have hit. An agent works on a task for five minutes. It streams tokens, tool calls and intermediate results to the browser the whole time. A user refreshes the page three minutes in. The stream ends. The tokens are lost.
Durable Streams replaces the single long HTTP response with stored output that has its own URL. Writing works like this: the agent sends a POST to the URL with its next piece of output. The server adds it to the end of the stream. Reading uses a GET to the same URL with an offset. The offset marks where the client wants to start. A refreshed browser reconnects, asks for the offset where it stopped, and reads on.
How Neon stores it
Neon's post names the storage pattern. New appends land in the Postgres primary as a hot tail. When one of three limits is hit, the hot tail is sealed. The limits are 4 MiB of data, 8,192 appends, or one hour of age. A sealed chunk moves to object storage as an immutable object. The object is split into 64 KiB blocks, each with a SHA-256 checksum. Readers near the end of a live stream are served from Postgres. Readers of older data are served from object storage.
Live updates use Neon Realtime, which the post describes as SQL subscriptions. A reader does not poll. The client receives each append as it lands. Several readers can follow the same stream at once, on several tabs and devices.
The post also names safe retries. A producer picks its own identifier and a sequence number for each append. The server rejects a duplicate on that pair. An agent sometimes posts the same chunk twice because its connection dropped mid-write. The stream still only records the chunk once.
The protocol is open and shared
Durable Streams is an open protocol at durablestreams.com, released under the MIT licence. The maintainers are the team behind ElectricSQL, PGlite and TanStack DB. Neon is one of several implementations, not the author of the protocol. Other servers that follow the spec can read and write the same streams.
The practical result is that the agent output is no longer tied to a single HTTP connection. A user opens a chat on a laptop, switches to a phone, and the stream continues from where it was. A tab that was closed an hour ago reopens on the same conversation. A server that restarts does not drop the tokens it already produced.
Durable Chat shows the pattern
Neon's post links to a live demo called Durable Chat. The demo runs on Neon Functions with Claude Haiku as the model. A conversation in the demo keeps state across page refreshes. It also keeps state across tabs and across devices on the same account. The post uses this demo as the one worked example. It does not share a latency number, a cost number, or a customer name.
Neon does not say whether this is a general availability release or a preview inside its platform. The protocol is live. The code pattern is available on the Durable Streams site. The hot tail in Postgres and the object storage path are in place on Neon's own backend.
Source
- Sam Willis, "Rethinking streaming for agents" (neon.com)
- Durable Streams protocol home (durablestreams.com)
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.

