Make "stop" a concrete, checkable step instead of a wish:
Write a failing test for X in tests/x.test.ts. Run it. Show me the failure output. Then stop and wait for me. Do not edit anything outside tests/.
The "show me the failure" part matters. If it can't produce red output, the test isn't testing anything new, and you learn that before any code exists.
Then a second message: "Now make that test pass with the smallest change. Don't modify the test."
Two messages, not one. Asking for both in one prompt is where it collapses them.