This summary is not the rule. The rule text controls.
If a court decides in favor of the person who filed the application, it has to fix the problem with their case. The court can throw out the original judgment and sentence completely. Then it can let the person go free, give them a new sentence, order a new trial, or simply change parts of the original judgment and sentence to make things right.
The court also has the power to handle anything else that needs to be sorted out because of this decision. This might include setting up a new arraignment, scheduling a new trial, deciding whether the person stays in custody or gets released on bail, or ordering their release from custody entirely. Basically, the court can issue whatever additional orders are needed to carry out its decision fairly and completely.
The goal here is to make sure the person gets real relief, not just a decision on paper. If something went wrong with their original case, the court has the tools to fix it in whatever way fits the situation best, whether that means a new trial, a new sentence, or letting them go free.