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

Finding a WebSocket Whose close Never Comes, from a Phone App

A client that waited for its own socket’s close event before cleaning up stopped silently when the event never arrived. A WebSocket’s close event and readyState only tell you what the socket last reported. Three habits follow, each with working code and tests: clean up the moment you decide to close, probe only a quiet connection with an application-level ping, and on returning to the foreground, check, rebuild and catch up.

August 17, 2026 | 15 min