He then captured Yi and Pu Prefectures again, but then suffered several defeats by Tang forces. He thus wrote the new military governor of Tianping, Zhang Xi (), asking Zhang to ask for a Tang commission on his behalf. At Zhang's request, Emperor Xizong commissioned Huang as a general of the imperial guards, but ordered him to report to Yun Prefecture to disarm before he would report to the capital Chang'an.
He reclaimed Yi and Pu Prefectures but was defeated by Tang forces several times. As a result, he wrote to Zhang Xi (), the new military governor of Tianping, requesting that he seek a Tang commission on his behalf. At Zhang's request, Emperor Xizong appointed Huang as a general of the imperial guards, with the instruction to report to Yun Prefecture for disarmament before reporting to Chang'an.