Windows sandbox: git status fails with working-directory permission denied despite allowed paths
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
Línea de trabajo
Empieza reproduciendo la sesión de Windows CLI en un repositorio de la unidad D: y ejecuta el comando git -C "D:<repo>" status --short --branch indicado. Compara el directorio de trabajo heredado, los cambios en los permisos del sandbox dentro de la misma sesión frente a los realizados después de reiniciar, y el acceso a %LOCALAPPDATA%\agency\logs. Se considera terminado cuando se haya identificado la causa y los mensajes de denegación o el comportamiento de la configuración hagan explícitos la ruta requerida y el estado de reinicio.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Copilot CLI continues to encounter filesystem access denials after I updated sandbox settings to allow access, including C:\Users\vineset . The effective policy has not been verified, so this may be a sandbox policy-application or process working-directory issue.
Environment: Windows; Copilot CLI 1.0.81-1 .
Steps to reproduce:
- Open a CLI session in a Git repository on the D: drive.
- Configure sandbox read/write permissions to allow the required paths.
- Ask the agent to run git -C "D:<repo>" status --short --branch .
- Update the sandbox permissions and retry in the same session.
Expected: Git reads the allowed repository and returns its status.
Actual: Every attempt fails with exit code 128:
fatal: Unable to read current working directory: Permission denied
Supporting observations:
- PowerShell successfully listed the repository and confirmed that .git exists.
- An earlier process-launch error reported C:\ as its working directory, although the session was configured for the repository on D:.
- Plugin management also failed to initialize logging because access to a file under %LOCALAPPDATA%\agency\logs was denied.
- The Git error does not identify the blocked path, making it difficult to determine which permission is missing.
Impact: Unable to run even read-only Git status operations; repository updates and plugin management are also blocked.
Please investigate: Whether tool processes inherit the correct working directory, whether sandbox setting changes reach subsequent processes in the current session, and whether an additional restriction overrides the configured allowed paths. If a restart is required, please make that explicit in the settings UI. Denial messages should identify the affected path and policy rule.
Uncertainty: The exact root cause is not established, and reproduction after a full CLI restart has not been confirmed.
Affected version
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
Additional context
No response
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/copilot-cli
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
github/copilot-cli#4909 ·
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
github/copilot-cli#4906 ·
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/copilot-cli#4848 ·
-
area:agents area:mcp
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/copilot-cli#4729 ·
-
area:sessions
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/copilot-cli#4712 ·
Todos los issues de github/copilot-cli
Issues similares
-
Update to NCCL 2.32 Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
conda-forge/nccl-feedstock#166 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
pop-os/plymouth-theme#43 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
hykilpikonna/hyfetch#545 ·
-
on hold T: core-bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100