Skip to content

Commit 9e89196

Browse files
leifericfclaude
andcommitted
fix(sync): skip enrich step when no files changed in incremental update
Avoids re-processing all files and noisy tool-availability output when only commits changed but no files were added, modified, or deleted. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 200507c commit 9e89196

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/noumenon/sync.clj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,12 @@
181181
(count (:deleted changes)) " deleted")))
182182
(let [git-r (git/import-commits! conn repo-path repo-uri)
183183
files-r (files/import-files! conn repo-path repo-uri)
184-
post-r (imports/enrich-repo! conn repo-path
185-
{:concurrency (or (:concurrency opts) 8)})
184+
post-r (when (or fresh?
185+
(seq (:added changes))
186+
(seq (:modified changes))
187+
(seq (:deleted changes)))
188+
(imports/enrich-repo! conn repo-path
189+
{:concurrency (or (:concurrency opts) 8)}))
186190
analyze-r (when-let [invoke-llm (:invoke-llm opts)]
187191
(analyze/analyze-repo!
188192
conn repo-path invoke-llm

0 commit comments

Comments
 (0)