Description:
When attempting to generate a workflow using the Generate Agent feature, the process occasionally stops midway without completing the full block generation. In such cases, no draft or partial workflow is provided to the user.
Impact:
-
Tokens are still consumed during the partial generation.
-
This directly affects billing, as charges are incurred even though the user does not receive a usable workflow.
-
Users are left without any recoverable draft, resulting in wasted cost and effort.
Expected Behavior:
-
If workflow generation halts midway, a draft version of the generated content (up to the failure point) should be saved and made available to the user.
-
Alternatively, if no output can be salvaged, the consumed tokens/costs should be reverted or credited back to the account.
Steps to Reproduce:
-
Initiate workflow generation using Generate Agent.
-
Allow the generation to run.
-
Observe cases where it stops midway without completing.
-
Notice that no draft is saved and billing still reflects the token consumption.
Proposed Fix:
-
Implement an auto-save mechanism for partial workflows.
-
Provide credit or refund for token usage when generation fails without output.