AttachmentsPièces jointes
Send files, images and photos with a prompt: where they go, what is checked, and the settings.Envoyer fichiers, images et photos avec un prompt : où ils vont, ce qui est vérifié, et les réglages.
1. AttachingJoindre
Files, images and photos go with a prompt like in a chat: the paperclip next to the prompt (window, web page, app), drag and drop onto the prompt, paste (Ctrl+V of a picture or files). The terminal keeps @path and the image paste. On a phone the picker offers Take a photo / video (the camera, asked once with its reason). A chip per attachment shows above the prompt with a ✕ to remove it before sending.
An image reaches the agent as the picture itself ([Image #N]); any other file as @path (text, code, PDF...). The transcript shows them with a thumbnail and a link to open or download.
A big one takes time: its popup tells it. After 0.4 s, in the window and on the page like in the terminal: Importing name, what it does (reading, preparing the image with magick, storing it), how much, and a bar when its total is known. On the page the bar follows the upload and Cancel stops it; a slow connection has its time. The window imports in the background and goes on. On the page a text pasted over 200 KB is attached as pasted-text.txt: a prompt that long stops a page, and a request takes 1 MB at most.
Fichiers, images et photos partent avec un prompt comme dans une messagerie : le trombone à côté du prompt (fenêtre, page web, application), le glisser-déposer sur le prompt, le collage (Ctrl+V d'une image ou de fichiers). Le terminal garde @chemin et le collage d'image. Sur téléphone le sélecteur propose Take a photo / video (l'appareil photo, demandé une fois avec sa raison). Une pastille par pièce jointe s'affiche au-dessus du prompt avec un ✕ pour la retirer avant l'envoi.
Une image arrive à l'agent comme l'image elle-même ([Image #N]) ; tout autre fichier en @chemin (texte, code, PDF...). La transcription les montre avec une vignette et un lien pour ouvrir ou télécharger.
Un gros fichier prend du temps : son popup le dit. Après 0,4 s, dans la fenêtre et sur la page comme dans le terminal : Importing nom, ce qu'il fait (lecture, préparation de l'image avec magick, enregistrement), combien, et une barre quand le total est connu. Sur la page la barre suit l'envoi et Cancel l'arrête ; une connexion lente a son temps. La fenêtre importe en arrière-plan et continue. Sur la page un texte collé de plus de 200 Ko est joint en pasted-text.txt : un prompt aussi long bloque une page, et une requête prend 1 Mo au plus.
2. What is checkedCe qui est vérifié
- Upload: the file is sent to the core and stored in
<data>/attachments/<session>/<id>-<name>with mode0600, never executable. The name is made safe, the type is sniffed from the content (a program, ELF or PE, is refused), images are re-encoded without EXIF and downscaled tomax_pixels(needs ImageMagick). - Only an authenticated device uploads; a session reads only its own folder, which goes with the session when it is deleted for good.
- Link instead of copy: a file of this computer attached by its path becomes a symlink, nothing is copied and the original is never touched. A phone or another computer always uploads.
[attachments] link = falseturns it off.
- Téléversement : le fichier est envoyé au cœur et stocké dans
<data>/attachments/<session>/<id>-<nom>en mode0600, jamais exécutable. Le nom est assaini, le type est deviné d'après le contenu (un programme, ELF ou PE, est refusé), les images sont ré-encodées sans EXIF et réduites àmax_pixels(demande ImageMagick). - Seul un appareil authentifié téléverse ; une session ne lit que son propre dossier, qui part avec la session quand elle est supprimée pour de bon.
- Lien plutôt que copie : un fichier de cet ordinateur joint par son chemin devient un lien symbolique, rien n'est copié et l'original n'est jamais touché. Un téléphone ou un autre ordinateur téléverse toujours.
[attachments] link = falsele désactive.
3. The global sessionLa session globale
It sees attachments in session_messages (path, type, size) and may attach local files with session_send (attachments: [paths]), only from the project folder of the session and your home (no hidden folder, nothing of claude-cluster itself), at most global_max files. [attachments] global = false forbids it.
Elle voit les pièces jointes dans session_messages (chemin, type, taille) et peut joindre des fichiers locaux avec session_send (attachments: [chemins]), seulement depuis le dossier du projet de la session et votre dossier personnel (aucun dossier caché, rien de claude-cluster lui-même), au plus global_max fichiers. [attachments] global = false l'interdit.
4. SettingsRéglages
[attachments] (settings page Attachments): enabled, max_mb (20), max_files (10), keep (200 per session, the oldest go), max_pixels (2048), strip_exif, dir, link, global, global_max (5). In the Android app the system picker gives access to the picked files only, so no media permission is requested.
[attachments] (page de réglages Attachments) : enabled, max_mb (20), max_files (10), keep (200 par session, les plus anciennes partent), max_pixels (2048), strip_exif, dir, link, global, global_max (5). Dans l'application Android le sélecteur système ne donne accès qu'aux fichiers choisis, donc aucune permission média n'est demandée.