@@ -119,7 +119,10 @@ func (c *commandDialogCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
119119 case tea.WindowSizeMsg:
120120 c.wWidth = msg.Width
121121 c.wHeight = msg.Height
122− return c, c.commandList.SetSize(c.listWidth(), c.listHeight())
122+ return c, tea.Batch(
123+ c.SetCommandType(c.commandType),
124+ c.commandList.SetSize(c.listWidth(), c.listHeight()),
125+ )
123126 case tea.KeyPressMsg:
124127 switch {
125128 case key.Matches(msg, c.keyMap.Select):
@@ -318,7 +321,6 @@ func (c *commandDialogCmp) defaultCommands() []Command {
318321 })
319322 }
320323 }
321−
322324 // Only show toggle compact mode command if window width is larger than compact breakpoint (90)
323325 if c.wWidth > 120 && c.sessionID != "" {
324326 commands = append(commands, Command{