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