diff --git a/internal/tui/page/chat/chat.go b/internal/tui/page/chat/chat.go index 0527e0c3ac960890bb58cd996ebbe22f3b4d369d..909ef31f451e8eb5bfabd61e3cb1750e738f838d 100644 --- a/internal/tui/page/chat/chat.go +++ b/internal/tui/page/chat/chat.go @@ -253,6 +253,10 @@ func (p *chatPage) setCompactMode(compact bool) tea.Cmd { cmds = append(cmds, p.layout.SetSize(p.wWidth, p.wHeight)) // set the sidebar cmds = append(cmds, p.setSidebar()) + l, cmd := p.layout.Update(chat.SessionSelectedMsg(p.session)) + p.layout = l.(layout.SplitPaneLayout) + cmds = append(cmds, cmd) + return tea.Batch(cmds...) } }