Trace: extract and replace pasted images in Pi transcripts

Ouverte
#3,716 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
55/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
go
Domaine
backend, data

Piste de recherche

Start by reading the Pi spec-source pointer tracker dependency (#3704) and the design reference (#3569), then locate trace.PastedImageFinder and the spec-copy replacement path. Add regressions for finder, replacer, action, and malformed input, and run the repeated-image live scenario. Done means the measured scenario stores one material, removes supported inline duplicates only after storage succeeds, and the compatibility matrix reflects the result.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

component/CLI trace-provider

Problem

The compatibility matrix marks Pi pasted-image pointers as No. User-pasted image data remains inline in the Pi transcript instead of being stored once as a spec material and replaced with a pointer.

Scope

Implement Pi's trace.PastedImageFinder and extend its spec-copy replacement path for the native image block shapes that Pi persists.

Acceptance criteria

  • Extract valid user-pasted image data from supported Pi message blocks.
  • Deduplicate decoded bytes and assign deterministic Pasted image N ordering.
  • Exclude tool-result images and non-paste image records.
  • Replace inline copies only after the material is stored successfully.
  • Keep invalid data, remote URLs, path-only records, and storage failures inline without blocking push.
  • Reuse an already captured identical image instead of creating a duplicate material.
  • Add finder, replacer, action, and malformed-input regressions.
  • Run the repeated-image live scenario and verify one stored material and no supported inline duplicate.
  • Update the compatibility matrix from measured results.

Non-goals

  • Treating tool-result images as user pastes.
  • Fetching remote image URLs.

Dependencies

  • Pi spec-source pointer tracker, because this extends the same provider replacement path.
  • Design reference: #3569.
  • Baseline Pi support: #3704.
Langage dominant
Go
Étoiles
582
Forks
61
Merge moyen
12 h 47 min
PR mergées (30 j)
137

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de chainloop-dev/chainloop

Toutes les issues de chainloop-dev/chainloop

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.