@@ -327,6 +327,9 @@ func (a *appModel) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd {
327 // If the commands dialog is already open, close it
327 // If the commands dialog is already open, close it
328 return util.CmdHandler(dialogs.CloseDialogMsg{})
328 return util.CmdHandler(dialogs.CloseDialogMsg{})
330+ if a.dialog.HasDialogs() {
331+ return nil // Don't open commands dialog if another dialog is active
330 return util.CmdHandler(dialogs.OpenDialogMsg{
333 return util.CmdHandler(dialogs.OpenDialogMsg{
331 Model: commands.NewCommandDialog(a.selectedSessionID),
334 Model: commands.NewCommandDialog(a.selectedSessionID),