fix(ui): update layout and size after session switch

Ayman Bagabas created

Change summary

internal/ui/model/ui.go | 1 +
1 file changed, 1 insertion(+)

Detailed changes

internal/ui/model/ui.go 🔗

@@ -396,6 +396,7 @@ func (m *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 		// Reload prompt history for the new session.
 		m.historyReset()
 		cmds = append(cmds, m.loadPromptHistory())
+		m.updateLayoutAndSize()
 
 	case sendMessageMsg:
 		cmds = append(cmds, m.sendMessage(msg.Content, msg.Attachments...))