Separate two clocks
Set one deadline for this client wait and another review reminder for an unresolved job. An HTTP timeout or short developer wait is not proof that generation failed.
Store state on the server
Keep the returned job ID, last status and last check time. Show the editor how to resume reading that job after closing a tab.
Keep cancellation language accurate
If the public contract has no cancellation operation for that job, describe the action as stopping the wait. Check completion and charge from the real job record.
Pass condition
A user can close and reopen the waiting screen and reach the same job without paying for a new attempt.