Built-in view reports Path does not exist for existing files in 1.0.73; 1.0.71 succeeds
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Description
The built-in view tool reports Path does not exist for an existing text file with Copilot CLI 1.0.73. The same isolated Vally/Copilot SDK probe succeeds consistently with CLI 1.0.71.
This appears to have started in 1.0.72 and remains present in 1.0.73.
Controlled reproduction
The probe uses:
- Official public npm packages
@github/copilot@1.0.71and@github/copilot@1.0.73 @microsoft/vally-cli@0.7.0- The Copilot SDK's supported
COPILOT_CLI_PATHoverride, pointing to each package's platformindex.js - The same model, prompt, skill, marker file, and grader for both versions
Minimal skill:
---
name: view-probe
description: Verify that Copilot can read a staged text file with its built-in view tool.
---
1. Use the built-in `view` tool exactly once to read `references/marker.txt`.
2. Do not use another file-reading tool.
3. Reply with the exact marker value.
references/marker.txt:
VIEW_PROBE_MARKER_8A4F21
The skill is staged into the agent workspace, and the prompt invokes it. Each version was run three times.
Results
| Copilot CLI | Result | view outcome |
|---|---|---|
| 1.0.71 | 3/3 passed | Returned VIEW_PROBE_MARKER_8A4F21 |
| 1.0.73 | 0/3 passed | Path does not exist |
A final one-trial run preserved both workspaces. Immediately after each run, the exact absolute path supplied to view existed:
Copilot CLI 1.0.71
FileExists: true
tool.execution_complete.success: true
result: VIEW_PROBE_MARKER_8A4F21
Copilot CLI 1.0.73
FileExists: true
tool.execution_complete.success: false
error: Path does not exist
Sanitized failing event:
{
"type": "tool.execution_start",
"data": {
"toolName": "view",
"arguments": {
"path": "C:\\probe\\workspace\\skill\\references\\marker.txt"
}
}
}
{
"type": "tool.execution_complete",
"data": {
"success": false,
"error": {
"message": "Path does not exist",
"code": "failure"
}
}
}
Additional CI evidence
We also observed the version transition on GitHub-hosted Ubuntu runners:
- CLI 1.0.71: 175 of 208
viewcalls succeeded. - CLI 1.0.72: all 193 observed
viewcalls failed withPath does not exist. - CLI 1.0.73: all three captured
viewcalls in another run failed with the same error.
The affected paths were accessible in the same agent sessions through glob, PowerShell Get-ChildItem, and Get-Content.
Expected behavior
view should return the contents of an existing readable file, as it does in 1.0.71.
Impact
Agents cannot read staged skill references and other workspace files. They may improvise without the reference, retry with additional tools, exceed turn/tool/token budgets, or produce incorrect results. This causes broad false failures in automated evaluations.
Environment
- Copilot CLI: 1.0.71 (working), 1.0.72/1.0.73 (affected)
- Copilot SDK: 1.0.6
- Vally CLI: 0.7.0
- Controlled reproduction: Windows x64
- Additional observations: GitHub-hosted Ubuntu runners
- Model:
claude-sonnet-4.6
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从内置的 view 入口点和通过 COPILOT_CLI_PATH 选定的平台 index.js 开始,然后使用随附的受控探针比较 CLI 1.0.71 与 1.0.73 中的路径处理。追踪现有绝对路径被拒绝的原因,并添加回归覆盖;完成的标准是探针在受影响的版本上成功读取 marker.txt,并保留 1.0.71 的行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- node.js, shell
- 领域
- cli, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100