Skip to content

Roo Code's execute_command tool fails to persist conda activate state #6628

@oolyr

Description

@oolyr

App Version

v3.25.6

API Provider

Google Gemini

Model Used

Gemini-2.5-Pro

Roo Code Task Links (Optional)

No response

🔁 Steps to Reproduce

Environment
OS: Windows 10
VS Code Version: 1.102.3
Conda Version: 24.11.3

To Reproduce

  1. Open Roo's chat box in VS Code.
  2. Ensure a Conda virtual environment named test exists.
  3. Type and send a task, such as: "Please run 'activate test' command."
  4. Observe the Agent using its execute_command tool to run 'activate test'.
  5. Type and send: "Run conda info."
  6. Observe the Roo using execute_command again to run conda info and return the output: "active environment : None"

💥 Outcome Summary

Expected Behavior

  • In step 6, the output of the conda info command should show:
    active environment : test
    active env location : .../path/to/your/envs/test
  • The python version should be the one installed in the test environment.

Actual Behavior

  • The output of the conda info command shows:
    active environment : None
    The python version is from the base environment.
  • This proves that the test environment was not successfully activated within the Agent's execution context.

📄 Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Needs InfoMissing details or unclear. Waiting on author to provide more context.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions