Copilot CLI: confirm the agentStop hook sends the agent back on a broken test

Aberta Para iniciantes
#135 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
72/100
Tipo de issue
Documentação
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
github, node.js, typescript

Direção de pesquisa

Leia primeiro docs/agent-installation.md#github-copilot, depois execute npx "@diffci.com/diffci@latest" init em um repositório descartável com uma suíte de testes e inspecione o .github/hooks/diffci.json gerado para ver como o handler agentStop invoca diffci agent-stop --agent copilot. Execute cada cenário no Copilot CLI e, se puder, envolva o comando do hook para capturar seu payload de stdin. Pronto significa um relatório publicado cobrindo a versão do Copilot CLI, o OS, os resultados das etapas 3 e 4, o payload de stdin redigido e qualquer desvio da documentação.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

help wanted integration

Part of #132. Nobody has run DiffCI's GitHub Copilot setup in a real session yet. This is the first check, and the one that matters most: does Copilot CLI's agentStop hook send the agent back when its change breaks a test?

You need: Copilot CLI signed in to an account with Copilot, Node.js, and any small repository with a test suite (JS/TS, Python or Go).

Steps

  1. In the repository, run npx "@diffci.com/diffci@latest" init and commit nothing yet. Check that .github/hooks/diffci.json exists with an agentStop handler.
  2. Start Copilot CLI in the repository and ask it to make a change that breaks an existing test (for example, change a function's return value without updating its test).
  3. When the agent ends its turn, the hook runs diffci agent-stop --agent copilot. Expected: the agent gets another turn, with DiffCI's failing tests as the reason, and fixes them. After 3 failed attempts in a session, it should hand back to you.
  4. Repeat with a change that keeps the tests passing. Expected: the agent stops normally, with no extra turn.

Please post

  • Copilot CLI version, OS, and the language of the repository.
  • What happened in steps 3 and 4: did the agent continue, what reason did it see, and did it stop when it should?
  • The stdin payload the hook received, if you can capture it (for example by wrapping the command in the hook file to write stdin to a file). Remove anything private first.
  • Anything that didn't match docs/agent-installation.md#github-copilot.

A report is a contribution: it is credited like a PR, and sustained work on the Copilot integration is how the Area maintainer tier is offered (CONTRIBUTING.md).

Linguagem predominante
TypeScript
Estrelas
0
Forks
4
Merge médio
18h 41min
PRs com merge (30d)
48

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de DiffCI/core

Todas as issues de DiffCI/core

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.