Skip to main content

parse_session_jsonl

Function parse_session_jsonl 

Source
pub fn parse_session_jsonl(content: &str) -> Result<ChatSession, Error>
Expand description

Parse a JSONL (JSON Lines) session file (VS Code 1.109.0+ format) Each line is a JSON object with ‘kind’ field indicating the type:

  • kind 0: Initial session metadata with ‘v’ containing ChatSession-like structure
  • kind 1: Delta update with ‘k’ (keys path) and ‘v’ (value)
  • kind 2: Full requests array update with ‘k’ and ‘v’