Stopping a response mid-stream discards the partial answer

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

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
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
ai

Hướng nghiên cứu

The payload names no files, tests or entry points, so start by locating where streamed response deltas are accumulated and where the stop action cancels a request in the SDK's session code. Reproduce by stopping a response mid-stream and checking whether the partial text appears in the session JSON. Done means the partial answer is kept in the session context after a stop, matching the expected behavior described in the issue.

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

Mô tả

Affected version or release

Version v1.0.28, macOS

Steps to reproduce
  1. Enter a prompt
  2. The model starts to respond
  3. Click stop while half response delta has come
Expected behavior

The currently received partial answer should be saved in the context (like the Claude Agents SDK does it)

Observed behavior

The answer looks dropped, I didn't find it in the session JSON file and the model cannot recall it.

Ngôn ngữ chính
Java
Star
10.7k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

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 github/copilot-sdk

Tất cả issue của github/copilot-sdk

Issue tương tự

Thêm issue về Java

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.