Copilot CLI 1.0.117 omits edit from the model tool catalog in non-interactive mode

Đang mở
#5,620 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
node.js
Lĩnh vực
cli

Hướng nghiên cứu

The report identifies non-interactive tool catalog construction as the failing path and names the installed CLI package's index.js entry point; it does not identify the code that filters available tools. Start by tracing how --available-tools reaches the serialized model request in that entry point. Done means edit appears alongside view, rg, and glob when explicitly allowed, and the fixture can be changed under the stated permission.

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

Mô tả

area:non-interactive area:tools
Describe the bug

When Copilot CLI 1.0.117 is run non-interactively with edit explicitly included in --available-tools, the serialized model request does not include the edit tool. The model receives only view, rg, and glob, so it cannot modify an explicitly permitted temporary fixture file. The same behavior occurs through both the VS Code Copilot shim and the installed CLI package's direct index.js entry point.

Affected version

1.0.117

Steps to reproduce the behavior

Create a temporary fixture.txt containing BEFORE.
Run Copilot CLI 1.0.117 non-interactively with edit included in --available-tools and write(path) permitted only for that fixture.

Command used (fixture path sanitized):

copilot.exe -p "Replace BEFORE with AFTER in fixture.txt. Do not use any other tools."
--available-tools "view,rg,glob,edit"
--allow-tool "write(C:\temp\copilot-edit-repro\fixture.txt)"
--no-ask-user

Ask Copilot to replace BEFORE with AFTER.
Observe that the fixture is not edited.
Debug logging shows that the model receives only view, rg, and glob; edit is absent (tool_count=3).
The same result occurs using both the VS Code Copilot shim and the installed CLI package's direct index.js entry point, with built-in MCPs enabled or disabled.

Expected behavior

When edit is explicitly included in --available-tools and write(path) permission is granted for the temporary fixture, edit should be included in the model tool catalog so the model can change fixture.txt from BEFORE to AFTER.

Additional context

Windows 11 Enterprise, Version 24H2, OS Build 26100.9168. Node.js v26.13.1. VS Code shim 0.1.2.

The behavior was identical using the VS Code shim and the installed Copilot CLI 1.0.117 index.js directly with Node, and with built-in MCPs enabled or disabled.

Sanitized debug evidence:

tool_count=3
tools=["view","rg","glob"]
fileChangesWorkspaceActive=false
fileChangesWorkspace=null

The actual temporary fixture path and identifying information have been sanitized. No full debug logs are attached.

Ngôn ngữ chính
Python
Star
11.5k
Fork
2k
Merge trung bình
6 giờ 34 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/copilot-cli

Tất cả issue của github/copilot-cli

Issue tương tự

Thêm issue về Python

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.