Skip to content

Path must be within one of the workspace directories: #17049

@RandomTurtle

Description

@RandomTurtle

What happened?

Even with Yolo mode on and no sandbox, it says " Path must be within one of the workspace directories:" complaining that it can't access folders outside of the project directory. I am trying to have it install stuff, it tries to add something to PATH, but it can't use 'dir' to find the path to find the version number, so it stalls out telling me to go get the path myself. with no sandbox and yolo mode, it should have unrestricted access to all of my drive. My windows installation is expendable there is nothing to lose.

What did you expect to happen?

I expected YOLO and No sandbox to have full control

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here
About Gemini CLI                                                                                                     │
│                                                                                                                      │
│ CLI Version                              0.24.4                                                                      │
│ Git Commit                               881b026f2                                                                   │
│ Model                                    auto-gemini-2.5                                                             │
│ Sandbox                                  no sandbox                                                                  │
│ OS                                       win32                                                                       │
│ Auth Method                              OAuth                                                                       │
│ User Email                               myemailthats@gmail.com

</details>

### Login information

_No response_

### Anything else we need to know?

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalitystatus/need-triageIssues that need to be triaged by the triage automation.status/possible-duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions