From 31d9333742746205ec33139a19497454ab374303 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 21 Oct 2026 02:26:56 +0000 Subject: [PATCH] search binary sessions.db in worktree-audit Add -a to the rg call so the SQLite session store is not skipped as a binary file. Co-authored-by: Kaitian Xie --- skills/poteto-mode/scripts/worktree-audit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/poteto-mode/scripts/worktree-audit.sh b/skills/poteto-mode/scripts/worktree-audit.sh index e01f2b3..8e7317d 100755 --- a/skills/poteto-mode/scripts/worktree-audit.sh +++ b/skills/poteto-mode/scripts/worktree-audit.sh @@ -104,7 +104,7 @@ git worktree list --porcelain | awk '/^worktree /{print $2}' | while read -r wt; # followed by "/" or a quote so glint-482 does not match glint-482-r37. last="-"; last_ts=0 if [ -d "$transcripts" ]; then - f=$(rg -l -e "${wt}/" -e "${wt}\"" "$transcripts" 2>/dev/null \ + f=$(rg -l -a -e "${wt}/" -e "${wt}\"" "$transcripts" 2>/dev/null \ | xargs stat -f '%m %N' 2>/dev/null | sort -rn | head -1) if [ -n "$f" ]; then last_ts=$(echo "$f" | awk '{print $1}') last=$(date -r "$last_ts" '+%Y-%m-%d' 2>/dev/null); fi