Make sure the preview runs the newest commit

Tell API Tester where your preview says its commit, so an agent's round runs only on the code it is about, and let the agent check its preview first.

In short

A round judges the pull request's newest commit. When the preview still runs an older one, the round is "Did not run" and costs no try. Give the environment a version path, where your preview answers with the commit it was deployed from. A coding agent can then check its preview before it asks for a round.

Steps

  1. Open the API Tester environment and find "Pull-request previews".
  2. Check the "Preview address", such as https://preview.example.com/pr-{number}.
  3. Fill "Version path" with the path that answers the deployed commit, such as /version, and press "Save preview settings".

Good to know

Related