Bug Description
The By Project panel in the TUI dashboard (and the menubar dropdown) shows the parent folder name instead of the actual project name when Claude Code project folders are stored under a subdirectory like ~/Projects/.
Steps to Reproduce
- Have Claude Code sessions in projects under
~/Projects/ (e.g. ~/Projects/Swiftbar, ~/Projects/Content-OS)
- Run
codeburn to open the dashboard
- View the By Project panel
Expected Behavior
Each project should show its actual name:
Swiftbar
Content-OS
Instagram
- etc.
Actual Behavior
All projects under ~/Projects/ are grouped and displayed as Projects (the parent folder).
Projects opened from the home directory show as home.
Root Cause
Claude Code encodes the CWD as the project folder name by replacing / with -:
/Users/akram/Projects/Swiftbar → ~/.claude/projects/-Users-akram-Projects-Swiftbar
Codeburn appears to extract the project name at depth 3 of the path (the Projects segment) instead of the last segment (Swiftbar).
Environment
- codeburn: 0.9.12
- macOS 15.3 (Darwin)
- Claude Code project folders:
~/.claude/projects/
Suggested Fix
When decoding a Claude Code project folder name, extract the last path segment after reversing the - → / encoding, rather than a fixed depth segment.
Bug Description
The By Project panel in the TUI dashboard (and the menubar dropdown) shows the parent folder name instead of the actual project name when Claude Code project folders are stored under a subdirectory like
~/Projects/.Steps to Reproduce
~/Projects/(e.g.~/Projects/Swiftbar,~/Projects/Content-OS)codeburnto open the dashboardExpected Behavior
Each project should show its actual name:
SwiftbarContent-OSInstagramActual Behavior
All projects under
~/Projects/are grouped and displayed asProjects(the parent folder).Projects opened from the home directory show as
home.Root Cause
Claude Code encodes the CWD as the project folder name by replacing
/with-:Codeburn appears to extract the project name at depth 3 of the path (the
Projectssegment) instead of the last segment (Swiftbar).Environment
~/.claude/projects/Suggested Fix
When decoding a Claude Code project folder name, extract the last path segment after reversing the
-→/encoding, rather than a fixed depth segment.