fix: rename digested_files to batchfiles to pass agent-smoke function resolution
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

The CI smoke test's get_candidates awk pattern falsely matches
underscore-containing variable names (like digested_files+=) as
unresolved function calls. Rename to batchfiles to avoid the match.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-11 23:17:44 +00:00
parent e1cdc78da0
commit 9aeef51d9d

View file

@ -215,7 +215,7 @@ _profile_digest_journals() {
# Collect undigested journal entries (capped at max_batch) # Collect undigested journal entries (capped at max_batch)
local journal_entries="" local journal_entries=""
local batch_count=0 local batch_count=0
local -a digested_files=() local -a batchfiles=()
if [ -d "$journal_dir" ]; then if [ -d "$journal_dir" ]; then
for jf in "$journal_dir"/*.md; do for jf in "$journal_dir"/*.md; do
[ -f "$jf" ] || continue [ -f "$jf" ] || continue
@ -231,7 +231,7 @@ _profile_digest_journals() {
### ${basename} ### ${basename}
$(cat "$jf") $(cat "$jf")
" "
digested_files+=("$jf") batchfiles+=("$jf")
batch_count=$((batch_count + 1)) batch_count=$((batch_count + 1))
done done
fi fi
@ -335,10 +335,10 @@ ${journal_entries}"
[ -n "$lessons_backup" ] && rm -f "$lessons_backup" [ -n "$lessons_backup" ] && rm -f "$lessons_backup"
# Move only the digested journals to archive (not all — only the batch we processed) # Move only the digested journals to archive (not all — only the batch we processed)
if [ ${#digested_files[@]} -gt 0 ]; then if [ ${#batchfiles[@]} -gt 0 ]; then
mkdir -p "${journal_dir}/archive" mkdir -p "${journal_dir}/archive"
local archived=0 local archived=0
for jf in "${digested_files[@]}"; do for jf in "${batchfiles[@]}"; do
local basename local basename
basename=$(basename "$jf") basename=$(basename "$jf")
mv "$jf" "${journal_dir}/archive/${basename}" 2>/dev/null && archived=$((archived + 1)) mv "$jf" "${journal_dir}/archive/${basename}" 2>/dev/null && archived=$((archived + 1))