You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Approve hangs forever when the review is open in two tabs (HTTP/1.1 connection limit exhausted by EventSource streams) #4218
In annotate mode with --gate, pressing Approve never completes if the same review session is open in two browser tabs. The Approve, More decisions and Close buttons stay disabled (stuck mid-submit), no error is shown, the browser's network log shows nothing, and the --result-file is never written. The server process stays alive and responsive (e.g. GET /api/plan answers instantly), so the agent waiting on the gate waits forever.
Cause
Each review tab keeps several long-lived HTTP/1.1 connections open (EventSource streams such as /api/annotate/client-lease and /api/external-annotations/stream, plus others). Chromium allows 6 concurrent HTTP/1.1 connections per origin. With two tabs on the same localhost:<port>, the pool is exhausted, so POST /api/approve (and likewise /api/feedback and /api/deny) is queued by the browser and never sent.
On the server side we saw 7 established connections from the browser to the review port. Closing the second tab released a connection, and within a few seconds the queued Approve went through, the result file was written ({"decision":"approved"}), and the process exited normally.
Activity
Share each review event stream across tabs so a second tab's Approve …