github / github/copilot-cli

Drag and drop of files to attach no longer works in the Copilot app (regression, macOS)

オープン
#3,955 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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 で導入されたドラッグアンドドロップ実装と比較します。macOS の関連するパス処理については #2043 を確認してください。画像またはテキスト/ソースファイルをプロンプトコンポーザーにドロップすると、期待される添付チップが作成されるか、そのパスが挿入されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
macos
領域
desktop
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
58/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。