Pasting text that also carries an image drops the text
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- desktop
調査の方向性
src/renderer/src/views/composer.ts:307-337 の貼り付けハンドラーから始め、clipboardData.files と text/plain の処理を確認してください。テキストと画像の両方を含むクリップボードの内容で再現し、テキストが入力欄に届くことと、画像の動作が引き続き適切であることを確認してください。混在した内容を貼り付けてもテキストが失われなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Found in the 2026-10-07 code review (the logic is confirmed in the code; whether the clipboard holds both depends on the source app).
Problem
In src/renderer/src/views/composer.ts:307-337, when clipboardData.files contains an image and images are allowed, event.preventDefault() runs and only the image is attached. The text/plain check exists only in the branch where images are blocked.
Scenario
Copying cells from Excel, or a selection from Word or a browser, puts both text and a PNG on the clipboard. With the default Claude model, pasting attaches an image and the text never reaches the input.
Fix
const hasText = event.clipboardData?.types.includes('text/plain');
if (this.imagesBlocked) { if (hasText) return; event.preventDefault(); /* notice */ return; }
if (hasText) return; // or keep the text and also attach the image without preventDefault
event.preventDefault();
- 主要言語
- TypeScript
- スター
- 2
- フォーク
- 2
- 平均マージ
- 8時間 28分
- マージ済み PR(30日)
- 26
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PierrunoYT/patch のほかの issue
-
enhancement priority: low severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PierrunoYT/patch#305 ·
メンテナーはふだん 1 日以内に返信
-
security: isAppPageUrl checks devRendererUrl with startsWith instead of comparing parsed URL originsオープンpriority: low security severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PierrunoYT/patch#300 ·
メンテナーはふだん 1 日以内に返信
-
Claude Code chats: tool calls made inside Claude Code subagents leave cards that end as "(stopped)"オープンbug priority: low severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
PierrunoYT/patch#289 ·
メンテナーはふだん 1 日以内に返信
-
bug priority: medium severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PierrunoYT/patch#285 ·
メンテナーはふだん 1 日以内に返信
-
priority: medium security severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
PierrunoYT/patch#283 ·
メンテナーはふだん 1 日以内に返信
PierrunoYT/patch の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
521xueweihan/HelloGitHub#4025 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
voidzero-dev/void#478 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
Small-tailqwq/dsh-deep-whale#207 ·
メンテナーはふだん 1 日以内に返信
-
The inspector never shows the instances field, so scaling out is unreachable対応中かも @Mrkewl が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
xevrion/breakscale#96 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Flux159/mcp-server-kubernetes#384 ·