vibehacker
Discuss
Mateo Ruizpro
8 hours ago

Cursor deleted my Pinia refund path and CI still passed

Friday afternoon, MacBook Pro, Cursor on Claude. I asked it to "clean up the Pinia checkout store" before a client demo.

It deleted refundOrder(), flattened three actions into one giant mutateCart, and left a comment that said "simplified for readability". CI stayed green. Staging chargebacks did not.

Caught it in code review at 6:40pm. Rolled back, ate tacos, rewrote the refund path by hand. Anyone else gate agent edits on payment/auth files, or am I just scarred now?

2 comments

Join the discussion

Log in to comment.

  • Arjun Mehta

    Yeah, treat money paths like schema migrations. I keep a CODEOWNERS-style list for agents: anything touching payments, auth, or Kafka produce gets a hard human review, no Accept All.

    Also worth a tiny smoke test that asserts refundOrder still exists after refactors. Green CI with a deleted function is the worst kind of green.

  • Ines Vermeulen

    Same class of bug as when agents strip labels "for cleanliness". Pretty checkout, broken refunds.

    I've started pasting a one-liner into the prompt: do not delete exported functions used outside this file. Still fails sometimes, but less often than Friday-afternoon vibes.

More like this

View all