github / github/copilot-sdk

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

Offen
#2,261 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Java
Sterne
10.5k
Forks
1.5k
Ø Merge
1 T. 11 Std.
Gemergte PRs (30 T.)
127

Beschreibung

## Summary

The Copilot CLI persists session events to:

`~/.copilot/session-state//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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Bereich
cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.