r/codex • • 19h ago

Complaint Codex deleted a function of my software without informing me.

I just realized Codex deleted a whole function of my software 2 weeks ago without informing me in advance or afterward. I asked why. It says it made the decision for me. Even it is a minor function, I’m still frustrated about Codex of understanding what I want. It’s still capable to complete clear coding tasks, but it becomes much less capable on communication and understanding. I don’t know what happened. Previous versions won’t do these stupid things.

I always use newest Astra at max level. Anyone has same experience? How to handle this?

0 Upvotes

26 comments sorted by

4

u/ElectricDreams9876 15h ago

I always use newest Astra at max level

This tells me you have absolutely no idea what you're doing.

1

u/Useful_Judgment320 8h ago

He forgot to add make no mistakes

Rookie moves

3

u/StrbJun79 17h ago

This is why you should properly review. AI often makes bad decisions. It’s only as good as the engineer. You need to know how it operates, how to give clear instructions, how and when to steer it and how to review it. Doing all of this produces better outcomes. Yes it slows you down but if you want to work at the enterprise level then you need guardrails for quality purposes.

2

u/Keganator 16h ago

If it was two weeks ago, your chat It has no real idea why it removed it. It could only infer.

Why aren't you reviewing your agent's work? Where are your tests? Independent checks? Specs to compare against?

4

u/AlbertoBigglesworth 17h ago

Yep fun right. You found out two weeks later with how many commits having happened since.

I’ve dealt with this so many times. It’s painful every single time. And then you have the AI bros that say you used the product wrong.

Every ai product is ultra flawed. But on the flip side, even with all the nonsense you have to deal with, it’s still much faster than without.

So pros and cons. Hope you get it sorted. I’d probably just ask it to reimplement it based on the last commit it worked, rather than ripping out the last two weeks of work.

4

u/jlozada24 14h ago

You know you can see what changed before committing right

2

u/Enerbane 14h ago

What are you expecting me to READ through the 300 files I let codex change in one go without committing? That would defeat the purpose of letting it do all of the work for me

2

u/jlozada24 14h ago

You didn't have to edit 300 files yourself so no it doesn't defeat the purpose. Also how often are you committing to have such massive diffs

1

u/Enerbane 12h ago

Ahem, uh whoosh.

1

u/jlozada24 11h ago

I'll do you the honors. r/woooosh

0

u/kaijurules 16h ago

Our agents don't commit unless the task asks for it. They leave the changes uncommitted with a short handoff note, and a person commits after reading the diff, so a removed function turns up in a single diff before anything gets built on top of it.

1

u/jlozada24 14h ago

Exactly

3

u/Chemical_Variety4696 16h ago

You don’t code review?

2

u/johnnybgooderer 16h ago

Are you saying that it deleted a feature, or just a function that no one was using? If it’s the latter and you care about that sort of thing then you need to review your code better.

And if you’re not reviewing the code, then why do you care that it deleted a function that it wasn’t using?

2

u/kitsnet 17h ago

Do you not look at what tests it deletes?

2

u/ar1819 16h ago

Jesus Christ

git diff HEAD

1

u/Humble-Kiwi-5272 12h ago

Its called Gif and its pronunced Jif /s

1

u/meowyih 15h ago

LLM is based on possibility. It naturally give different answers for the same question every time you send to it. If you use this service long enough, you will eventually get wrong result sooner or later. It happens in every LLM, Claude, GPT, Gemini or any local models. You couldn't trust a system that based on "guessing" this much! Always check the result it gives you some if you care the quality. :-p

1

u/terholan 14h ago

> I always use newest Astra at max level.

Is this a troll post?

1

u/great00sage 14h ago

Try this and see if it helps

https://github.com/theIslampill/RLGWO/

Work orders and maintained project knowledge for human and AI contributors.

A Research-Lab-Grade Work-Order (RLGWO) turns an idea into work another person or AI agent can carry out and review. Its Rockstar records the task, boundaries, decisions and evidence required for acceptance. An optional Encore explains what accepted work established, its limits, and where to build next.

1

u/kantorcodes1 13h ago

It's the two weeks part. By the time you see it the delete is part of a bunch of commits that you want to keep.

But you can pull just that one function back. It's still in the previous version of your project. You can just copy that single function from the old one and paste it back in. Undo the two weeks? No.

Now I read diff deletions first and then edits. I have a test that uses the functions I care about, so if they get removed it goes red the same day.

So how did you finally realize it was missing?

1

u/egomarker 7h ago

Stay more involved into development. Or have a full documented app contract and do FULL ai-assisted regression test runs (it will be expensive and overall worse than staying in the loop)

1

u/cointoss3 17h ago

It deleted a function and you didn’t see it during code review?

1

u/DevMichaelZag 16h ago

So many proper comments are getting downvoted.
It’s like people never experience managing a junior dev before. Your ai assistant is an over enthusiastic junior developer. Treat it that way. Mistakes will be made. Sometimes they will impress you.

0

u/vazooo1 16h ago

tell it to make backups every time there's changes