Skip to content

Fix mangled project paths in dashboard#320

Merged
iamtoruk merged 2 commits into
mainfrom
fix/project-path-display
May 12, 2026
Merged

Fix mangled project paths in dashboard#320
iamtoruk merged 2 commits into
mainfrom
fix/project-path-display

Conversation

@iamtoruk
Copy link
Copy Markdown
Member

Summary

  • Switch dashboard panels (By Project, Top Sessions) from decoding lossy sanitized slugs to using projectPath (the real cwd already extracted by parser.ts)
  • Rewrite shortProject() to operate on absolute paths, splitting on / instead of -, fixing directory names containing dashes or dots
  • Cache homedir() at module level instead of calling per render
  • Normalize Windows backslashes for cross-platform safety
  • Fix stale test helper to match updated component field name

Closes #196

Based on #295 by @meghraoa with review fixes applied.

meghraoa and others added 2 commits May 10, 2026 22:15
shortProject() decoded Claude Code slugs by splitting on '-', which
broke directory names containing dashes ('foo-bar' became 'foo/bar').
Switch the dashboard to consume ProjectSummary.projectPath (the
canonical cwd already extracted by parser.ts) and rewrite shortProject
to operate on a real absolute path.
@iamtoruk iamtoruk merged commit 3b71650 into main May 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Counting does not work at all

2 participants