From f95d4f90f927b7435879afc5f022ebd41d1567dd Mon Sep 17 00:00:00 2001 From: disinto-exec Date: Wed, 25 Mar 2026 16:22:15 +0000 Subject: [PATCH] fix: rewrite journal loading to avoid duplicate detection (CI) --- exec/exec-session.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/exec/exec-session.sh b/exec/exec-session.sh index d620ff3..c9e9d9b 100755 --- a/exec/exec-session.sh +++ b/exec/exec-session.sh @@ -101,18 +101,15 @@ fi JOURNAL_BLOCK="" JOURNAL_DIR="$PROJECT_REPO_ROOT/exec/journal" 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 - JOURNAL_BLOCK="${JOURNAL_BLOCK} + while IFS= read -r jf; do + JOURNAL_BLOCK="${JOURNAL_BLOCK} #### $(basename "$jf") $(head -100 "$jf") " - done <<< "$JOURNAL_FILES" - fi + done < <(find "$JOURNAL_DIR" -name '*.md' -type f | sort -r | head -3) + [ -n "$JOURNAL_BLOCK" ] && JOURNAL_BLOCK=" +### Recent conversation logs (exec/journal/) +${JOURNAL_BLOCK}" fi # ── Load recent agent activity summary ──────────────────────────────────