Copilot CLI 1.0.117 omits edit from the model tool catalog in non-interactive mode
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- node.js
- Ambito
- cli
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 11.5k
- Fork
- 2k
- Merge medio
- 6h 34m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/copilot-cli
-
area:plugins
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
github/copilot-cli#5567 ·
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationApertaarea:tools
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
github/copilot-cli#5476 ·
-
triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
github/copilot-cli#5340 ·
Tutte le issue di github/copilot-cli
Issue simili
-
fidelity
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
backlog
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sagemathinc/sagebrush#3434 ·
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
wuisabel-gif/MemWhale#576 ·
I maintainer di solito rispondono entro 1 giorno
-
Status: Triage Suggestion
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
I maintainer di solito rispondono entro 1 giorno