Skip to content

Conversation

@javanthropus
Copy link

  • Pass through all environment variables by default
  • Allow environment variables to be overridden or entirely removed

This fixes the default behavior when using gemini-cli in ACP mode when using the oauth-personal authentication mode. Without this fix, the ACP session silently fails on startup. I found that gemini-cli requires the HOME environment variable to be set, but the current behavior of avante is to strip away all environment variables except PATH.

I couldn't find any documented justification for the current behavior. Given that people typically run gemini-cli without scrubbing away their environment variables, I couldn't see a real security argument for stripping the environment down either.

* Pass through all environment variables by default
* Allow environment variables to be overridden or entirely removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant