Attachments category syncs session tool-results/ and subagents/ alongside memory/
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 66/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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_patternsfor attachments - a
memory-onlymode for attachments
Version: 0.4.1, macOS arm64.
- Dominant language
- Rust
- Stars
- 104
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from perfectra1n/claude-code-sync
-
Cover Claude Code's plugin-directory v2 state (installs don't propagate)Possibly taken @jrevillard claimed this 48 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 75/100
perfectra1n/claude-code-sync#102 ·
-
Difficulty 5/5 Over a week Newbie friendliness 1/100
perfectra1n/claude-code-sync#116 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 70/100
-
Dependency DashboardOpen
Difficulty 5/5 Over a week Newbie friendliness 15/100
All issues in perfectra1n/claude-code-sync
Similar issues
-
Find/Replace panel: "Previous/Next occurrence" labels overlap and overflow their buttons (French)Open
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
obi1kenobi/cargo-semver-checks#1839 · 3 comments ·
Maintainers usually reply within 1 day
-
Bash init calls `cygpath` unconditionally on Windows, which breaks non-Cygwin shells like `brush`Possibly taken @iliqiliev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ajeetdsouza/zoxide#1381 ·
Maintainers usually reply within 5 days
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days