github / github/copilot-cli

copilot --resume hangs at Resuming session on cold start in Windows

Đang mở
#4,165 4 bình luận 1 reaction 0 người được giao Xem trên GitHub
area:platform-windows area:sessions
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the bug

On Windows, running `copilot --resume` directly from PowerShell starts the Copilot CLI TUI but remains indefinitely at `Resuming session...`. The resumed session never becomes interactive and no visible error is displayed.

The same sessions can be resumed successfully by first starting `copilot` normally and then running `/resume` from inside the active CLI. This appears specific to the cold-start command-line resume path.

### Affected version

```text
GitHub Copilot CLI 1.0.72-0
```

Installed through WinGet.

### Steps to reproduce the behavior

1. Have at least one existing Copilot CLI session available to resume.
2. Exit Copilot CLI completely.
3. From PowerShell, run `copilot --resume`.
4. Select a session if the session picker is displayed.
5. Observe that the TUI remains at `Resuming session...` and never becomes usable.
6. Terminate the hung process.
7. Run `copilot` without the resume flag.
8. From inside the running CLI, use `/resume` and select the same session.
9. Observe that the session resumes successfully.

### Expected behavior

`copilot --resume` should resume the selected session and become interactive, matching the behavior of `/resume` inside an already-running CLI.

### Additional context

- OS: Microsoft Windows 11 Enterprise, version 10.0.26200, build 26200
- CPU architecture: x86_64
- Terminal: Windows Terminal
- Shell: PowerShell 7.4.17
- No visible error is shown. The status line remains at `Resuming session...` indefinitely.
- Possibly related to #3458, which reported a previous Windows cold-start resume failure. That issue exited silently on version 1.0.51, whereas version 1.0.72-0 reaches the TUI and then hangs.

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 đường dẫn cold-start từ PowerShell bằng `copilot --resume`, sau đó so sánh với việc khởi động `copilot` và sử dụng `/resume` bên trong CLI. Điều tra luồng resume khác nhau giữa các điểm vào này; hoàn tất khi session được chọn trở nên tương tác thay vì vẫn ở `Resuming session...`.

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, operating-systems
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 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
52/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.