Since c16ab3a248 Session::new_audio_track has an optional parameter to auto-connect inputs. Lua scripts don't have a default parameter, so bool input_auto_connect was assumed false and inputs left unconnected.
c16ab3a248