Skip to content

Very large sessions cannot attach VSCode #1489

@ranieuwe

Description

@ranieuwe

Describe the bug

I have a session that is >255MB with over 96K lines. As soon as you open the Chat in VSCode and try to attach the session VSCode refuses to attach:

Failed to open chat session: Session file is corrupted (line 69686: Unknown event type: "session.context_changed")

Asked the CLI what's up:

255MB session file, 96K lines — that's the problem. It's grown massive and contains an event type (session.context_changed) that the VS Code extension doesn't recognize.

Note that I have been using autopilot extensively, which is the context change it does not like. I have been reusing the same session to do a lot of lengthy work (with autopilot). Fixed it by having it export its TODO and PLAN and import into a fresh new session, but the bug is a bit hard to follow and may confuse folks.

Affected version

GitHub Copilot CLI 0.0.411-0.

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions