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

Abierto
#5,620 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
node.js
Área
cli

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
11.5k
Forks
2k
Merge medio
6 h 34 min
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/copilot-cli

Todos los issues de github/copilot-cli

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.