Repository navigation
Conversation
|
Thanks for looking into SSE latency. I tested this against None of them is compressed on main, the login stream included. Next does gzip static assets, but it copies a route handler's headers onto the Node response as arrays, so its With this branch the bytes on the wire are identical apart from the extra header, and timings stay within noise: the file-watch So I'm closing this one. Per CONTRIBUTING.md, perf changes need before-and-after measurements. If you see delayed events through a specific setup (a reverse proxy, Tailscale serve, ...), please open an issue with that setup and a timing, and we'll look for the cause there. |
SSE endpoints now send Content-Encoding: identity alongside existing no-cache/no-transform and buffering headers. This prevents intermediary/server compression from buffering heartbeats and streaming events, improving high-RTT LAN/Tailnet responsiveness and bounding latency. Applies to agent, terminal, file-watch, and provider-login event streams.
Validation: git diff --check passed. Full npm test/build could not run in the workspace because dependency tarballs repeatedly failed integrity checks during npm ci; no dependencies were available initially.