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-9627--sessions-list...

16 lines
709 B
Markdown

---
# claudbg-9627
title: 'sessions list: some sessions show no project path'
status: completed
type: bug
priority: normal
created_at: 2026-03-31T23:44:53Z
updated_at: 2026-04-01T05:59:53Z
---
Some entries in `claudbg sessions list` do not display a project path. Investigate why the project path is missing for certain sessions.
## Summary of Changes
Fixed `read_cwd_from_first_line()` in `src/parser/discovery.rs`. The old code stopped after the first non-empty line even if it contained no `cwd` field. The fix scans up to 20 non-empty lines looking for any entry with a `cwd` field. Claude Code typically writes `cwd` on a `system`-type entry which may not be the very first line in all session files.