github / github/CopilotForXcode

Copilot wrote codes to wrong files in Agent mode

Đang mở
#453 11 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Swift
Star
6.3k
Fork
2k
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
2

Mô tả

**Describe the bug**

**Versions**
- Copilot for Xcode: 0.41.0
- Xcode: 26.0 beta 5 (17A5295f)
- macOS: 26.0 Beta (25A5338b)

**Steps to reproduce**
When using Agent mode to fix bugs, sometimes Copilot will write code to the wrong file and make content duplicated.

For example, with a SPM project, Copilot wrote codes of Package.swift to swift file in sources. And it could not found this was bug until I pointed out.

It also happened with normal .xcodeproj project between .swift files.

When this happens, the whole file content will be replaced. You will lost one file and have two duplicated files.

Can you investigate and fix it?

**Screenshots**

**Logs**

**Additional context**

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

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

Đánh giá

Issue này chưa được đánh giá.

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.