They occasionally do stupid things like this, the other day I asked Codex to make some changes to a few files and it refused because it was too much work.
That's one of Codex's few warts. At the same time, A strong self-estimation of one's abilities within context is ostensibly a feature and not a bug, and that the more self aware it is to the task, the better execution path it can create for that task. But practically, yes, I agree. It's very annoying. I run into the same issue.