@@ -96,6 +96,10 @@ func getDynamicHeightLimits(availableHeight int) (maxFiles, maxLSPs, maxMCPs int
9696// sidebar renders the chat sidebar containing session title, working
9797// directory, model info, file list, LSP status, and MCP status.
9898func (m *UI) drawSidebar(scr uv.Screen, area uv.Rectangle) {
99+ if m.session == nil {
100+ return
101+ }
102+
99103 const logoHeightBreakpoint = 30
100104
101105 t := m.com.Styles