github / github/copilot-cli

Failure to write to file

Đang mở
#3,049 3 bình luận 1 reaction 0 người được giao Xem trên GitHub
area:permissions area:tools
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

Consistent failure to write/edit when telling it to create a plan but don't make any code changes yet.

### Affected version

GitHub Copilot CLI 1.0.39

### Steps to reproduce the behavior

I run copilot cli.
I switch to 'autopilot'
I select my model and I enable all permissions.

I have a prompt ready, this prompt will do some research on a feature I want to implement.
The prompt is a research and planning prompt.
The aim is to create a detailed plan.md file in my project folder.

It does the research it creates the plan, but it cannot save the plan.
It tries to write to various different files, locations (session-state, project location), etc
All writes fail

I see red text how it is failing to make any writes.

This used to work a couple of versions back (1.0.24 etc)

If I run the same prompt again in a new session and I change this text:

"This is only a planning task. Do **not** implement the code yet."

to

"This is a planning task."

Then it works 100% and it creates the plan.md without a single issue.

It is as if the instruction to not make code changes suddenly restricts it from making any file edits.

This use to work fine.

I have a personal and a business github copilot account and I have had the same happen on both accounts on different machines, both are v1.0.39

### Expected behavior

_No response_

### Additional context

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi trong Copilot CLI 1.0.39 với autopilot và prompt chỉ lập kế hoạch, sau đó so sánh với prompt tạo thành công plan.md. Truy vết đường dẫn ghi tệp được sử dụng cho thư mục dự án và các vị trí trạng thái phiên; hoàn thành khi một tác vụ lập kế hoạch có thể tạo plan.md mà không cho phép triển khai mã.

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

Đánh giá

Công nghệ
shell
Lĩnh vực
cli
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
Khá rõ ràng
Mức phù hợp với người mới
45/100

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.