github / github/copilot-cli

Windows desktop app takes ~1-2 minutes to become usable while startup launches multiple CLI processes

未关闭
#4,176 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:platform-windows area:sessions
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

> *This was generated by AI during triage.*

## Environment

- Windows 11
- GitHub Copilot desktop app v1.0.25 (updater reported latest)
- App-spawned Copilot CLI v1.0.71
- Existing sessions and multiple projects

## Actual behavior

After starting the desktop app, the reporter observes approximately **1-2 minutes** before existing sessions become usable.

One captured startup/resume sequence took **91.9 seconds**:

| Segment | Duration |
|---|---:|
| App start -> resume request | 74.577s |
| Resume request -> completion | 17.402s |

The entire 91.9 seconds is not resume time, and logs do not prove the pre-request interval was entirely blocking.

## Expected behavior

The app should become usable promptly after startup.

## Observations

- Startup booted eight CLI processes: seven for catalog warming and one for the requested resume.
- Five CLI boot intervals overlapped at peak.
- No CLI spawn failures or retries occurred in this startup window.
- Across 22 samples from the full run, `spawn_ms` was 6,598-21,343ms (median 12,196ms).
- Seven catalog creations reported `create_session_rpc_ms` of 11,507-27,413ms.
- Cold `session_create_ms` samples were 16,005-31,896ms; warm-process samples were 100-343ms.

These are separate metrics measured on this host.

## Sanitized log shapes

```text
github_app::session::manager::cli_pool: spawned new CLI process for pool ... pid=Some() spawn_ms=14516

github_app::session::core: CLI session created ... create_session_rpc_ms=

github_app::session::manager::lifecycle: session::create completed ... retain_cli_ms= model_fetch_ms= session_create_ms=26391 total_ms=
```

## Unconfirmed factors

The profile contained 1,145 sessions and 1.37GB of session state. A clean-profile control was not performed because the investigation was read-only.

MCP configuration, Defender, orphaned processes, authentication warnings, and an invalid hook remain unproven as causes.

## Related issues

- https://github.com/github/copilot-cli/issues/4165 - Windows cold resume hangs on CLI v1.0.72-0; this report concerns desktop startup.
- https://github.com/github/copilot-cli/issues/3652 - WSL startup spends 40-80 seconds in `listSessions`.
- https://github.com/github/copilot-cli/issues/3429 - Linux v1.0.49 cold boot regression caused by credential lookup.

## Questions

1. Is catalog warming expected to create one CLI process per project or directory?
2. Should these CLI processes be reused or pooled?
3. Which diagnostics expose the internal phases of `create_session_rpc_ms`?
4. Is a clean-profile reproduction required?

## Additional context

This is a read-only investigation from one host. It establishes timing and correlation, not the internal root cause.

贡献指南

打开贡献指南

调研方向

尚未确定任何源文件、测试或入口点。先从已捕获的启动/恢复日志以及 spawn_ms、create_session_rpc_ms 和 session_create_ms 测量值入手;确定 catalog 预热和多个 CLI 进程是否能够解释该延迟,并建立一个可复现的完成标准。

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli, desktop, observability, performance
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。