Hi! I am using the dbt-prefect package which in turn uses the shell_run_command task. It seems that the shell command is not run with the correct conda environment (the one triggering the flow), instead 'base' is used. This is a relevant subset of the env dict that is passed to anyio.open_process.
CONDA_DEFAULT_ENV': 'correct_env', 'CONDA_PREFIX': correct_env_path', 'CONDA_PROMPT_MODIFIER': '(correct_env)'