Does "In 821/822 CE Tibet and China signed a peace treaty." correctly answer the question of When did Tibet and China sign a peace treaty?
yes