Microsoft/vscode

Copilot Chat: get_changed_files sourceControlState ignored

Aberta

#269.452 aberto em 1 de out. de 2025

 (1 comentário) (0 reação) (1 responsável)TypeScript (39.847 forks)batch import
buggithelp wanted

Métricas do repositório

Stars
 (184.936 estrelas)
Métricas de merge de PR
 (Mesclagem média 11h 43m) (1.000 fundiu PRs em 30d)

Description

  • Copilot Chat Extension Version: 0.32.2025100101
  • VS Code Version: 1.105.0-insider (Universal)
    • Commit: 6e60e679fc6b6a512edbed9a750d7c581
  • OS Version: Darwin arm64 24.6.0
  • Feature (e.g. agent/edit/ask mode): agent
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): GPT-5-Codex

The get_changed_files tool doesn't seem to return changes when the model sets the sourceControlState to staged.

get-changed-files.copilot.md

Steps to Reproduce:

  1. Tell Copilot to use the get_changed_files tool and explicitly set the sourceControlState parameter.
* Use the get_changed_files tool to get the staged changes and build a commit message based on the staged git diff.
  * Must set `sourceControlState` to `staged` to build the correct commit message.

Guia do colaborador