fix: first sync overwrites hand-written rule files
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- cli, developer-experience
Direzione di ricerca
Start with AgentSyncer._sync_one in src/agentsync/syncer.py and cmd_sync in src/agentsync/cli.py; then find the sync tests and inspect how generator markers and result statuses are handled. Add coverage for an unmanaged hand-written CLAUDE.md and for --force; done means sync skips the unchanged file with an adoption hint by default, while --force overwrites it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
AgentSyncer._sync_one in src/agentsync/syncer.py writes over an existing CLAUDE.md, .cursorrules or .aider.conf.yml even when the file has no agentsync marker, so a team's hand-written rules are lost with no backup. Once every generator writes the marker, skip unmanaged files with a "skipped" result and a hint to run rulesync adopt, and add a --force flag to cmd_sync in src/agentsync/cli.py that overwrites them. A test should put a hand-written CLAUDE.md in a project, run sync, and check that the file is unchanged and the result is skipped.
Reproduced with:
$ printf "# My handwritten rules\n- Never touch prod.\n" > CLAUDE.md
$ rulesync init --tools claude_md >/dev/null && rulesync sync | grep CLAUDE
[~] CLAUDE.md
$ grep -c "Never touch prod" CLAUDE.md; ls -A
0
.agentsync
.gitignore
CLAUDE.md
- Lingua principale
- Python
- Stelle
- 1
- Fork
- 3
- Merge medio
- 26g 1h
- PR unite (30g)
- 5
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di obielin/agentsync
-
feat: write Aider rules to CONVENTIONS.mdForse già presa @laozhej l’ha presa 28 giorni fa. Apertaenhancement help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
-
fix: .gitignore is never updated after the first syncForse già presa @bh-official l’ha presa 28 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 28/100
-
fix: add and remove reset other settings in config.tomlForse già presa @laozhej l’ha presa 28 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
-
fix: status reports ok for a hand-edited generated fileForse già presa @laozhej l’ha presa 24 giorni fa. Apertabug help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
Tutte le issue di obielin/agentsync
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
cal-itp/data-infra#5887 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ranacseruet/vaice#139 ·
I maintainer di solito rispondono entro 1 giorno
-
numpy.bytes_ attributes are recorded as a truncated repr instead of their contentForse già presa @JoeyTan21 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
batocera-linux/batocera.linux#17423 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100