Ensure `events.jsonl` honors inherited file-size limits
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 领域
- cli
调研方向
首先跟踪 ~/.copilot/session-state//events.jsonl 的持久化过程,以及发出 SDK_SESSION_ERROR(persistence) 的路径。检查继承的 50 MB 文件大小限制和 EFBIG 故障如何影响写入,然后验证长时间运行的会话保持在限制以内,并且能够在不发生持久化错误的情况下恢复。
由索引模型根据 Issue 内容生成。
描述
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.jsonldoes 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/copilot-sdk 的其他 Issue
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 65/100
github/copilot-sdk#2760 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
github/copilot-sdk#2759 ·
-
documentation
难度 1/5 1 小时以内 新手友好度 85/100
github/copilot-sdk#2758 ·
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 68/100
github/copilot-sdk#2709 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 78/100
github/copilot-sdk#2673 ·
查看 github/copilot-sdk 的全部 Issue
相似的 Issue
-
certification
难度 1/5 1 小时以内 新手友好度 80/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's 未关闭bug ecr
难度 2/5 1-3 小时 新手友好度 75/100
-
Needs: Triage Type: Feature request
难度 2/5 1-3 小时 新手友好度 70/100
AntennaPod/AntennaPod#8794 ·
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
难度 2/5 1-3 小时 新手友好度 75/100