Skip to content

SSE connections hang in Coder environments due to proxy buffering #69

@DivyMohan14

Description

@DivyMohan14

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions