Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Ensure `events.jsonl` honors inherited file-size limits

Đang mở
#2,261 1 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
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng cách truy vết cơ chế persistence cho ~/.copilot/session-state//events.jsonl và đường dẫn phát ra SDK_SESSION_ERROR(persistence). Kiểm tra cách giới hạn kích thước tệp 50 MB được kế thừa và lỗi EFBIG ảnh hưởng đến việc ghi, sau đó xác minh rằng các session chạy dài vẫn nằm trong giới hạn và có thể tiếp tục mà không gặp lỗi persistence.

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

Mô tả

bug

Summary

The Copilot CLI persists session events to:

~/.copilot/session-state/<sessionId>/events.jsonl

The CLI inherits the hosting process’s file-size limit. During sufficiently long
sessions, events.jsonl reaches that limit and the next persistence write fails:

I/O error: File too large (os error 27)

This emits SDK_SESSION_ERROR(persistence) and fails the active turn.

Request

Please ensure that events.jsonl remains within the file-size limit inherited by
the Copilot CLI while preserving supported session persistence and resume behavior.

If this behavior is owned by the bundled CLI runtime rather than the SDK wrappers,
please route the issue to the appropriate owner.

Environment

  • SDK: github-copilot-sdk==1.0.7
  • Bundled CLI: 1.0.71
  • Host file-size limit: 50 MB
  • Platform: Linux container
  • Error: EFBIG / os error 27

Acceptance criteria

  • events.jsonl does not exceed the inherited file-size limit.
  • Long-running sessions do not fail with EFBIG due to event-log growth.
  • Persisted sessions remain resumable with their expected state.

Impact

Observed in production across real user conversations, causing repeated
Service-class turn failures.

Reference

Internal tracking: https://microsoft.ghe.com/bic/mcs-dracarys/issues/7127

Ngôn ngữ chính
Java
Star
10.5k
Fork
1.5k
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
130

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.