[Stream Error] DeepSeek v4.1 Flash drops mid-stream after ~3.5 min: {"type":"server_error","message":"Network connection lost."}

Đang mở
#1,124 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
44/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cli
Lĩnh vực
cli, networking

Hướng nghiên cứu

Start by tracing the /alpha/generate streaming path and how it handles long-lived connections to the DeepSeek backend; the issue does not name specific files or tests. Check whether the connection has heartbeat or keep-alive handling and how upstream disconnects are reported. Done means reproducing the roughly 209-second failure and confirming that a drop is recovered or surfaced with retryable metadata.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

When using deepseek/deepseek-v4.1-flash on the /alpha/generate streaming endpoint, long-running requests (e.g. multi-turn tool calling with reasoning) can hang for ~3.5 minutes (208,974 ms) and then abruptly terminate with a mid-stream error event:

{"type":"error","error":{"type":"server_error","message":"Network connection lost."}}
Steps to Reproduce
  1. Start a coding session generating a complex response or multi-turn tool execution with deepseek/deepseek-v4.1-flash.
  2. Keep the stream connection open while the model reasons/generates tokens.
  3. After ~3.5 minutes (observed at ~209s), the stream receives:
    {"type":"error","error":{"type":"server_error","message":"Network connection lost."}}
    
Observed Log Trace
[18:11:55] POST .../alpha/generate -> stream started
[18:15:24] ✗ ERROR: [CommandCode error: {"type":"server_error","message":"Network connection lost."}] (duration: 208974ms)
Expected Behavior
  • The upstream connection between CommandCode's gateway and the DeepSeek backend cluster should maintain keep-alive/heartbeat or handle transient drops gracefully instead of terminating with server_error: Network connection lost. after 3.5 minutes.
  • If an upstream drop occurs, provide retryable metadata or connection recovery.
Environment
  • CLI / Wire Protocol: 1.88.5
  • Model: deepseek/deepseek-v4.1-flash
  • OS: Linux x64
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
4.2k
Fork
377
Merge trung bình
1 ngày 17 phút
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CommandCodeAI/command-code

Tất cả issue của CommandCodeAI/command-code

Issue tương tự

Thêm issue về CLI

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.