Leaving tool results out of conversation history reads over a relay, and fetching one item when a row is opened

Opening a long conversation on the phone became extremely slow. The latest 500 history items were 19MB, nearly all tool results and arguments. Responses kept failing the relay’s 8MB limit, and the client retried with half as many items each time. After comparing a higher limit, compression and truncation, the history list now leaves tool results out, and the phone fetches the one item a user opens.

October 30, 2026 | 4 min

Cancel the Stream, Not the Connection, When One HTTP/2 Request Times Out

A request deadline fired on a connection that carries many requests at once. Do you close the connection, or only the request? In a small Node lab, closing the HTTP/2 session failed two innocent requests, while cancelling only the stream let them finish on the same TCP connection. The same lab shows the one case where cancelling is not enough: a lost packet stalls every stream on a TCP connection, and a connection-level PING is the right way to tell.

September 8, 2026 | 19 min

Resuming an Event Stream with a Cursor, a Bounded Log and a Snapshot

How a client catches up after a reconnect without losing state, without duplicates, and without re-reading history. Built in steps (versions 0 to 4), from “read everything again” to a bounded log with a snapshot fallback, with what a real browser’s EventSource does on reconnect and on a non-200 response, a snapshot-ordering bug, and a decision tree.

September 4, 2026 | 17 min

Retries Duplicate Your Writes, and Exactly-Once Won't Save You

When a request times out, the client cannot tell whether the request or only its acknowledgement was lost. This is why exactly-once delivery cannot be built, and why effectively-once processing is at-least-once delivery plus a receiver that deduplicates. A runnable experiment with a flaky network, the bug that still duplicates 89 of 200 requests, an atomic dedupe store, and a jitter simulation.

August 28, 2026 | 16 min

A WebSocket Stays Open After Its Token Expires

A WebSocket carries credentials once, at the handshake, and afterwards the server holds only a verdict. When the token expires or is revoked, the open socket does not change. The Origin header checked at the handshake is the browser’s statement about which page opened the socket, not proof of who is connecting. A small server that enforces expiry itself, accepts renewals under four rules, and checks Origin by exact match while always requiring a separate credential, with tests and a headless Chrome check.

August 21, 2026 | 13 min