Skip to content

By Project dashboard shows parent folder name instead of actual project name for Claude Code projects #493

@Akramihyar

Description

@Akramihyar

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

  1. Have Claude Code sessions in projects under ~/Projects/ (e.g. ~/Projects/Swiftbar, ~/Projects/Content-OS)
  2. Run codeburn to open the dashboard
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions