Dotenv forced to remote with polyfun?

It appears that .env.development.local is ignored when jets executes a polymorphic function. Not sure if it’s a bug, but I have a python function on a controller, and when that is executed Jets::Resource::Lambda::Function::Environment.env_properties is called which forces dotenv into a remote mode, even though I’m local.

Is there a way around this?