Attachments category syncs session tool-results/ and subagents/ alongside memory/

Aperta
#112 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

Start with the attachments walker in src/artifacts/registry.rs around line 224 and trace how it selects files under projects/. Compare its filtering with exclude_patterns and check the existing tests for attachment selection. Done means session tool-results/ and subagents/ byproducts can be excluded while the intended memory/ files still sync; the issue leaves the exact fix open.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The attachments category picks up every non-.jsonl file under projects/ (src/artifacts/registry.rs:224), and exclude_patterns does not apply to it. With transcripts excluded (exclude_patterns = ["*.jsonl"]) to sync only per-project memory/, the first push still carried session byproducts:

501  projects/*/memory/*.md            (wanted)
414  projects/*/<session>/tool-results/*.txt
338  projects/*/<session>/subagents/*.meta.json
 12  jpg/pdf inside session dirs

Attachment deletions don't propagate, so these stay in the repo after Claude Code's cleanupPeriodDays removes the sessions locally, and get materialized on every other machine.

Possible fixes, any of these:

  • skip <session-uuid>/tool-results/ and <session-uuid>/subagents/ in the attachments walker
  • honor exclude_patterns for attachments
  • a memory-only mode for attachments

Version: 0.4.1, macOS arm64.

Lingua principale
Rust
Stelle
104
Fork
21
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di perfectra1n/claude-code-sync

Tutte le issue di perfectra1n/claude-code-sync

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.