From 3084fc0b5dd9d8cfabdafb28e33846334b639b8b Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Fri, 20 Jun 2025 23:07:37 -0400 Subject: [PATCH] chore: if we're in the home dir top level show the full path --- internal/tui/components/chat/sidebar/sidebar.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/tui/components/chat/sidebar/sidebar.go b/internal/tui/components/chat/sidebar/sidebar.go index 12beb139071da58168e9c4f07b991c9ad05f7320..52921f1c2c86a1d1a6497761123d321b736599d8 100644 --- a/internal/tui/components/chat/sidebar/sidebar.go +++ b/internal/tui/components/chat/sidebar/sidebar.go @@ -509,9 +509,10 @@ func (s *sidebarCmp) currentModelBlock() string { func cwd() string { cwd := config.WorkingDirectory() t := styles.CurrentTheme() - // replace home directory with ~ + // Replace home directory with ~, unless we're at the top level of the + // home directory). homeDir, err := os.UserHomeDir() - if err == nil { + if err == nil && cwd != homeDir { cwd = strings.ReplaceAll(cwd, homeDir, "~") } return t.S().Muted.Render(cwd)