Skip to content

How can my app stop an older completed result from replacing a user's chosen output?

Treat result arrival and result selection as separate events. Store every completed result, but update the project's chosen output only through an explicit selection command or a still-valid adoption rule. A late AISwapLab completion should not automatically overwrite a user's newer editorial choice.

DESIGN A CLEAR API PRODUCT EXPERIENCEAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval
Article workflow: Store arrivals without selection; Version the adoption command; Test late completion deliberately.
Workflow diagram: Store arrivals without selection → Version the adoption command → Test late completion deliberately. Read the article for evidence and limits.

A result is not an instruction to adopt it

Several attempts can be active while a user reviews earlier work. Selecting an acceptable result is a business decision. If every completion writes the same selected_asset field, the slowest request becomes the winner regardless of the person's choice.

What to do next

  1. 01

    Store arrivals without selection

    Append a completed asset to the attempt history, preserving its submitted inputs and task identity. Make that write independent of the selected-output pointer so background work cannot erase editorial state.

  2. 02

    Version the adoption command

    When the user chooses an output, condition the update on the current project selection revision. If your product offers automatic adoption of a first result, cancel that local rule after any explicit selection.

  3. 03

    Test late completion deliberately

    Hold an older job's completion, select a different acceptable output and then release the held response. Confirm the new asset appears as another option while the chosen output, export target and review notes remain unchanged.

A concrete example

Illustrative example: attempts A and B are running. B finishes first and the user selects it. A finishes later and joins the gallery, but the export still uses B because arrival does not grant authority to replace a selection.

Before you call it ready

  • Arrivals preserve the selected pointer.
  • Selection revisions are checked atomically.
  • Exports use the explicit chosen asset.

When to stop or choose another method

Stop auto-adopting late results once a user has made an editorial selection; offer the new result for deliberate comparison.

Sources

One task. A recoverable workflow.

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

Open API documentation