Ensure `events.jsonl` honors inherited file-size limits
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- cli
Research direction
Start by tracing persistence for ~/.copilot/session-state//events.jsonl and the path that emits SDK_SESSION_ERROR(persistence). Check how the inherited 50 MB file-size limit and EFBIG failure affect writes, then verify that long-running sessions stay within the limit and remain resumable without persistence errors.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Java
- Stars
- 10.5k
- Forks
- 1.5k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 130
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/copilot-sdk
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/copilot-sdk#2760 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/copilot-sdk#2759 ·
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 85/100
github/copilot-sdk#2758 ·
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/copilot-sdk#2709 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
github/copilot-sdk#2673 ·
All issues in github/copilot-sdk
Similar issues
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/flink-agents#1152 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
jenkinsci/blueocean-plugin#5417 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
objectionary/eo-graphs#75 ·