Expand description
Data models for VS Code chat sessions
Structs§
- Chat
Message - User message in a chat request
- Chat
Request - A single chat request (message + response)
- Chat
Response - AI response in a chat request
- Chat
Session - VS Code Chat Session (version 3 format)
- Chat
Session Index - VS Code chat session index (stored in state.vscdb)
- Chat
Session Index Entry - Entry in the chat session index
- Chat
Session Timing - Session timing information (VS Code 1.109+) Supports both old format (startTime/endTime) and new format (created/lastRequestStarted/lastRequestEnded)
- Model
Cache Entry - Entry in the
agentSessions.model.cacheDB key. This cache drives the Chat panel sidebar in VS Code — sessions must have a model cache entry to be visible in the UI. - Session
With Path - Session with its file path for internal processing
- State
Cache Entry - Entry in the
agentSessions.state.cacheDB key. Tracks read timestamps per session for UI state (e.g., unread indicators). - Workspace
- VS Code workspace information
- Workspace
Json - VS Code workspace.json structure