Hi Manjusri
I basically keep my knees slightly bent for the active exercises and the harvesting of qi. As Shawn says, though, sometimes my knees are not quite as bent such as with the raising up on the toes at the very end of level I exercises. But I don't think my knees are ever locked.
Hope this helps.