on main help sign in
chore: if we're in the home dir top level show the full path
commit3084fc0b5dd9d8cfabdafb28e33846334b639b8b authorChristian Rocha <christian@rocha.is> dateFri 20 Jun 2025, 23:07 (1 year ago) parent100d994
1 file changed+3−2
internal/tui/components/chat/sidebar/sidebar.go+3−2
internal/tui/components/chat/sidebar/sidebar.go+3−2
@@ -509,9 +509,10 @@ func (s *sidebarCmp) currentModelBlock() string {
509509func cwd() string {
510510 cwd := config.WorkingDirectory()
511511 t := styles.CurrentTheme()
512− // replace home directory with ~
512+ // Replace home directory with ~, unless we're at the top level of the
513+ // home directory).
513514 homeDir, err := os.UserHomeDir()
514− if err == nil {
515+ if err == nil && cwd != homeDir {
515516 cwd = strings.ReplaceAll(cwd, homeDir, "~")
516517 }
517518 return t.S().Muted.Render(cwd)