You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
still receiving reports from users with this issue. it's unclear if this is an agentstack problem or users not knowledgable with load_dotenv(). i need to investigate further
I did notice that some of the tools have a load_dotenv call at the top of their import, so maybe the repeated call is contributing to this?
Shouldn't be removing variables from the ENV regardless.
This may also be related to the path they're being loaded from? dotenv loads ~/.env first if it finds it by default if I remember correctly. We could hardcode the project root path into our internal call.
Ok, I think what's happening is that if the user has a ~/.env file that is getting loaded first, and the project .env is skipped. We now explicitly load the project's environment variables and pass them to the run task.
This will be released in the next version of agentstack and is available right now in the main branch. Feel free to reopen this issue if you are still experiencing problems.
when adding env vars to .env in the project, the project is not finding them even after calling load_dotenv()
The text was updated successfully, but these errors were encountered: