this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Show ~ for home directory sessions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

alice dfdc0f6a ba00551e

+9 -1
+9 -1
src/core/session-detector.ts
··· 71 71 72 72 // Fallback: just the folder name with leading dash removed, last segment as name 73 73 const parts = withoutLeading.split('-'); 74 + const path = '/' + withoutLeading.replace(/-/g, '/'); 75 + 76 + // Special case: home directory should show as "~" 77 + const homeDir = homedir(); 78 + if (path === homeDir) { 79 + return { path, name: '~' }; 80 + } 81 + 74 82 return { 75 - path: '/' + withoutLeading.replace(/-/g, '/'), 83 + path, 76 84 name: parts[parts.length - 1] || 'unknown', 77 85 }; 78 86 }