fix: status reports ok for a hand-edited generated file
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start in src/agentsync/syncer.py and trace how AgentSyncer.sync stores hashes and AgentSyncer.status checks generated files. Add a test that reproduces the hand-edited CLAUDE.md case and confirms status reports "modified"; done means status detects the edit and the test passes. Pull request #19 is already open for this issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
AgentSyncer.sync in src/agentsync/syncer.py stores the hash of the canonical rules for every output path in the lock file, and AgentSyncer.status compares against that hash, not the file on disk. So a manual edit to CLAUDE.md still shows [ok], rulesync status exits 0 in CI, and the next sync drops the edit. Store the hash of each generated file in the lock, compare it with the file on disk in status, report a new "modified" status, and add a test for it.
Reproduced with:
$ rulesync init --tools claude_md >/dev/null && rulesync sync >/dev/null
$ echo "- Always use tabs" >> CLAUDE.md
$ rulesync status | grep CLAUDE; echo "exit=${PIPESTATUS[0]}"
[ok] CLAUDE.md
exit=0
$ rulesync sync | grep CLAUDE; grep -c "Always use tabs" CLAUDE.md
[~] CLAUDE.md
0
- 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
-
bug help wanted
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/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