Skip to content

Commit 1385192

Browse files
committed
ops: remove worktree count and log size filler checks
Keep only the checks that answer 'why isn't the bot responding': bridge health, disk usage, stale sockets.
1 parent c86f764 commit 1385192

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

bin/doctor.sh

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -275,33 +275,6 @@ if [ -d "$SOCKET_DIR" ]; then
275275
fi
276276
fi
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

0 commit comments

Comments
 (0)