copilot --resume hangs at Resuming session on cold start in Windows
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
### 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.
贡献指南
调研方向
从 PowerShell 使用 `copilot --resume` 重现冷启动路径,然后将其与启动 `copilot` 并在 CLI 中使用 `/resume` 进行比较。调查这些入口之间不同的恢复流程;完成标准是所选会话变为可交互状态,而不是停留在 `Resuming session...`。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- powershell
- 领域
- cli, operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100