microsoft / microsoft/vscode-pull-request-github

"Bug: Extensão GitHub Copilot resume PR usando todas as ferramentas instaladas, mesmo com apenas 63 selecionadas, e excede o limite permitido"

Open
#7,587 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

*english-please
Dominant language
TypeScript
Stars
2.6k
Forks
795
Avg merge
1d 4h
Merged PRs (30d)
46

Description

Type: Bug

Ao clicar com o botão direito em um Pull Request na extensão de Pull Requests e selecionar a opção "Resumir com Copilot", ocorre o seguinte erro:

"Muitas ferramentas selecionadas"

No entanto, conforme as imagens anexadas, tenho apenas 63 ferramentas selecionadas.

Pelos testes, o comportamento indica que a extensão está utilizando todas as ferramentas instaladas no ambiente, ultrapassando o limite máximo de 128 ferramentas por solicitação, mesmo quando um subconjunto menor está selecionado.

Possíveis causas observadas:

A extensão pode estar enviando mais ferramentas do que o necessário para processar a solicitação.

Dependências internas podem estar adicionando ferramentas extras automaticamente.

Possível bug na lógica da extensão, resultando em chamadas redundantes.

Passos para reproduzir:

Abrir a extensão de Pull Requests no VS Code.

Clicar com o botão direito em um PR.

Selecionar “Resumir com Copilot”.

Observar o erro, mesmo com menos de 128 ferramentas selecionadas.

Comportamento esperado:
O Copilot deve usar apenas as ferramentas selecionadas (63 neste caso) e não ultrapassar o limite de 128.

Sugestões:

Garantir que apenas as ferramentas selecionadas sejam enviadas na requisição.

Revisar a lógica de seleção e envio de ferramentas da extensão.

Validar se dependências internas estão adicionando ferramentas extras.

Extension version: 0.116.0
VS Code version: Code 1.103.0 (e3550cfac4b63ca4eafca7b601f0d2885817fd1f, 2025-08-06T21:40:10.271Z)
OS version: Linux x64 5.15.0-139-generic
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz (8 x 3291)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 4, 3, 2
Memory (System) 31.11GB (15.61GB free)
Process Argv --crash-reporter-id 40cfb63e-51f5-4ddf-9694-0ad86f605b8e
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
A/B Experiments
vsliv368:30146709
binariesv615:30325510
h48ei257:31000450
nativeloc1:31344060
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
aj953862:31281341
pylancequickfixf:31358881
9d2cg352:31346308
convertlamdat:31358880
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31350858
4f60g487:31327383
replacestringexc:31350595
nes-set-on:31351930
6abeh943:31336334
yijiwantestdri0626-t:31336930
0927b901:31350571
ji9b5146:31348712
45650338:31358607
0cj2b977:31352657
controlchatstate:31363048

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Pull Requests extension's “Resumir com Copilot” command and reproduce the failure using the reported VS Code and extension versions. Trace which tools are included in the request; done means only the 63 selected tools are sent and the request stays within the 128-tool limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.