Helix forked the Zed code editor to run fleets of headless coding agents inside Docker containers, controlled via a WebSocket protocol connecting a central Go API to each Zed instance and an LLM via the Agent Control Protocol (ACP). The post details three bugs encountered: multi-message accumulation (overwrite vs. append
Table of contents
What We Needed From the ForkThe WebSocket Sync ProtocolArchitectureBug 1: The Multi-Message Accumulation ProblemBug 2: The Completion HangShared Protocol Code: Eliminating Test DriftStreaming Performance: O(N²) to O(delta)Bug 3: The UTF-16 Offset1 Comment
Sort: