You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
claudbg/.beans/claudbg-76fy--implement-jso...

815 B

title status type priority created_at updated_at parent
Implement JSONL session file reader completed task normal 2026-03-27T19:39:15Z 2026-03-28T17:30:25Z claudbg-mztt

Async function that reads a .jsonl file line by line using tokio, deserializes each line into SessionEntry, and skips/logs malformed lines gracefully. Must handle partial last lines (live session writes).

Summary of Changes\n\nCreated src/parser/reader.rs with async read_session_file(path: &Path) -> Result<Vec>. Uses tokio::fs::File and tokio::io::BufReader with lines() iterator. Skips empty lines, skips unparseable lines with eprintln! warning, returns Err(AppError::Io) for missing files. All 4 required unit tests pass (two valid lines, one valid + one invalid, empty file, nonexistent path).