chore: small sidebar fix

Kujtim Hoxha created

Change summary

internal/tui/components/chat/sidebar/sidebar.go | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

Detailed changes

internal/tui/components/chat/sidebar/sidebar.go 🔗

@@ -107,8 +107,11 @@ func (m *sidebarCmp) View() tea.View {
 		m.cwd,
 		"",
 		m.currentModelBlock(),
-		"",
-		m.filesBlock(),
+	)
+	if m.session.ID != "" {
+		parts = append(parts, "", m.filesBlock())
+	}
+	parts = append(parts,
 		"",
 		m.lspBlock(),
 		"",