'no module named' for custom apps in devcontainer environment

In a devcontainer, I’ve found myself (twice now) in a state where running bench new-app and then installing the new, effectively blank, app, results in a site crash and Module Not Found error. If the app is named ‘helpdesk’, for example, after installing it, I’ll get: ModuleNotFoundError: No module named ‘helpdesk’

I’ve cleared cache, run migrate, setup requirements, etc. to no avail. Ideas?

Edit: Restarting the docker environment seems to cure the issue but surely there’s a simpler way?