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.
15 lines
954 B
Markdown
15 lines
954 B
Markdown
---
|
|
# claudbg-g5uv
|
|
title: Session file discovery
|
|
status: completed
|
|
type: task
|
|
priority: normal
|
|
created_at: 2026-03-27T19:39:15Z
|
|
updated_at: 2026-03-28T05:48:59Z
|
|
parent: claudbg-mztt
|
|
---
|
|
|
|
Walk ~/.claude/projects/ to enumerate all session .jsonl files. Decode URL-encoded directory names (e.g. -run-media-pop-... → /run/media/pop/...) to recover the project path. Return a list of SessionRef { session_id: Uuid, project_path: PathBuf, file_path: PathBuf, modified_at: SystemTime }.
|
|
|
|
## Summary of Changes\n\nCreated src/parser/discovery.rs with SessionRef struct and discover_sessions() function. Walks ~/.claude/projects/ one level deep, collects *.jsonl files (skipping subagents/ dirs), extracts session_id from filename stem, reads project_path from first parseable JSONL line cwd field. Uses HOME env var for path expansion. Skips unreadable files with eprintln\! warnings. Created src/parser/mod.rs and updated src/lib.rs to expose pub mod parser.
|