github / github/app

Terminal failed to start with "Access is denied" error

Đang mở
#2,820 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
triage
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
153
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Short summary

Terminal initialization fails with access denied error when attempting to spawn PowerShell process.

### Affected version or release

v1.1.8

### Installation context

GitHub Copilot installed on Windows, attempting to spawn terminal with shell integration

### What happened?

When opening a terminal session, the application fails to spawn the PowerShell process with the following error:

```
Failed to spawn PTY command: CreateProcessW `"C:\\Users\\hnaganur\\AppData\\Local\\Microsoft\\WindowsApps\\pwsh.exe -NoLogo -ExecutionPolicy Bypass -NoExit -Command \". '\\\\?\\C:\\Users\\hnaganur\\AppData\\Local\\Programs\\GitHub Copilot\\terminal-integration\\shellIntegration.ps1'\"\0"` in cwd `Some("C:\\Users\\hnaganur\\.copilot\\chats\\fd4d9613-e8fd-4251-b269-5486833858ba\0")` failed: Access is denied. (os error 5)
```

### Steps to reproduce

- Launch GitHub Copilot app
- Open or navigate to a chat session
- Attempt to open a terminal

### Expected behavior

Terminal should initialize successfully and display a ready PowerShell prompt.

### Additional context

- **Error Code:** OS error 5 (Access is denied)
- **Shell:** PowerShell (pwsh.exe)
- **Environment:** Windows
- **Attempted Integration:** Shell integration script at `terminal-integration\shellIntegration.ps1`
- **Working Directory:** `.copilot\chats\fd4d9613-e8fd-4251-b269-5486833858ba`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Tái hiện lỗi trên Windows từ ứng dụng GitHub Copilot bằng cách sử dụng pwsh.exe và thư mục làm việc .copilot\chats được báo cáo. Bắt đầu với đường dẫn khởi chạy terminal và terminal-integration\shellIntegration.ps1, sau đó xác minh rằng việc mở terminal hoàn tất mà không có lỗi hệ điều hành 5 và hiển thị prompt PowerShell sẵn sàng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
powershell
Lĩnh vực
cli, desktop, operating-systems
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.