[BUG] - Chat shows "connection to your chat app dropped" during long replies despite keepalive and auto-reconnect
Maintainer thường phản hồi trong vòng 1 ngày
@dcmcand đang làm issue này rồi.
Từ ngày 4/12/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Description
On the deployed cluster, chat still shows "The connection to your chat app dropped." with a Reconnect button partway through long replies. #113 added a 15s SSE keepalive (80dffc75) and one automatic reconnect per message (e173aff0). If the cluster runs that build, the banner means the reply stream dropped twice: once on the original stream and again on the stream the automatic reconnect followed. The keepalive only stops proxies from closing quiet connections, so something else is closing them. The person loses the live view of the reply and has to click Reconnect.
The connection to your chat app dropped.
[Reconnect]
Steps to reproduce
- On the deployed cluster, start a chat and ask for something that takes several minutes and writes large files (seen with "Build me a review checklist app...", while the agent was writing
index.html). - Wait while the agent runs tools.
- The reply stops partway and the banner "The connection to your chat app dropped." shows with a Reconnect button.
Expected behavior
A long reply streams to its end. If a single drop happens, the automatic reconnect follows the reply again without the banner showing.
Environment
- Tapas version:
<fill in: Commit from GET /api/info on the deployed cluster>(the fix is in75a0b907and later) - Cluster ingress / load balancer:
<fill in> - Browser:
<fill in> - Model:
anthropic/claude-opus-5.5
Additional context
- The banner comes from
failureOfinui/src/features/chat/ChatSession.tsx:121. It shows only whenfetchitself fails (TypeError), so the browser lost the connection. The gateway did not send an error chunk, which would show "Try again". - With
e173aff0the UI reconnects once per message sent (triedReconnect). If the followed stream drops again, the banner shows. - Possible causes, none confirmed yet:
- A proxy in front of the gateway with a total time limit per request (for example an Envoy Gateway route timeout or a load balancer limit). The keepalive does not stop that, and the reconnected stream hits the same limit.
- A proxy that buffers SSE. The gateway sets
X-Accel-Buffering: no, which only nginx honors, so the: keepalivecomments may never reach the browser. - A gateway pod restarting during the reply.
- To narrow it down:
- Confirm the deployed
Commitfrom/api/infoincludes #113. - Time several drops from send to banner. A constant duration points to a per-request time limit.
- In DevTools, Network, open the chat stream's EventStream and check that
: keepalivecomments arrive every 15s during quiet stretches. - Check gateway pod restarts around the drop:
kubectl get pods -n <ns> -l app.kubernetes.io/component=gateway.
- Confirm the deployed
- Proposed changes in Tapas, whatever the cause:
- Retry the automatic reconnect two or three times with a short pause, instead of once per message.
- Log in the gateway when a reply stream ends because the browser left (
relayininternal/gateway/chat/chat.go), with how long it was open, so a fixed time limit shows in the logs.
- If the cause is a proxy time limit, the fix is in the cluster's routing (for example a
BackendTrafficPolicyraising or turning off the request timeout on the chat route), and the Tapas docs should say so. - Related: #113.
- Ngôn ngữ chính
- Go
- Star
- 5
- Fork
- 0
- Merge trung bình
- 21 giờ 13 phút
- Pull request đã merge (30 ngày)
- 53
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nebari-dev/tapas
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
nebari-dev/tapas#124 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nebari-dev/tapas#121 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
nebari-dev/tapas#32 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Suggest saving a memory when a chat message holds something worth rememberingCó thể đã có người làm @jbouder đã nhận hôm nay. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
nebari-dev/tapas#137 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
nebari-dev/tapas#136 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nebari-dev/tapas
Issue tương tự
-
--auto-tier: hashing, dedup, resume validation and DVC/git reads still update atime on LinuxĐang mởarea: pipeline priority: low type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
prime-radiant-inc/evener#8335 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)Có thể đã có người làm @szluyu99 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100