File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -275,33 +275,6 @@ if [ -d "$SOCKET_DIR" ]; then
275275 fi
276276fi
277277
278- # Worktree count
279- WORKTREE_DIR=" $BAUDBOT_HOME /workspace/worktrees"
280- if [ -d " $WORKTREE_DIR " ]; then
281- WORKTREE_COUNT=0
282- for wt in " $WORKTREE_DIR " /* /; do
283- [ -d " $wt " ] || continue
284- WORKTREE_COUNT=$(( WORKTREE_COUNT + 1 ))
285- done
286- if [ " $WORKTREE_COUNT " -gt 5 ]; then
287- warn " $WORKTREE_COUNT worktrees in $WORKTREE_DIR (consider cleanup)"
288- elif [ " $WORKTREE_COUNT " -gt 0 ]; then
289- pass " $WORKTREE_COUNT active worktree(s)"
290- fi
291- fi
292-
293- # Session log size
294- if [ -d " $BAUDBOT_HOME /.pi/agent/sessions" ]; then
295- LOG_SIZE_KB=$( du -sk " $BAUDBOT_HOME /.pi/agent/sessions" 2> /dev/null | cut -f1)
296- if [ -n " $LOG_SIZE_KB " ]; then
297- LOG_SIZE_MB=$(( LOG_SIZE_KB / 1024 ))
298- if [ " $LOG_SIZE_MB " -ge 500 ]; then
299- warn " session logs total ${LOG_SIZE_MB} MB (consider pruning)"
300- else
301- pass " session logs total ${LOG_SIZE_MB} MB"
302- fi
303- fi
304- fi
305278
306279# ── Summary ──────────────────────────────────────────────────────────────────
307280
You can’t perform that action at this time.
0 commit comments