Codex seems to create a lot of useless functions
Resolved 💬 5 comments Opened Mar 25, 2026 by benglewis Closed Mar 25, 2026
What issue are you seeing?
When coding, Codex seems to now frequently introduce functions which just pass their parameters and call another function and do nothing else - i.e. a useless function.
What steps can reproduce the bug?
There is no clear and easy way to reproduce the issue, but frequently Codex is introducing such functions. I see it when using GPT-5.4 . I do not know if other models are affected.
What is the expected behavior?
Functions which do nothing are not created and the _inner_ function is called directly instead.
Additional information
Codex thread ID for an example: 019d20cb-2d60-70b3-a95d-8734acf8a8c0
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗