Skip to content

What should happen when a user edits a prompt while an earlier generation is running?

Keep the running request attached to an immutable submitted snapshot while edits create a separate draft revision. Show which revision produced each result. AISwapLab jobs describe submitted work; your editor must decide how draft changes and older results coexist without implying the running task changed.

DESIGN A CLEAR API PRODUCT EXPERIENCEAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Keep both revision identities; Keep edits visibly separate; Attach results by revision.
Workflow diagram: Keep both revision identities → Keep edits visibly separate → Attach results by revision. Read the article for evidence and limits.

Editing is a new local version

An editor often remains useful while generation runs. The risk is silently attaching a result to whatever text happens to be visible when it finishes. Users then review an output against instructions that were never sent, creating misleading feedback and unnecessary repeat spending. This guide owns two simultaneous views: the immutable submitted revision and the current unsent editor draft. Put a late result in its submitted view, then require explicit adoption or comparison before it can replace the draft’s selected output.

What to do next

  1. 01

    Keep both revision identities

    Retain the submitted revision and job reference separately from the currently editable draft. Reuse your immutable-request procedure for persistence, then show which version is running without changing the newer unsent fields.

  2. 02

    Keep edits visibly separate

    Allow a new draft if your product supports it, but show a running-version label beside the active task. Explain that editing prepares future work and does not modify the existing remote job.

  3. 03

    Attach results by revision

    Place the completed asset on its submitted version, with a deliberate action to compare or adopt it in the current draft. Do not overwrite newer selections merely because the older job completed later.

A concrete example

Illustrative example: a user submits a blue bicycle, then changes the draft to red. The arriving blue result stays labeled version 4. Version 5 remains an unsent red draft, so selecting it cannot rewrite the history of version 4.

Before you call it ready

  • Inspect result labels after several edits.
  • Reload and compare both versions.
  • Verify a draft save never changes submitted inputs.

When to stop or choose another method

Stop presenting a result as the current draft's output if its submitted snapshot is unavailable or its version association is uncertain.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation