You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Access Restriction Error When Creating New Projects in WSL #159
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
Fix AutoForgeAI#159: Allow browsing the user's home dir when it is un…