r/coding_agents • • 1d ago

Which commit did your coding agent’s tests actually run on?

https://dengel.dev/blog/the-checks-passed-then-the-agent-pushed-again

The checks pass on commit A. While you review it, the agent pushes commit B to the same branch. The branch name is the same, and the green result in your open tab still belongs to A.

Before approving, compare the commit SHA recorded by CI with the current remote branch tip. For the branch in the walkthrough, that’s:

git ls-remote --exit-code origin refs/heads/candidate/retry-demo

The first field is the current SHA. If you’re about to merge B, look for a check result for B.

I’m building Dengel, and the linked walkthrough shows how Guard handles the two commits. We also made a smaller example you can replay without an account. A €50 cart gets charged €4.99, and the same test passes after a one-line fix. Replay the checkout example

Where do you check the tested SHA when your agent pushes again during review?

1 Upvotes

1 comment sorted by

1

u/rednix 1d ago

Here’s the Dengel workflow diagram. If you already use a coding agent, start with the Git push.