[Feedback]: Persist pasted chat images to disk so the agent can read them as files
@aliarain ci sta già lavorando.
Dal 5/10/2026.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 45/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- desktop
Direzione di ricerca
Start by locating the chat composer’s paste or attachment handling; the issue does not name a source file, test, or entry point. Done means pasted images are stored in a predictable per-session location, that path is surfaced to the session, and the agent can later read or process the image during the same conversation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What problem are you trying to solve?
When an image is pasted into the chat composer, it reaches the model as vision input but is never written to disk. The agent's own tools (read_file, shell, etc.) therefore have no path to it, so within the same session the agent cannot reference, embed, move, or post-process the image. If the user says "add this image to this file/note", the agent has nothing to read, and after the fact the paste is unrecoverable.
I confirmed the paste is not persisted anywhere: ~/Library/Application Support/Command Code/ (app-state.json, Local Storage, Session Storage, blob_storage, thread-index.db*) and the OS temp dir contain no trace of it — the only stored image is the 128x128 account avatar. No clipboard temp file is created for it either.
What would improve it?
Write pasted/attached images to a predictable on-disk location at paste time (e.g. a per-session scratch/temp directory), and surface that path to the session so the agent's tools can read it — either as an attachment API/tool or by injecting the path into the user message. Keeping the files for the life of the session would let an image be referenced later in the same conversation.
What do you do today?
Take a macOS screenshot (saved to ~/Pictures/Screenshots/) and tell the agent to read that file path instead of pasting into the composer.
- Lingua principale
- Shell
- Stelle
- 89
- Fork
- 7
- Merge medio
- 2h 46m
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CommandCodeAI/desktop
-
[UI Bug][macOS] Sidebar toggle is vertically misaligned with window controlsForse già presa @aliarain l’ha presa 9 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
CommandCodeAI/desktop#125 · 1 commento · 1 assegnatario ·
-
[Feedback]: add copy block under a code blockForse già presa @aliarain l’ha presa 14 giorni fa. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CommandCodeAI/desktop#94 · 1 assegnatario ·
-
[Feedback]: Add Expand & Collapse for changesForse già presa @aliarain l’ha presa 14 giorni fa. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CommandCodeAI/desktop#66 · 1 commento · 2 reazioni · 1 assegnatario ·
-
[Bug]: scroll barApertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
CommandCodeAI/desktop#138 ·
-
bug
Difficoltà 3/5 Mezza giornata Idoneità per principianti 65/100
CommandCodeAI/desktop#137 ·
Tutte le issue di CommandCodeAI/desktop
Issue simili
-
status:needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Sorogate/example-consumer#14 ·
-
github_actions good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
alunduil/alunduil-chezmoi#874 ·
I maintainer di solito rispondono entro 1 giorno