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

Đang mở Phù hợp với người mới
#135 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, node.js, typescript

Hướng nghiên cứu

Đọc docs/agent-installation.md#github-copilot trước, sau đó chạy npx "@diffci.com/diffci@latest" init trong một repo tạm có bộ test và kiểm tra .github/hooks/diffci.json được tạo để xem handler agentStop gọi diffci agent-stop --agent copilot như thế nào. Chạy từng kịch bản trong Copilot CLI và, nếu có thể, bọc lệnh hook để bắt payload stdin của nó. Hoàn thành nghĩa là một báo cáo đã đăng bao gồm phiên bản Copilot CLI, OS, kết quả bước 3 và 4, payload stdin đã được che thông tin, và mọi sai lệch so với tài liệu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
18 giờ 41 phút
Pull request đã merge (30 ngày)
48

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DiffCI/core

Tất cả issue của DiffCI/core

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.