Commit fdbcf6b5d395

Vincent Demeester <vincent@sbr.pm>
2025-12-05 22:24:49
fix(statusline): follow symlinks when counting agents
- Enable accurate agent counting with symlinked directories - Prevent find from ignoring symlinked agent folders Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 1683679
Changed files (1)
dots
.config
dots/.config/claude/statusline.sh
@@ -43,7 +43,7 @@ fi
 # Count agents
 agents_count=0
 if [ -d "$claude_dir/agents" ]; then
-	agents_count=$(find "$claude_dir/agents" -maxdepth 1 -name "*.md" 2>/dev/null | wc -l | tr -d ' ')
+	agents_count=$(find -L "$claude_dir/agents" -maxdepth 1 -name "*.md" 2>/dev/null | wc -l | tr -d ' ')
 fi
 
 # LINE 1: Identity, model, context, directory