Thanks Hadi,That looks like a bug that introduced itself when I made the big performance improvements to AI. The flag does work, but you have to have use_unseen or use_unexplored set on the map.
I want to support the ai_wait_until_enemy_in_sight flag even when those map flags aren't set, so I'll fix this soon.
Ian Reed