Copilot Cloud Agent gets intermittent access denied errors
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
### Describe the bug
We are using copilot coding agent mode for working on github issues and have instructed copilot to use the report_progress tool to push files to remote since github cli (git push command gets a 'The push failed due to access permissions') and github api (gets 'The GITHUB_TOKEN doesn't have write access via git push or the git API') both get an error.
Although the report_progress seems to work most of the times, it shows following intermittent issues:
Copilot report_progress tool gets access denied error "remote: Write access to repository not granted.fatal: unable to access 'https://github.com/...': The requested URL returned error: 403" randomly even though it has pushed successfully in the same session earlier, where it had got a "Progress reported successfully." result after invoking the tool.
We have also tried instructing copilot to use just the github_mcp_server/push_files tool, but that has below issues:
a. Despite clear instruction to not use the report_progress tool, copilot will still attempt to use it (and may succeed which causes another issue as below)
b. Later, it may use the github_mcp_server/push_files but that leads to git rebase errors as there seem to be two users it users that do the push via report_progress Vs github_mcp_server/push_files
Could you pl advise on how to avoid intermittent access denied errors
Thanks
### Affected version
Multiple versions of cloud agent
### Steps to reproduce the behavior
_No response_
### Expected behavior
Should not get access denied error and be able to push code successfully
### Additional context
_No response_
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách so sánh các đường dẫn report_progress và github_mcp_server/push_files được mô tả trong issue, bao gồm cách mỗi đường dẫn xác thực và push các thay đổi. Tái hiện workflow của cloud agent và ghi nhận thời điểm xảy ra lỗi 403 hoặc lỗi rebase; hoàn tất có nghĩa là cả hai phương thức push đều hoạt động nhất quán mà không xảy ra lỗi push do bị từ chối truy cập hoặc xung đột.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- git, github
- Lĩnh vực
- developer-experience, tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 42/100