Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Feedback]: Persist pasted chat images to disk so the agent can read them as files

Abierto
#134 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Área
desktop

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Shell
Estrellas
89
Forks
7
Merge medio
2 h 46 min
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CommandCodeAI/desktop

Todos los issues de CommandCodeAI/desktop

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.