Cannot paste images
未關閉
- 主要語言
- Go
- 星號
- 97
- 分支
- 9
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Claude Code understands images, which can be attached to a conversation by copying and pasting them in the terminal with `ctrl-v`.
Notice how no `shift` is required: CC probably listens on Xorg/Wayland sockets and reads data from there - the clampdown sandbox currently doesn't allow for this functionality to work.
Shimming the API interface CC uses to only allow reading images might enable this usecase.
貢獻指南
研究方向
該 issue 描述了一個缺少的功能:由於 sandbox 阻擋對 Xorg/Wayland sockets 的存取,Claude Code 無法貼上圖片。研究 clampdown 如何實作其 sandbox(可能使用 Landlock/seccomp),以及它目前如何處理輸入/輸出。尋找管理容器與主機系統互動的程式碼,尤其是與 clipboard 或 socket 存取相關的部分。目標是為 API 介面提供 shim,只允許讀取影像資料。首先檢查專案的安全模型和現有的輸入處理,以了解哪些變更可以安全地進行。
由索引模型根據 Issue 內容生成。
評估
- 領域
- cli, security
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100