Display issue with Codex CLI and Node v22

I am trying to use the Codex CLI. Apparently you have to use Node v22+ with the current Codex. I am on a Mac. When I do so, the display is messed up. It’s like the responses to everything you type are off-screen. Like what shows up is always 1 step behind where it should be.

I switched to Node v18 and it seems to work better, but it warns me that v22+ is required. Also I was getting some tool errors with Node 18 so I figured the later version would help but it’s worse.