Configuring mother.pd to recognize multiple MIDI devices

It might be a bug, or just the way it works. The internal Pd messages are not very well documented and might work in strange ways.

Do the midiindev / midioutdev flags work in GUI mode (starting pd from terminal without -nogui) ?

Alternatively, you can save the MIDI settings from Pd, discussed a little here: