Drag and drop of files to attach no longer works in the Copilot app (regression, macOS)
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
### Describe the bug
Dragging a file from Finder onto the GitHub Copilot app to attach it to a prompt no longer works. When a file is dropped on the prompt composer, nothing is attached: no attachment chip appears and no file path is inserted.
This is a regression. Drag-and-drop file attach worked in a previous release (the feature was originally added in #363), and after updating to a newer build it is broken again, back to the same behavior as before the feature existed.
### Affected version
1.0.65
### Steps to reproduce the behavior
1. Open the GitHub Copilot app.
2. Focus the prompt composer in a session.
3. Drag a file (for example an image PNG, or a text/source file) from Finder and drop it onto the composer.
4. Observe that nothing is attached: no attachment chip is shown and the file path is not inserted into the prompt.
### Expected behavior
Dropping a file onto the composer should attach it to the prompt (show an attachment chip / insert the file path), the same way it worked in the release where this feature was functioning.
### Additional context
- Operating system: macOS
- CPU architecture: arm64 (Apple Silicon)
- Regression: drag-and-drop file attach worked in an earlier release and stopped working again after a later update.
- Related history: #363 (drag/drop + paste of images added), #2043 (related drag handling of a macOS screenshot temp path in a terminal).
貢獻指南
研究方向
先在 macOS 1.0.65 上重現此故障,然後將目前的行為與 #363 中引入的拖放實作進行比較。查看 #2043 以了解相關的 macOS 路徑處理。完成標準是:將圖像或文字/原始檔案拖放到提示詞編輯器上,會建立預期的附件 chip 或插入其路徑。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- macos
- 領域
- desktop
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 58/100