logoalt Hacker News

hk__2yesterday at 4:59 PM6 repliesview on HN

> The only other notable setback was an accidental use of the word "revert" which Codex took literally, and ran git revert on a file where 1-2 hours of progress had been accumulating.


Replies

qaboutthattoday at 6:07 AM

If I tell Claude to "revert that last change, it isn't right, try this instead" and Claude hasn't committed recently it will happily `git checkout ...` and blow away all recent changes instead of reverting the "last change".

(Which, it's not wrong or anything -- I did say "revert that change" -- it's just annoying. And telling `CLAUDE.md` to commit more often doesn't work consistently, because Claude is a dummy sometimes).

show 2 replies
_fluxyesterday at 5:26 PM

Amazing that these tools don't maintain a replayable log of everything they've done.

Although git revert is not a destructive operation, so it's surprising that it caused any loss of data. Maybe they meant git reset --hard or something like that. Wild if Codec would run that.

show 6 replies
alt227yesterday at 6:35 PM

I wonder how they accidentaly used a word like that.

show 2 replies
esafakyesterday at 6:18 PM

Does Codex not let you set command permissions?

Filligreeyesterday at 5:19 PM

Yet another reason to use Jujutsu. And put a `jj status` wrapper in your PS1. ;-)

show 3 replies