Skip to content
This repository was archived by the owner on Sep 13, 2026. It is now read-only.
This repository was archived by the owner on Sep 13, 2026. It is now read-only.

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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