Skip to content

[BUG] Conda or venv Environment not synced across roles when starting as the orchestrator #10681

@leehangyue

Description

@leehangyue

Problem (one or two sentences)

Conda or venv Environment not synced across roles when starting as the orchestrator. The orchestrator seems not telling other roles it invokes like "ask" and "code" about the environment I specified in my prompt to the orchestrator.

Context (who is affected and when)

I tried to have roo edit an existing code repo and test on its own. I told the orchestrator to use a specific conda env with path pointing to the python executable. The orchestrator must know the right env to use, but the "ask" and "code" roles does not. They use plain "python" instead of i.e. /root/miniconda3/bin/python or C:/Users/my_user_name/AppData/Local/miniconda3/envs/my-env-name/python.exe

Reproduction steps

  1. Windows10, intranet (no internet access), self-hosted GLM4.6, RooCode 3.35.2, VS Code 1.99.3 User setup.
  2. Role: Orchestrator, Prompt: Add the feature "time" to the DataLoader in data_loader.py. Use this env for debug: C:/Users/my_user_name/AppData/Local/miniconda3/envs/my-env-name/python.exe. Test while you code.
  3. Roo explored the code repo, then switched to "Ask", ran "dataset_inspector.py" to see data structure, in order to access the source of the "time" feature.
  4. dataset_inspector.py failed importing some packages, because of the wrong environment.

Expected result

Roo (Ask) launch with: C:/Users/my_user_name/AppData/Local/miniconda3/envs/my-env-name/python.exe util/dataset_inspector.py /path/to/dataset/file

Actual result

Roo (Ask) launch with: cd util & python dataset_inspector.py /path/to/dataset/file

Variations tried (optional)

No response

App Version

3.35.2

API Provider (optional)

OpenAI Compatible

Model Used (optional)

GLM 4.6

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions