Better prompt loading detection