fix: rewrite journal loading to avoid duplicate detection (CI)
This commit is contained in:
parent
c3acce7f8f
commit
f95d4f90f9
1 changed files with 6 additions and 9 deletions
|
|
@ -101,18 +101,15 @@ fi
|
||||||
JOURNAL_BLOCK=""
|
JOURNAL_BLOCK=""
|
||||||
JOURNAL_DIR="$PROJECT_REPO_ROOT/exec/journal"
|
JOURNAL_DIR="$PROJECT_REPO_ROOT/exec/journal"
|
||||||
if [ -d "$JOURNAL_DIR" ]; then
|
if [ -d "$JOURNAL_DIR" ]; then
|
||||||
JOURNAL_FILES=$(find "$JOURNAL_DIR" -name '*.md' -type f | sort -r | head -3)
|
|
||||||
if [ -n "$JOURNAL_FILES" ]; then
|
|
||||||
JOURNAL_BLOCK="
|
|
||||||
### Recent conversation logs (exec/journal/)
|
|
||||||
"
|
|
||||||
while IFS= read -r jf; do
|
while IFS= read -r jf; do
|
||||||
JOURNAL_BLOCK="${JOURNAL_BLOCK}
|
JOURNAL_BLOCK="${JOURNAL_BLOCK}
|
||||||
#### $(basename "$jf")
|
#### $(basename "$jf")
|
||||||
$(head -100 "$jf")
|
$(head -100 "$jf")
|
||||||
"
|
"
|
||||||
done <<< "$JOURNAL_FILES"
|
done < <(find "$JOURNAL_DIR" -name '*.md' -type f | sort -r | head -3)
|
||||||
fi
|
[ -n "$JOURNAL_BLOCK" ] && JOURNAL_BLOCK="
|
||||||
|
### Recent conversation logs (exec/journal/)
|
||||||
|
${JOURNAL_BLOCK}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ── Load recent agent activity summary ──────────────────────────────────
|
# ── Load recent agent activity summary ──────────────────────────────────
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue