Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#2,261 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
领域
cli

调研方向

首先跟踪 ~/.copilot/session-state//events.jsonl 的持久化过程,以及发出 SDK_SESSION_ERROR(persistence) 的路径。检查继承的 50 MB 文件大小限制和 EFBIG 故障如何影响写入,然后验证长时间运行的会话保持在限制以内,并且能够在不发生持久化错误的情况下恢复。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Java
星标
10.5k
派生
1.5k
平均合并
1 天 9 小时
30 天内合并 PR
130

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/copilot-sdk 的其他 Issue

查看 github/copilot-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。