Skip to content

[Error] unhandlederror-Session file is corrupted (line 1452: data.compactionTokensUsed.input: Required) #312793

@vs-code-engineering

Description

@vs-code-engineering

Error Message

unhandlederror-Session file is corrupted (line 1452: data.compactionTokensUsed.input: Required)

Stack Trace

    at hkt.getSession (extensions/copilot/node_modules/@github/copilot/sdk/index.js:4936:13029) [not deminified]
    at process.processTicksAndRejections (node:<REDACTED: user-file-path>:103:5) [not deminified]
    at async DH.getChatHistoryImpl (../src/extension/chatSessions/copilotcli/node/copilotcliSessionService.ts:1019:20)
    at async DH.getChatHistory (../src/extension/chatSessions/copilotcli/node/copilotcliSessionService.ts:993:22)
    at async Lce.getSessionHistory (../src/extension/chatSessions/vscode-node/copilotCLIChatSessions.ts:625:19)
    at async Lce.provideChatSessionContent (../src/extension/chatSessions/vscode-node/copilotCLIChatSessions.ts:597:43)
    at async Cf.$provideChatSessionContent (./src/vs/workbench/api/common/extHostChatSessions.ts:662:18)

Raw Stack Trace (minified)
Error: Session file is corrupted (line 1452: data.compactionTokensUsed.input: Required) 	at hkt.getSession (extensions/copilot/node_modules/@github/copilot/sdk/index.js:4936:13029) 	at process.processTicksAndRejections (node:<REDACTED: user-file-path>:103:5) 	at async DH.getChatHistoryImpl (\extensions\copilot\dist\extension.js:2398:25672) 	at async DH.getChatHistory (\extensions\copilot\dist\extension.js:2398:25157) 	at async Lce.getSessionHistory (\extensions\copilot\dist\extension.js:2428:11122) 	at async Promise.all (index 0) 	at async Lce.provideChatSessionContent (\extensions\copilot\dist\extension.js:2428:10640) 	at async Cf.$provideChatSessionContent (out/vs/workbench/api/node/extensionHostProcess.js:531:38830)

Details

Property Value
Bucket ID 4b9cff58-8a48-8b6b-9ca9-a0f5805f242d
Version 1.118.0-insider
Commit f2b51f3f
Last Seen Sun Apr 26 2026 23:10:52 GMT+0000 (Coordinated Universal Time)
Platforms Mac, Windows, Linux
Product VSCode

This issue was automatically created from the VS Code Errors Dashboard

Metadata

Metadata

Assignees

Labels

ai-analyzedAI automation workflow has run an analysis of this issue and provided a comment.ai-generatedGenerated by AI automation workflowsbugIssue identified by VS Code Team member as probable bugerror-telemetryVS Code - Issues generated by telemetryrecent-regression

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions