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

Offen
#5,620 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
node.js
Bereich
cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
11.5k
Forks
2k
Ø Merge
6 Std. 34 Min.
Gemergte PRs (30 T.)
3

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/copilot-cli

Alle Issues in github/copilot-cli

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.