Skip to content

Access Restriction Error When Creating New Projects in WSL #159

Description

@agraciag
When attempting to create a new project through the AutoForge web UI in Windows Subsystem for Linux (WSL), the application throws a "Blocked access to restricted path: /root" error with a 403 Forbidden
status. This prevents users from creating new projects.

Steps to Reproduce

 1. Start AutoForge server in WSL: autoforge --workspace /mnt/d/dev_projects/sin_nombre
 2. Open the web UI at http://127.0.0.1:8888 from Windows browser
 3. Attempt to create a new project
 4. Observe the error in the server logs: "Blocked access to restricted path: /root" followed by "403 Forbidden"

Expected Behavior

Users should be able to create new projects within the specified workspace directory without encountering access restrictions to system directories.

Actual Behavior

The application attempts to access the /root directory when creating new projects, triggering security restrictions that block the operation. This happens consistently in WSL environments.

Environment

 - AutoForge Version: v0.1.3
 - OS: Linux (WSL2 on Windows)
 - Installation Path: /root/.nvm/versions/node/v22.21.1/bin/autoforge
 - Workspace: /mnt/d/dev_projects/sin_nombre
 - WSL Distribution: Ubuntu

Additional Information

 - The error occurs regardless of the specified workspace directory
 - The application appears to have a hardcoded or default behavior that attempts to access /root when creating new projects
 - This affects the core functionality of creating new projects through the web interface
 - The server runs fine initially, but the error occurs specifically when interacting with the filesystem through the UI
 - In WSL environments, there might be additional path resolution complexities between Windows and Linux filesystems

Activity

  1. added a commit that references this issue on Nov 8, 2026
    ce71e71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions