Server-Sent Events (SSE) connections to the /events endpoint hang indefinitely when AgentAPI is deployed in Coder workspaces. The connection opens successfully but no events are received due to proxy buffering.
Expected behavior
SSE connections should remain open and stream events in real-time for the chat interface.
I am using https://registry.coder.com/modules/coder/claude-code without tasks
Actual behavior:
EventSource shows readyState: 1 (OPEN) successfully
Connection appears established but hangs indefinitely
No SSE events are received (message_update, status_change)
Chat interface becomes non-functional - messages appear stuck
After ~60 seconds, connection may timeout and show error